Skip to content

Run python file via Bash don't work #25389

@Sveagle

Description

@Sveagle

Type: Bug

Behaviour

When i click on Run Python FIle button i get this problem:

$ D:\Dev\acme_project\env\Scripts\python.exe d:/Dev/acme_project/acme_project/birthday/views.py
bash: D:Devacme_projectenvScriptspython.exe: command not found

Previously, it all worked perfectly, no issues whatsoever

Steps to reproduce:

  1. Select Git Bash terminal as default terminal
  2. Make any python file, insides don't matter, cus it won't launch anyway
  3. Get error because of backslashes

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

When clicking on run Python file, it sends wrong path file to terminal, editing path file manually don't work

Extension version: 2025.10.1
VS Code version: Code 1.103.0 (e3550cfac4b63ca4eafca7b601f0d2885817fd1f, 2025-08-06T21:40:10.271Z)
OS version: Windows_NT x64 10.0.19045
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.8
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
auto-rename-tag for 0.1.10
debugpy ms- 2025.10.0
flake8 ms- 2025.2.0
js-debug ms- 1.102.0
js-debug-companion ms- 1.1.3
prettier-vscode esb 11.0.0
pylint ms- 2025.2.0
python ms- 2025.10.1
sqlite-viewer qwt 0.10.6
vscode-html-css ecm 2.0.13
vscode-js-profile-table ms- 1.0.10
vscode-pylance ms- 2025.7.1
vscode-python-envs ms- 1.2.0
System Info
Item Value
CPUs AMD Ryzen 5 4600H with Radeon Graphics (12 x 2994)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.37GB (7.08GB free)
Process Argv --crash-reporter-id 8e63d72d-7e02-4bba-a788-3ac67594ef63
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
6518g693:31334701
aj953862:31281341
pylancequickfixt:31358882
9d2cg352:31346308
convertlamdat:31358880
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
envsactivate1:31353494
yijiwantestdri0626-c:31336931
0927b901:31350571
f76d9909:31348711
45650338:31358607
0cj2b977:31352657
cloudbuttonc:31366567
retryenabled:31366551

Metadata

Metadata

Assignees

Labels

area-terminalinfo-neededIssue requires more information from posterneeds spikeLabel for issues that need investigation before they can be worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions