You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
IntelliSense/completions not updating after installing package into current virtual environment #562
This is an extreme hassle. There's no way to reload the language server without reloading the entire window, which terminates all processes running in the terminal windows.
I'm currently working on fixing the file watcher to detect package installs (see those linked issues above), but as a workaround you can also kill the language server process directly. That's obviously not perfect (and after the 5th restart, the VS Code language server client will stop restarting things), but would allow you to not kill your terminal windows.
Well it wouldn't be a big deal if I didn't have to reload the entire window. Why isn't there a command to rescan libraries? Or a command to restart the language server?
Feasibly without this directly supported, you can kill the LS process itself and it will be restarted up to 5 times, or you can select a different interpreter and switch back, but these are workarounds.
Again, you can re-enable that option and see if it's stable for you.
Activity
DonJayamanne commentedon Jan 29, 2019
Oh, I thought it never did work, as I've been reloading VSC.
jakebailey commentedon Jan 29, 2019
See also microsoft/PTVS#5026. I think this is a consequence of the module resolution stuff where we don't re-analyze if the packages change.
MikhailArkhipov commentedon Mar 1, 2019
With #611
qubitron commentedon May 6, 2019
This doesn't appear to be working, same repro, the squiggle goes away after reloading
MikhailArkhipov commentedon Jun 21, 2019
#1076, #1213
Hubro commentedon Jul 7, 2019
This is an extreme hassle. There's no way to reload the language server without reloading the entire window, which terminates all processes running in the terminal windows.
jakebailey commentedon Jul 8, 2019
I'm currently working on fixing the file watcher to detect package installs (see those linked issues above), but as a workaround you can also kill the language server process directly. That's obviously not perfect (and after the 5th restart, the VS Code language server client will stop restarting things), but would allow you to not kill your terminal windows.
Hubro commentedon Feb 22, 2020
This still happens☹️
After installing package:
After reloading the window:
My VSCode version:
Python extension:
I'm using
pipenvif that matters, and I'm installing packages by runningpipenv install ...:jakebailey commentedon Feb 24, 2020
We've made this opt-in, as it was causing more issues than it was solving (#1841). If you'd like to restore this, you can see: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#completions-do-not-update-andor-import-is-still-being-reported-as-unresolved-after-pip-install
Hubro commentedon Feb 24, 2020
Well it wouldn't be a big deal if I didn't have to reload the entire window. Why isn't there a command to rescan libraries? Or a command to restart the language server?
jakebailey commentedon Feb 24, 2020
A command to restart the LS without a reload would be microsoft/vscode-python#3073.
Feasibly without this directly supported, you can kill the LS process itself and it will be restarted up to 5 times, or you can select a different interpreter and switch back, but these are workarounds.
Again, you can re-enable that option and see if it's stable for you.