Type: Debugger
Describe the bug
Following Get Started with C++ and Mingw-w64 and stopped at "Configure debug settings" because of an error message "Unable to create 'launch.json' file inside the '.vscode' folder (Cannot read property 'name' of undefined).".
To Reproduce
Steps to reproduce the behavior:
Additional context
I have installed VS Code few minutes ago from "system setup". It is still "fresh" without any extensions, except "C/C++ for Visual Studio Code"
Same problem, and v0.25.1 works well.
Same Problem
Same problem for me!
same problem for me
We're having problems reproing this bug. Can someone use Help->Toggle Developer Tools and provide the call stack of the undefined reference? You have a mingw compiler installed, right?
@sean-mcmanus
console.ts_137.log and notificationsAlerts.ts_38.log appears in Developer Tools console. I think you are looking for this
notificationsAlerts.ts:38 Error: Unable to create 'launch.json' file inside the '.vscode' folder (Cannot read property 'name' of undefined).
at fileService.readFile.then.then.e (debugConfigurationManager.ts:583)
at process._tickCallback (internal/process/next_tick.js:68)
onDidNotificationChange @ notificationsAlerts.ts:38
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
Same problem for me
Same problem for me
We got a repro after changing the display language (investigating a fix).
Using "Configure Display Language" to switch to "en" is a workaround, but we found the cause of the bug and should have a fix soon (the release might not be till Thursday though due to other fixes we're working on).
UPDATE: PR at https://github.com/microsoft/vscode-cpptools/pull/4480 .
I didn't reproduce this on Ubuntu 19.10.


have same problem on ububtu 18.1
I installed VSCode today which came in English by default. Still had this problem though. Setting the language to en again as described by sean-mcmanus fixed the problem for me.
Using "Configure Display Language" to switch to "en" is a workaround, but we found the cause of the bug and should have a fix soon (the release might not be till Thursday though due to other fixes we're working on).
UPDATE: PR at #4480 .
Hi @sevi1603 . I suspect the issue with detecting the current language should be addressed by https://github.com/microsoft/vscode-cpptools/pull/4474 , which will also be in the next release.
Fixed in 0.26.1
I still have the issue in version: 0.26.1
please look to the lower right. I use win10 German, but with en settings in VSC

@DAVIDSystems This is bug https://github.com/microsoft/vscode-cpptools/issues/4526 . It will be fixed when our pending 0.26.2-insiders ships (soon). You should also be able to workaround the issue via using Configure Display Language to set it to English (our extension is using German, incorrectly, if the language hasn't been set...we might open another bug on that).
Most helpful comment
Using "Configure Display Language" to switch to "en" is a workaround, but we found the cause of the bug and should have a fix soon (the release might not be till Thursday though due to other fixes we're working on).
UPDATE: PR at https://github.com/microsoft/vscode-cpptools/pull/4480 .