You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Progress bar does not work in IntelliJ Idea Console #23
Does it work in terminal (cmd / powershell)? I haven't tried it under Windows -- it works for Mac.
Also, since you are using Consolas font, for better visual effects please set ProgressBarStyle.ASCII because the box-drawing glyphs are not aligned properly in Consolas.
IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Build #IU-173.4301.25, built on January 15, 2018
Licensed to JabRef /
Subscription is active until November 28, 2018
For non-commercial open source development only.
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
The issue here is that TerminalFactory.get().GetWidth (ProgressThread.consoleWdith()) is returning a width of 1 for IntelliJ. Adding a check for consoleWidth <= 10 and setting it to 80 (say) fixes the issue.
Activity
ctongfei commentedon Feb 17, 2018
Does it work in terminal (
cmd/powershell)? I haven't tried it under Windows -- it works for Mac.Also, since you are using Consolas font, for better visual effects please set
ProgressBarStyle.ASCIIbecause the box-drawing glyphs are not aligned properly in Consolas.saidaspen commentedon Feb 17, 2018
Same behaviour with ASCII.
ctongfei commentedon Feb 18, 2018
Does this problem only occurs in IntelliJ? Have you tried it outside of the IDE (e.g. using Windows
cmd)? This might be the same problem as #21 .saidaspen commentedon Feb 18, 2018
Same example in three consoles:
cmd.exe

git bash:

IntelliJ Idea 2017.3 (Windows)

koppor commentedon Feb 18, 2018
I can confirm this issue.
IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Build #IU-173.4301.25, built on January 15, 2018
Licensed to JabRef /
Subscription is active until November 28, 2018
For non-commercial open source development only.
JRE: 1.8.0_152-release-1024-b11 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
albancolley commentedon Mar 1, 2018
The issue here is that TerminalFactory.get().GetWidth (ProgressThread.consoleWdith()) is returning a width of 1 for IntelliJ. Adding a check for consoleWidth <= 10 and setting it to 80 (say) fixes the issue.
me.tongfei.progressbar.ProgressThread#consoleWidth
saidaspen commentedon Mar 2, 2018
I like that approach actually, as a work-around at least.
Veske commentedon Mar 2, 2018
I would open a ticket about this in Jetbrains' YouTrack also. They might just fix it for you.
ctongfei commentedon Mar 11, 2018
Fixed in 0.6.0 using @albancolley 's workaround approach.