Open martinResearch opened 3 years ago
@martinResearch, thanks for letting us know about this. Currently when you provide the "envFile" setting to the debugger, the extension only applies to that .env file the env vars defined in the "env" setting. Process-defined and other extension-defined env vars are not used. We'll check on what can be done about that and get back to you.
@int19h
See: src/client/debugger/extension/configuration/resolvers/helper.ts
For me it seems to actually work, if i skip env:
portion, i.e. (assuming Windows like in the OP)
PYTHONPATH=${PYTHONPATH}
Still happening when using 2021.4.681399556-dev.
Environment data
VS Code version: 1.52.0
Extension version (available under the Extensions sidebar): v2020.11.371526539
OS and version: Windows 10 Enterprise 20H2
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Expected behaviour
Should print the content of the PATH environment variable
Actual behaviour
the string "${env:PATH};" get printed
Steps to reproduce:
Steps to Reproduce:
create these files
d:\repos\bug_vscode\test.py:
d:\repos\bug_vscode.vscode.env
d:\repos\bug_vscode.vscode\launch.json
launch with the debug configuration from the GUI This produces these prints in the terminal:
while, according to the documentation here I would expect
${env:PATH}
to be replaced by the content of the environment variableDocumented the issue here https://github.com/microsoft/vscode/issues/112142 but got closed assuming it was a problem with the extension