microsoft / microsoft/vscode-python-debugger

Environment variable definitions file substitution does not work when debugging a Python file

Open
#159 6 comments 0 reactions 1 assignee View on GitHub

@karthiknadig is already working on this.

Since Aug 8, 2024.

bug needs PR
Dominant language
TypeScript
Stars
180
Forks
126
Avg merge
2d 3h
Merged PRs (30d)
3

Description

Environment data

  • VS Code version: Code 1.34.0 (a622c65b2c713c890fcf4fbf07cf34049d5fe758, 2019-05-15T21:59:37.030Z)
  • Extension version (available under the Extensions sidebar): 2019.4.12954
  • OS and version: Windows x64 10.0.17763
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv

Expected behaviour

According to documentation the value of any existing environment variable could be used when defining an environment variables.

Actual behaviour

Value of PATH environment variable is not being substituted.

Steps to reproduce:

  1. Create .env file with a single line PATH="${PATH};Blah-blah-blah".
  2. Print PATH value with print(os.environ.get('PATH'))
  3. ;Blah-blah-blah gets printed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.