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
However, the main point is that even though VSCode's official settings reference states that it has default python.poetryPath set for poetry, poetry-created environments' interpreters are not shown in 'Python: Select Interpreter'.
I've also tried adding python.venvPath": "~/.cache/pypoetry/virtualenvs", to my settings.json as suggested in microsoft/vscode-python#8372 (comment) but to no avail. (I have to ask though. It seems that poetry's virtualenvs are located at ~\\AppData\\Local\\pypoetry\\Cache\\virtualenvs, not ~/.cache/pypoetry/virtualenvs. So why did the original issue suggested adding ~/.cache/pypoetry/virtualenvs in the first place?)
I also tried an absolute path, by adding "python.venvPath": "C:\\Users\\Jaepil\\AppData\\Local\\pypoetry\\Cache\\virtualenvs", to the same settings, but it also doesn't work.
At this point, I think it's VSCode's bug that doesn't properly recognize venv's path.
Does this issue occur when all extensions are disabled?: Yes/No
99% Yes. Since Python is also an extension, this won't even run without Python extension enabled. However, any other extensions won't likely affect selecting Python interpreters.
The text was updated successfully, but these errors were encountered:
Based on your description, it seems this issue should be filed with the python extension directly. The setting you have modified to workaround this as suggested in the linked issue belongs to the python extension.
Windows 10 pro, - 64bit (the latest)
Steps to Reproduce:
poetry
environment as explained in the official documentation.I've left a detailed explanation on Stackoverflow.
However, the main point is that even though VSCode's official settings reference states that it has default
python.poetryPath
set forpoetry
, poetry-created environments' interpreters are not shown in 'Python: Select Interpreter'.I've also tried adding
python.venvPath": "~/.cache/pypoetry/virtualenvs"
, to mysettings.json
as suggested in microsoft/vscode-python#8372 (comment) but to no avail. (I have to ask though. It seems that poetry's virtualenvs are located at~\\AppData\\Local\\pypoetry\\Cache\\virtualenvs
, not~/.cache/pypoetry/virtualenvs
. So why did the original issue suggested adding~/.cache/pypoetry/virtualenvs
in the first place?)I also tried an absolute path, by adding
"python.venvPath": "C:\\Users\\Jaepil\\AppData\\Local\\pypoetry\\Cache\\virtualenvs"
, to the same settings, but it also doesn't work.At this point, I think it's VSCode's bug that doesn't properly recognize venv's path.
Does this issue occur when all extensions are disabled?: Yes/No
99% Yes. Since Python is also an extension, this won't even run without Python extension enabled. However, any other extensions won't likely affect selecting Python interpreters.
The text was updated successfully, but these errors were encountered: