ESP_igrr wrote: ↑Wed Jul 26, 2023 6:22 am
In that case, please try configuring that option. Otherwise sonarLint can't find the paths where to search for the header files.
compile_commands.json file should be generated in build/ directory of your project.
You were right. That was totally the issue.
I have went into SolarLint settings and noticed that it is refering to wrong compile_commands.json file:
Code: Select all
${workspaceFolder}\build\bootloader\compile_commands.json
instead, I have replaced it with
Code: Select all
${workspaceFolder}\build\compile_commands.json
And now it is working properly. Thanks for helping me out. Just out of curiosity though - what are the differences between build/bootloader/compile_commands.json and build/compile_commands.json?