vscode: externalConsole cant be opend anymore

Type: Bug

Since the update from today, vscode cant launch the external console on windows anymore.


Error

The following argument was not expected: /c Run with --help for more information.


OK

I didnt change anything, so the paths are still to the normal cmd.exe etc.

VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info
Item Value
CPUs Intel® Xeon® W-11855M CPU @ 3.20GHz (12 x 3187)
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
Load (avg) undefined
Memory (System) 31.20GB (20.61GB free)
Process Argv –crash-reporter-id 3d4f82e6-876d-4a51-a2f5-ceaad9319641
Screen Reader no
VM 0%
Extensions (15)
Extension Author (truncated) Version
vscode-eslint dba 2.4.4
gpt-commit Dmy 1.0.5
copilot Git 1.156.0
copilot-chat Git 0.12.0
vscode-clangd llv 0.1.26
csharp ms- 2.15.30
vscode-dotnet-runtime ms- 2.0.1
cmake-tools ms- 1.16.32
cpptools ms- 1.18.5
cpptools-extension-pack ms- 1.3.0
prettyxml Pra 4.1.1
vscode-xml red 0.26.1
LiveServer rit 5.7.9
vs-code-prettier-eslint rve 5.1.0
cmake twx 0.0.17

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30951796
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019bcf:30953938
7j2b6412:30949929

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 2
  • Comments: 20 (3 by maintainers)

Most upvoted comments

the problem is this - vs code runs

wt.exe -d C:\WINDOWS\System32\cmd.exe /c ""c:\Users\paulm\.vscode\extensions\ms-vscode.cpptools-1.18.5-win32-x64\debugAdapters\vsdbg\bin\VsDebugConsole.exe" "\\.\pipe\Microsoft-VisualStudio-Debug-Console-{69E7F460-A1FB-47CC-A7A3-F0C2539DC35B}" "Local\{69E7F460-A1FB-47CC-A7A3-F0C2539DC35B}" "/AutoExit" & pause"

wt.exe is reading the /c as an argument to it, the whole string after -d needs to be quoted, so that cmd reads it not wt

This issue is same as issue#204039.

downgraded to 1.85 and everything works again, without any change to any settings

Did the same and can confirm its definitely an issue with 1.86 🤣