Skip to content

Run active file [with spaces in name] in active terminal #56109

@luiszun

Description

@luiszun

Issue Type: Bug

I checked the issue reproes in the latest code version.

1 - Open a file that contains whitespaces in name. (In this example "AA Generator.py")
2 - Execute "Run Active File In Active Terminal"

Expected result: The file is executed, either quoted :

  • PS C:\Users\luiszun\git\vscode> "c:\Users\luiszun\Desktop\AA Generator.py"

Actual result: The incomplete-filename is executed with the rest interpreted as a parameter.

PS C:\Users\luiszun\git\vscode> c:\Users\luiszun\Desktop\AA Generator.py
c:\Users\luiszun\Desktop\AA : The term 'c:\Users\luiszun\Desktop\AA' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1

VS Code version: code-oss-dev 1.27.0 (Commit unknown, Date unknown)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.79GB (3.75GB free)
Process Argv C:\Users\luiszun\git\vscode.build\electron\Code - OSS.exe . --remote-debugging-port=9222 --no-first-run --no-default-browser-check --inspect=5875
Screen Reader no
VM 0%
Extensions: none

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeededwindowsVS Code on Windows issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions