franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

Runner not working with $(default)-Loop #77

Closed die-horschis closed 2 years ago

die-horschis commented 2 years ago

Hi Jan,

i activated your runner-tool with clean setup, your extension pack and the newest git. And your CPP Udemy Course.

After selecting a directory and click on the debug button, the tool produced a

"$(default)"

loop in settings and also one "$(default)" in the cpp-properties-file:

{ "configurations": [ { "name": "windows-cygwin-gcc-x64", "includePath": [ "${workspaceFolder}/**", "$(default)" ], "compilerPath": "C:/cygwin64/bin/gcc.exe", "cStandard": "${default}", "cppStandard": "${default}", "intelliSenseMode": "linux-gcc-x64", "compilerArgs": [ "" ] } ], "version": 4 }

I tried to overwrite it with ${default}, but it doesn't work. The settings.json still hangs in a loop, adding more and more lines of this:

"C_Cpp_Runner.includePaths": [ "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)", "$(default)",

Did I something wrong? Additional info: The Visual Studio Community Edition is installed on the same system.

Best regards

Michael

franneck94 commented 2 years ago

Have you set the global setting for the include path? It must be defined somewhere in you settings

I cannot reproduce this issue.

die-horschis commented 2 years ago

This works for me, thanks! There was an entry in c_cpp Default: Include Path, but i have no idea, who or which extension had inserted it.

Thanks a lot for your excellent support.