-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Progress bar is printed on new lines in Windows in CMD #2530
Comments
A possible solution https://github.com/lerna/lerna/pull/92/files thanks to @kentaromiura |
This was supposed to be fixed by #526 😢 It works for me in both Cmder and cmd.exe? |
It actually works fine on my home Windows PC which has a few CMD features enabled: bash for windows, chocolatey and maybe some other developer options. |
microsoft/WSL#1936 seems to imply the issue is specific to certain fonts, i.e. it's a rendering issue not an process output issue. |
It does look like this is caused by the typeface you use. @kaiyoma - which font are you using here? |
11-point Consolas. Pretty popular for programmers. :-) |
@kaiyoma, take a look at microsoft/WSL#1936. Sadly this isn't going to be fixed any time soon. I'm not sure if it's something the Yarn team could help with by doing something different... |
Interesting. Are we sure this is the same issue? I'm using the git bash that comes with the Windows installer of Node.js and I haven't installed the "BashOnWindows" project for running Linux binaries. Are they the same thing? |
To my knowledge the issue is due to the new support for ANSI escape codes
added to the windows console since the updates as part of support for WSL,
but are by default enabled. Perhaps yarn's progress renderer started
detecting and using ANSI support? Git bash should still be using a windows
node. You could try fiddling with fonts or sizes or disabling advanced
console features in the console options as a workaround for now?
…On Wed, 3 May 2017, 12:14 Kyle Getz, ***@***.***> wrote:
Interesting. Are we sure this is the same issue? I'm using the git bash
that comes with the Windows installer of Node.js and I haven't installed
the "BashOnWindows" project for running Linux binaries. Are they the same
thing?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2530 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABwVo35GKxJUeufqaMBnN-MC2zpugiwbks5r18b0gaJpZM4Lq7yE>
.
|
I've disabled progress bars for now ( |
Same problem with Windows 10 Creators Update. Copy from #3383 |
Excuse me. Does anyone have an idea to fix this? It's really annoying problem. 😢 |
Change your console font settings to a known good (Been a while, but Consolas 14pt works I think? Depends on font and size combination), or disable yarn progress bars with |
@simonbuchan OK. I'm using |
I'm on Windows and I don't have this problem. That said I'm using Conemu and the latest nightlies of Yarn. Just tried in PowerShell with Anyone can try with the latest nightlies and confirm this still exists? |
The problem is solved for me with yarn 0.27.5 on default Windows CMD |
🎉 |
I still experienced the problem. Windows 10 Pro Insider Build 16281 |
@KayLeung which version of Yarn? |
I tried Powershell / CMD / Conemu |
I also tried @sylvainpolletvillard, Conemu with Consolas (tried diff font-size), same bug. Just reminded the Bar in Jest is working well. Maybe Yarn could borrow some code from there: jestjs/jest#3626 |
I've done some quick testing, it worked: #4317 |
I closed the issue because I think this is a bug in Windows, not Yarn. Sorry for not being clear on that. |
Okay, I think we need to specify the output encoding when writing or simply do @KayLeung would you like to give it a try? |
Thank you for reopen. |
FWIW, I have this same issue in Terminal.app on macOS 10.12.6 using Hack 2.020. I've tried several different reasonable font sizes, all with the same result. |
**Summary** Fixes #2530. This patch replaces the 2-byte progress bar characters with `-` and `#` wrapped in a pair of `[` and `]` symbols to make it looks like a progress bar on the console with "simple", one-byte characters. The reason for preferring one-byte characters is the inconsistent width calculation on certain terminal emulators causing the calculated progress bar width to overflow the available terminal width, causing the progress bar to split into multiple lines. It now looks like this: ![new progress bar chars](https://i.imgur.com/d8XA4yS.gif) **Test plan** Manual verification and updating of existing test snapshots.
Wow! Thank you |
It's fixed. 🎉
|
This was the same issue with #1222. |
…kg#4317) **Summary** Fixes yarnpkg#2530. This patch replaces the 2-byte progress bar characters with `-` and `#` wrapped in a pair of `[` and `]` symbols to make it looks like a progress bar on the console with "simple", one-byte characters. The reason for preferring one-byte characters is the inconsistent width calculation on certain terminal emulators causing the calculated progress bar width to overflow the available terminal width, causing the progress bar to split into multiple lines. It now looks like this: ![new progress bar chars](https://i.imgur.com/d8XA4yS.gif) **Test plan** Manual verification and updating of existing test snapshots.
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Progressbar is printing every new state in a new line in Windows 10 default CMD
Please mention your node.js, yarn and operating system version.
Node 7.3.0
Windows 10
The text was updated successfully, but these errors were encountered: