-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Trouble detecting environments #14909
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
Comments
+1 to this issue. The |
Hi everyone, thank you for reaching out.
Which setting are you using here,
Do you mean a new terminal window opened in VS Code? Which terminal are you using? Thanks! |
Hi Kim, I use The command works in a vs code terminal instance or directly in the windows cmd prompt. |
Hello, just to let you know, I'm quite perplexed since as of today all my environments are correctly listed by the extension. I have no idea what might have changed since I opened this issue last week. |
Hi @thierry-bm, thank you for the heads-up! Maybe the cache refreshed? In any case, I will be closing this issue for now, and if the problem reappears feel free to leave a comment here and we'll can reopen it, or open a new issue. Thanks! |
Hello Python extension team, unfortunately I keep encountering this problem. It's very erratic. Sometimes it only lists some virtual environments, sometimes (but rarely and I can't figure under which circumstances) all of them are correctly listed, and sometimes, only one interpreter is available. |
I'm sorry to hear about this random behaviour 😟 We are working on refactoring our environment discovery logic (#12020), which may solve these issues once it lands (or at least, make it easier to investigate). |
Glad to hear it. Let me know if I you need additional details. Thanks ! |
Sounds good! Feel free to subscribe to #12020 to get notified when the new interpreter discovery logic becomes available (on an opt-in basis as first) 👍 |
Environment data
python.languageServer
setting: PylanceExpected behaviour
The extension finds all interpreters listed under the venv Path variable.
Actual behaviour
The interpreter finds none of them (except those already in cache?)
Steps to reproduce:
Note too sure. For a while the select interpreter worked flawlessly but not anymore.
Logs
However the above command when pasted in a new terminal window works flawlessly:
The text was updated successfully, but these errors were encountered: