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

broken setting in vscode (C_Cpp > Default: Compile Commands) #165

Closed albmef closed 1 week ago

albmef commented 1 week ago

Hi where to we set the compile_commands.json path for zephyr project ?

i try to follow the document below but the C_Cpp > Default: Compile Commands setting is no longer available https://docs.zephyrproject.org/latest/develop/tools/vscode.html

please help

thanks bob

franneck94 commented 1 week ago

I dont know what zephyr is, but at first glance it seems that there is a cmake project used, is this correct?

albmef commented 1 week ago

Hi https://www.zephyrproject.org/ i'ts a FOSS, RTOS OS that runs on ressource limited targets like microcontrollers. its build system (west) uses cmake i'm HW/FW guy, i'm a noob with VSCODE and CMAKE, what i'm trying to do is follow the official tutorial and allow VSCODE to build a zephyr project. But since the vscode C/C++ extension broke its setting names i'm not able to proceed with configuring the compile_commands.json path. bob

albmef commented 1 week ago

it seems related to something called "intellisense" https://code.visualstudio.com/docs/cpp/faq-cpp

bob

albmef commented 1 week ago

ok i minstakenly installed the wrong vscode extension the one i needed is the official C/C++ extension provided by microsoft but curiously it did not appeared in the marketplace as it was replaced by the c/c++ extension pack that uses a similar name and icon, hence the mistake... here is the one i need in zephyr https://code.visualstudio.com/docs/languages/cpp