Open lppedd opened 1 year ago
Additional detail: happens only when ASCII style is used.
I am aware of this bug: the test window does not flush regularly. I have not found a way to make it work properly in the unit test windows of IntelliJ.
@ctongfei FYI, since I need to test a CLI, I've changed the consumer of the progress bar to a "sequential one", meaning one that does not override the previous output. Sys.out.println
works as expected, but not Sys.out.print
.
Yes, it works if it is a "sequential one" but it'll look bad.
IntelliJ —— Help | Edit Custom VM options and add the line -Deditable.java.test.console=true
and restarting IntelliJ may be helpful.
Another case is that if the cpu is busy, the progress bar refresh task may be unable to refresh the progress because it can't getting the CPU cycle.
IntelliJ IDEA info:
The progress bar is always printed after the process terminates.