-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
New cargo output is broken in MSYS2 #6108
Comments
Hm, I'm unable to reproduce any issues with the progress bar. Which console are you using (mintty? conemu? etc.) Which version? Which msys distribution and version are using? |
@ehuss I'm using bash installed via Git for Windows (C:\Program Files\Git\git-bash.exe). Git version is 2.16.2, not sure what version of MSYS it has though. It's MinTTY. I've just installed the latest version 2.19.0 (as you can see on the screenshot above), still have the same issue. That's quite weird. Here is my output: But then I do cargo clean + cargo build and it somehow fix the output: I'm not sure what it was, but I think issue is ok to be closed now. We can always reopen it if we figure out what's causing it. |
Indeed strange. It looks like in your second attempt the window was resized? That might impact it. The window does need to be at least 60 characters wide, but it looks like you started with the default 80. |
Yep, I resized it indeed, but then I resized it back, but correct behavior persisted... Not sure what does affect this. |
@ehuss FWIW I can reproduce this as well. After opening a msys terminal and without changing its size at all we print the status across many lines. I wonder if we have an off-by-one error or something like that which is causing us to print more characters than intended? |
Hm, I couldn't repro on my desktop, but I started a fresh VM and was able to repro there. The console is reporting a width of 119 regardless of the actual width. I don't have any good ideas. Some options I'm thinking:
Any thoughts? |
Weird! I wonder if something changed recnetly in windows? In any case using 60 seems fine by me, and |
Second attempt at fixing msys terminal width. Lock the max width on msys-based terminals to 60. I tried a lot of different things, but I was unable to find a way to detect the correct width in mintty. Unfortunately this means that terminals that work correctly like ConEmu will also be capped at 60. C'est la vie. Of course this does not affect cmd, powershell, etc. Fixes #6108
I recently updated my compiler and figured out that you added fancy new output with progress bars and so on. Looks pretty nice, but it's output is somehow broken.
Here is example of one build output: https://gist.github.com/Pzixel/4a02dc90496a02a10b1208c4646bf096
It looks innocent, but if you add "word wrap" you could see following:
I've tested it in powershell console and I've got much nicer output:
The text was updated successfully, but these errors were encountered: