Skip to content

Run Python File no longer escapes slashes in bash terminal #971

@MKatz-DHSC

Description

@MKatz-DHSC

Type: Bug

VS Code version 1.104 or above
Git Bash for Windows
A Conda install (we use miniforge)

  1. Set the default terminal to Bash
  2. Open a Python file
  3. Choose the base Conda environment as your Python interpreter
  4. Click the "Run Python File" button

Issue

Path to conda environment contains backslashes and so bash mangles path.

Expected result

Path to conda environment has backslashes replaced with forward slashes (previous behaviour in VS Code version 1.103).

VS Code version: Code 1.105.1 (7d842fb85a0275a4a8e4d7e040d2625abbf7f084, 2025-10-14T22:33:36.618Z)
OS version: Windows_NT x64 10.0.26100
Modes:

Extensions (19)
Extension Author (truncated) Version
claude-code Ant 2.0.19
vscode-pull-request-github Git 0.120.0
rainbow-csv mec 3.23.0
debugpy ms- 2025.14.1
python ms- 2025.16.0
vscode-pylance ms- 2025.8.3
vscode-python-envs ms- 1.10.0
jupyter ms- 2025.9.1
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.3.0
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
autodocstring njp 0.6.1
indent-rainbow ode 8.3.1
vscode-yaml red 1.19.1
r REd 2.8.6
r-syntax REd 0.1.3
code-spell-checker str 4.2.6
code-spell-checker-british-english str 1.4.32

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions