Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageInfo: only call System.exit in batch mode #4250

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Nov 1, 2024

The ability to run showinf in batch mode introduced in Bio-Formats 8 has caused some regression with the interactivity of the utility when opening a single image without the -nopix option as the System.exit call immediately closes the viewer. This commit addresses the issue by only invoking it when multiple input are passed.

To test this PR run showinf test.fake. Without 8.0.0, the viewer should launch and terminate immediately. With this PR included the viewer should remain active until closed. The behavior of the utility when using the batch mode is unmodified.

As discussed with Melissa, given this is a regression, this might be a candidate for a 8.0.1 release in the upcoming weeks

The ability to run showinf in batch mode introduced in Bio-Formats 8
has caused some regression with the interactivity of the utility when
opening a single image without the -nopix option as the System.exit
call immediately closes the viewer. This commit addresses the issue
by only invoking it when multiple input are passed.
@melissalinkert melissalinkert added this to the 8.0.1 milestone Nov 1, 2024
Copy link
Member

@melissalinkert melissalinkert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, can merge if tonight's build passes.

@melissalinkert melissalinkert merged commit e62d46d into ome:develop Nov 4, 2024
18 checks passed
@sbesson sbesson linked an issue Nov 6, 2024 that may be closed by this pull request
@sbesson sbesson deleted the imageinfo_exitcode branch November 14, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

showinf image viewer broken since 8.0.0 (on OSX at least)
2 participants