Connected to SonarCloud or SonarQube (and which version):
And a thorough description of the problem / question:
Setting toolset to ClangCL produce this error. Can’t find find a solution to set compiler path to a custom llvm installation directory (eg: C:\Program Files\LLVM in .vcxproj). Setting toolset back to MSVC and sonarlint able to analyze my files.
Sonarlint output:
[CFamily Analysis] Internal error in the analysis subprocess: Compiler execution failed. Compiler path: \clang-cl.exe.
For some reason, the VS API does not return us the broken path to the compiler. At the moment I’m not sure why that happens and am trying to figure out a solution/workaround for you
Thank you for looking into the issue, setting that property works but then i encounter another issue.
Sonarlint Logs:
[CFamily Analysis] Internal error in the analysis subprocess: Failed to identify the version for C:\Program Files\LLVM\bin\clang-cl.exe.
I’m using the precompild binaries from llvm github (clang+llvm-19.1.1-x86_64-pc-windows-msvc.tar.xz)
Hi, unfortunately there’s not enough info in the logs and we could not reproduce this on our side, but we have come up with a few things we could try to find the root cause.
Do you have the same error when using LLVM from MSVC clang tools?
Can you reproduce the issue with custom llvm when creating a new project? We would like to know this to see if the problem is project-dependent or not
In your C:\Users\<username>\AppData\Local\Temp folder there should be files with SL-probing-* pattern. If you could delete them, try start your VS with SonarLint, open the project with the issue, and then send us the newly produced SL-probing-* files, that would be great