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 }}
Repository navigation
Select interpreter at workspace level doesn't have any effect #17854
area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterinvestigatingWe are looking into the cause of the issue
Extension version (available under the Extensions sidebar): 2021.11.1382879425-dev
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): XXX
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Selecting an interpreter at the workspace level would allow it to be used
Actual behaviour
Selecting an interpreter at the workspace level has no effect
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Create new workspace file
Add a folder with python files in it to the workspace
Run 'Select intepreter'
Pick the 'workspace level' option
Pick an interpreter
Interpreter is not set in the UI:
Interpreter does not seem to be used when starting a terminal
I think your workspace folder might have d:\Source\Testing\storeEnv\Scripts\python.exe selected (which is an invalid interpreter) because of which settings at workspace level has no effect. Can you try clearing the workspace folder setting first using Python: Clear workspace interpreter command.
I also noticed that sometimes when an interpreter is changed for a workspace folder, we also need to change the currently active editor file for the changes to reflect, it may also have been that.
area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterinvestigatingWe are looking into the cause of the issue
Activity
karrtikr commentedon Oct 27, 2021
I'm unable to reproduce this issue.
I think your workspace folder might have
d:\Source\Testing\storeEnv\Scripts\python.exeselected (which is an invalid interpreter) because of which settings at workspace level has no effect. Can you try clearing the workspace folder setting first usingPython: Clear workspace interpretercommand.rchiodo commentedon Oct 27, 2021
Hmm, not reproing anymore. Even without the clear workspace interpreter.
karrtikr commentedon Oct 27, 2021
I also noticed that sometimes when an interpreter is changed for a workspace folder, we also need to change the currently active editor file for the changes to reflect, it may also have been that.