Discussed in #19275
Originally posted by sugatoray June 10, 2022
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 the envFile.
# filename: .env
# set this in .vscode/settings.json:
# "python.envFile": "${workspaceFolder}/.env"
DEFAULT_INTERPRETER_PATH=path/to/python/interepreter
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
🔥 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:
Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:23:40.286Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.13.0-44-generic snap
Steps to Reproduce:
Follow the description given above.
💡 I have opened another issue here:
I was told to contact with vscode-python by the vscode team.
Discussed in #19275
Originally posted by sugatoray June 10, 2022
Despite specifying a
python.envFilein workspace (.vscode/settings.json),python.defaultInterpreterPathdoes 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.envfile).References
.envfile 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-pythonby thevscodeteam.