-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Terminal control codes being output even with "-q" (as of 8.0.0) #3418
Comments
To add to this, I can't reproduce on OSX. It seems to only be on Linux. |
Going to assume it's all in here: https://github.com/pypa/pip/blob/master/pip/_vendor/progress/helpers.py :) |
Doh, yes, definitely my fault. Ugh. The interaction between the use of the logging system for output + the desire for fancy terminal display is very nasty and error prone... I guess
I can make a patch containing the above but I don't know how to write a test for it, so I'd appreciate tips on that. Or given how trivial the fix itself is maybe it'd be quicker just to do it yourself, either way :-) |
Is there anything I can do to help with this? This is preventing everyone (including myself) from using pip 8.x with the Python docker image |
Commit 5bb9899 added some code for hiding/showing the cursor when running on the terminal, but accidentally made it so that it always printed the invisible control codes, even when not on a tty or when --quiet was specified. This turns out to be surprisingly bad (e.g. it breaks the official docker python builds). So, let's not do that. Fixes pypagh-3418
Submitted a PR. |
Commit 5bb9899 added some code for hiding/showing the cursor when running on the terminal, but accidentally made it so that it always printed the invisible control codes, even when not on a tty or when --quiet was specified. This turns out to be surprisingly bad (e.g. it breaks the official docker python builds). So, let's not do that. Fixes pypagh-3418
I think examples of output will illustrate the bug far more clearly than I can describe:
Compare to previous (expected) output:
It's probably also worth noting that piping the output didn't suppress these either (as might also be expected). 👍
(Happy to provide more detail or do more debugging as desired!)
The text was updated successfully, but these errors were encountered: