Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Console] ProgressBar clears too many lines on update#40450
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
danepowell commentedMar 11, 2021
I don't see how the test failures are related to this PR, let me know if anything else is needed |
fabpot commentedMar 12, 2021
Can you add a test to cover this bug? |
grasmash commentedMar 12, 2021
I can reproduce the bug with a small terminal window. I can confirm via a manual test that the upstream change does resolve the issue. |
f17a75b to159bd27Comparedanepowell commentedMar 12, 2021
I added a unit test. You can see it failing in thetest-only commit and thenpassing after the fix. (both commits fail the full test suite due to some unrelated issue on the 4.4 branch) |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
22a4b09 to2aa3df0Comparenicolas-grekas commentedMar 16, 2021
Thank you@danepowell. |
The ProgressBar incorrectly calculates line lengths when updating, including non-displayable characters such as ANSI colors. This causes it to clear too many lines if the terminal width is greater than the displayed line length but less than the line length including non-displayed characters. An example of this bug in action ishttps://github.com/acquia/cli/issues/467