Replies: 4 comments 4 replies
-
The issue is at #19276 (although in the future please only open one thing, otherwise it splits the conversation and it's hard to track). This is working as intended. VS Code does not load environment files when evaluating settings and we don't either; environment files are meant for when we execute Python code. |
Beta Was this translation helpful? Give feedback.
-
This does not seem to work if I try opening the following:
Both these seem to work only when I hard code the python interpreter path in The documentation says that for |
Beta Was this translation helpful? Give feedback.
-
Hi @brettcannon,
Here it is. Source: https://code.visualstudio.com/docs/python/environments#_manually-specify-an-interpreter On a different noteThis is confusing! In the last two lines, it says: But then again, here it seems that you could in fact use variable substitution in a cc: @karrtikr |
Beta Was this translation helpful? Give feedback.
-
This could be related: |
Beta Was this translation helpful? Give feedback.
-
Despite specifying a
python.envFile
in workspace (.vscode/settings.json
),python.defaultInterpreterPath
does not seem to fetch the interpreter path via an environment variable, declared in theenvFile
.If I hard code the
python.defaultInterpreterPath
, it works, and auto activates the interpreter, when I open a new terminal window. But it does not activate the the interpreter from the variable (in.env
file).References
.env
file if you are debugging: https://www.reddit.com/r/vscode/comments/tkwooh/run_not_debug_python_using_the_env_file/🔥 Note
I have raised this as a question on stackoverflow already.
Does this issue occur when all extensions are disabled?: Yes/No
I have not and can't afford to check that as I don't know a programmatic way of restoring current extensions state.
Diagnostics Info:
Steps to Reproduce:
Follow the description given above.
💡 I have opened another issue here:
I was told to contact with
vscode-python
by thevscode
team.Beta Was this translation helpful? Give feedback.
All reactions