I’m using Debian Linux with Mate 1.16.2
VSCode 1.64.2, with SonarLint extension 3.4.0
to programm in C++
and I’m happy you just added the C++ support for VSCode - thank you
I have a multiroot Workspace with differnet folders for different git based projects and want to set “sonarlint.pathToCompileCommands” in the folder settings,
It works fine with an absolut path, but I need a relative path since the project root is located on different locations by different users.
The absolut path is (on my machine) /home/pf/projects/lbfb_3g_gw_common_libs/dev/build/armhf/compile_commands.json
I tried ${workspaceFolder}/dev/build/armhf/compile_commands.json and dev/build/armhf/compile_commands.json
but this didn’t work, SonarLint didn’t find compile_commands.json.
How can I set a relative path to compile_commands.json?
We are not supporting the placeholder ${workspaceFolder} at the moment. A relative path would be very brittle since we would have to agree on what is the basedir.
I believe the post above corresponds to this other thread you recently opened, so I will answer on the other one. If it’s not the case, could you please elaborate on the difference ?