Nemeski@lemm.ee to Programming@programming.dev · 2 days agoDevs sound alarm after Microsoft subtracts C/C++ extension from VS Code forkswww.theregister.comexternal-linkmessage-square104fedilinkarrow-up1441arrow-down111
arrow-up1430arrow-down1external-linkDevs sound alarm after Microsoft subtracts C/C++ extension from VS Code forkswww.theregister.comNemeski@lemm.ee to Programming@programming.dev · 2 days agomessage-square104fedilink
minus-squarechakli@lemmy.worldlinkfedilinkarrow-up1·14 hours agoBased on https://docs.zephyrproject.org/latest/develop/getting_started/index.html Zephyr seems to use cmake So you should be able to use https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html to generate the compile commands json and configure clangd to use that.
minus-squareJustEnoughDucks@feddit.nllinkfedilinkarrow-up1·11 hours agoYeah, I have that set that via set(CMAKE_EXPORT_COMPILE_COMMANDS ON) but no compile_commands.json are actually output, sadly.
Based on https://docs.zephyrproject.org/latest/develop/getting_started/index.html Zephyr seems to use cmake
So you should be able to use https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html to generate the compile commands json and configure clangd to use that.
Yeah, I have that set that via
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
but no compile_commands.json are actually output, sadly.