-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Executable progress indication appears suppressed on Windows #756
Comments
It was suggested (by Andrew Marlow at the accu-general mailing list, as well as by other replies at https://stackoverflow.com/questions/18081392/discrimination-between-file-and-console-streams) to use |
@mstaring @stefanklein Looking at elastix/Core/elxProgressCommand.cxx Lines 41 to 42 in cf02734
Doesn't "coutonly" is initialized in elastix/Core/Kernel/elxElastixMain.cxx Lines 97 to 113 in cf02734
|
Thanks @stefanklein Would you then agree that it's easier now to use elastix/Core/elxProgressCommand.cxx Line 186 in cf02734
|
Addresses issue #756 "Executable progress indication appears suppressed on Windows"
@stefanklein Possible, I'd have to have another look, thanks. In the mean time, I made an experimental branch that unconditionally writes the progress indication to std::cout for elastix executables: main...Remove-ProgressCommand-m_StreamOutputIsConsole Unfortunately one of the tests fail on Windows now:
I guess the
Maybe we should just add a command-line option for elastix, |
@stefanklein At the sprint of last Monday, Marius (@mstaring) decided not to directly fix this issue right now. Instead, it may be addressed later, with an upgrade or redesign of the logging system of elastix/transformix. |
Note that this commit does not yet address issue #756 "Executable progress indication appears suppressed on Windows"
Note that this commit does not yet address issue #756 "Executable progress indication appears suppressed on Windows"
Note that this commit does not yet address issue #756 "Executable progress indication appears suppressed on Windows"
Note that this commit does not yet address issue #756 "Executable progress indication appears suppressed on Windows"
The check if `std::cout.tellp() == -1` does not work (anymore...) Addresses issue #756 "Executable progress indication appears suppressed on Windows".
The check if `std::cout.tellp() == -1` does not work (anymore...) Addresses issue #756 "Executable progress indication appears suppressed on Windows".
The check if `std::cout.tellp() == -1` does not work (anymore...) Addresses issue #756 "Executable progress indication appears suppressed on Windows".
The following logic does not seem to work on Windows:
elastix/Core/elxProgressCommand.cxx
Lines 39 to 46 in cf02734
See https://godbolt.org/z/vTEr9nfs3
Output:
Even though Stack Overflow suggests that it should be -1: why does cout.tellp always return -1?, and Discrimination between file and console streams
The consequence is that the progress indicator won't appear on Windows.
The text was updated successfully, but these errors were encountered: