Skip to content

the run python file button is malfunctioning #644

@av0t

Description

@av0t

Type: Bug

initially, when I press the button,
it executes:
[& "c:\Program Files\Python......." d:/programming/test.py]

but when I click the button again,
it executes:
[ c:\Program Files\Python....... d:/programming/test.py ]

which leads to an error in windows powershell as there is a 'space' in the path as it is not enclosed in inverted commas. I cannot seem to find a solution to this.

when simply entering
[ python test.py]
from within the relevant directory, there are no issues.

Please solve this issue or get back to me if I am doing something wrong.

VS Code version: Code 1.102.2 (c306e94f98122556ca081f527b466015e1bc37b0, 2025-07-22T12:15:48.520Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.90GB (7.69GB free)
Process Argv --crash-reporter-id cb10dbbc-0287-4ddd-aaed-f5b796573891
Screen Reader no
VM 0%
Extensions (12)
Extension Author (truncated) Version
code-runner for 0.12.2
copilot Git 1.346.0
copilot-chat Git 0.29.1
debugpy ms- 2025.10.0
python ms- 2025.10.1
vscode-pylance ms- 2025.7.1
vscode-python-envs ms- 1.0.0
jupyter ms- 2025.6.0
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
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249601
binariesv615:30325510
2e7ec940:31000449
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
9064b325:31222308
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
9d2cg352:31346308
usemarketplace:31343026
nesew2to5:31336538
0g1h6703:31332163
agentclaude:31350858
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
envsactivate1:31353494
yijiwantestdri0626-t:31336930
0927b901:31350571
4gdec884:31348710
45650338:31354155
0cj2b977:31352657
ja2e5747:31349955

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions