-
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
Completions should not perform version check (completions hang & spam terminal) #5135
Comments
Thanks for filing this @mqudsi! :) This has come up before (#4768 (comment)) and I guess a dedicated issue for this is a good idea. I don't think there's any major caveats to doing this. I'll mark this as "awaiting PR" since I'm basically willing to merge a PR that implements this properly. I might even get to this myself, if I get the time. |
I looked at the code for this (even for 9.0.3 as this issue reports), and I can't seem to see how the code is behaving as described. If you look at the Lines 70 to 80 in ece1c6b
So unless I'm missing something, the only thing that occurs to me that could explain the reported behavior is if the The version-check is run when |
Yep yep @cjerdonek! Could someone provide a reproduction for this issue, clearly demonstrating how the completion was installed? |
Since it's been some time without a response, I will close this issue. If anyone can provide the information above to demonstrate that this is a problem, then please let us know! |
pip's default completions (at least for fish) perform the version check during background completions tasks. i.e. the user merely types
pip
and the shell hangs until the version check is completed (since fish does not run subshells asynchronously).While bash does run subshells asynchronously and is therefore not affected by the aforementioned delay, completions under both fish and bash are affected by the next part of this bug:
When an out-of-date pip is found, again while running in the background and without any actual command execution on behalf of the user who has only typed in
pip<SPACE>
in the terminal until this point,/dev/tty
is spammed with "pip out of date, runpip install --upgrade pip
" messages.For these reasons,
--disable-pip-version-check
must be included in all pip commands that are run during the completion process.The text was updated successfully, but these errors were encountered: