Open slhck opened 3 months ago
Hi @slhck Thanks for filing this issue.
What happens if you do Python: Clear cache and reload
this can be triggered via command palette(ctlr/cmd + shift + p) and type in the clear cache...```
I feel like https://github.com/microsoft/vscode-python/issues/23352 may be related.
I haven't yet tried this, but for some reason the problem went away on its own, for now. I will check for the next day or two and reopen the issue if needed.
No, unfortunately, despite clearing the caches, this issue persists.
When I open a new Python project in VS Code, I always get the same default interpreter, which is a Poetry environment that I actually only use for a particular project. However, it gets auto-selected for every Python project, even one that I haven't loaded before:
I am using:
I have set the following custom setting:
pyenv global
is set to3.11
, sowhich python
in a default shell points to/Users/werner/.pyenv/versions/3.11.7/bin/python3
. I would expect VS Code to either pick that one for me, or at least the Homebrew-installed one, but definitely not a random Poetry environment.I do not want to set a default interpreter manually — it's the automatic selection process that appears to broken here.
Here is the Python output: