Dear Sonar Lint Team,
I’m struggling to get SonarLint running for my C++ project. We use SonarCloud to improve our code base and the analysis with the build wrappers works like a charm. I’m trying to get SonarLint running such that I can avoid triggering the entire CI before fixing all code smells and so forth. I installed the plugin and it does find the compile commands. However, when I open new files I don’t get any feedback from sonar lint. I turned on the debugging output and it shows the following
[Debug - 10:30:46.619] Start analysis [Info - 10:30:46.622] Index files [Debug - 10:30:46.623] Language of file 'file:///Users/tobias/tmp/biodynamo/src/core/diffusion/euler_depletion_grid.cc' is set to 'C++' [Info - 10:30:46.623] 1 file indexed [Debug - 10:30:46.644] 'JavaSensor' skipped because there is no related files in the current project [Debug - 10:30:46.644] Execute Sensor: CFamily [Debug - 10:30:46.702] Cached compilation database content did not change [Debug - 10:30:46.702] Time to parse Compilation Database: 46ms [Info - 10:30:46.702] Ignore unknown compiler: /opt/homebrew/bin/mpicxx -DUSE_DICT -DUSE_MPI -DUSE_PARAVIEW -D_LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM -Dbiodynamo_EXPORTS -I/opt/homebrew/Cellar/open-mpi/4.1.4_2/include -I/Users/tobias/tmp/biodynamo/build/third_party/paraview/include/paraview-5.10 -I/Users/tobias/tmp/biodynamo/build/optim-prefix/src/optim/include -I/Users/tobias/tmp/biodynamo/build/third_party/root/include -I/Users/tobias/tmp/biodynamo/src -I/Users/tobias/tmp/biodynamo/test -I/Users/tobias/tmp/biodynamo/third_party -I/Users/tobias/tmp/biodynamo/third_party/omp -I/Users/tobias/tmp/biodynamo/third_party/opencl -I/Users/tobias/tmp/biodynamo/third_party/unibn -I/Users/tobias/tmp/biodynamo/third_party/nanoflann -I/Users/tobias/tmp/biodynamo/third_party/cxxopts-v2.2.1 -I/Users/tobias/tmp/biodynamo/build/extracted-third-party-libs -I/Users/tobias/tmp/biodynamo/build/version -I/Users/tobias/tmp/biodynamo/build/omp -I/Users/tobias/tmp/biodynamo/build/opencl -I/Users/tobias/tmp/biodynamo/build/gtest/src/gtest/googletest/include -isystem /opt/homebrew/opt/libomp/include -Wall -Wno-missing-braces -m64 -fPIC -Xclang -fopenmp -Wno-undefined-var-template -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -mmacosx-version-min=12.6 -fPIC -fvisibility-inlines-hidden -Xclang -fopenmp -std=c++14 -o CMakeFiles/biodynamo.dir/src/core/diffusion/euler_depletion_grid.cc.o -c /Users/tobias/tmp/biodynamo/src/core/diffusion/euler_depletion_grid.cc [Info - 10:30:46.703] Subprocess(es) done in 57ms [Info - 10:30:46.703] 0 compilation units analyzed [Debug - 10:30:46.703] 'Python Sensor' skipped because there is no related files in the current project [Debug - 10:30:46.703] Execute Sensor: HTML [Debug - 10:30:46.703] 'XML Sensor' skipped because there is no related files in the current project [Debug - 10:30:46.704] 'PHP sensor' skipped because there is no related files in the current project [Debug - 10:30:46.704] 'Analyzer for "php.ini" files' skipped because there is no related files in the current project [Debug - 10:30:46.704] Execute Sensor: Sonar Secrets Detection Sensor [Info - 10:30:46.752] Found 0 issues
The failed analysis must be related to
[Info - 10:30:46.702] Ignore unknown compiler but I have no idea how to bypass that. I’d be very grateful about any suggestions on how to get it running.
Thank you very much!
- Operating system: macOS 12.6.1
- SonarLint plugin version: v3.13.0
- Programming language you’re coding in: C++
- Is connected mode used: No