-
Notifications
You must be signed in to change notification settings - Fork 72
Description
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:
import os
print(os.environ["PATH"])
d:\repos\bug_vscode.vscode.env
PATH=${env:PATH};
d:\repos\bug_vscode.vscode\launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Current File",
"type": "python",
"envFile": "${workspaceFolder}/.vscode/.env",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
launch with the debug configuration from the GUI
This produces these prints in the terminal:
${env:PATH};
while, according to the documentation here I would expect ${env:PATH}
to be replaced by the content of the environment variable
Documented the issue here microsoft/vscode#112142 but got closed assuming it was a problem with the extension