[CFamily Analysis] Unsupported configuration: is not a supported compiler

Please provide

  • Operating system: Windows 10 Home 10.0.19044 Build 19044
  • SonarLint plugin version:
  • Programming language you’re coding in: Visual Studio Professional 2022 C++
  • Is connected mode used:
    • Connected to SonarQube version

And a thorough description of the problem / question:
I am trying to use SonarLint in Visual Studio 2022 and I get the following error.
[CFamily Analysis] Unsupported configuration: ‘C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64’ is not a supported compiler.

My current setup is that the projects I am building are set to build using VS2017 due to compatibility issues with 3rd Party libraries. I created an environment variable “ClCompilerPath” and set the path to be where the cl.exe is located for VS2017 but I get this error. I have a colleague with the same exact setup and adding this environment variable worked for him. It would be very helpful to have this work on my development machine, so I can fix issues before I check them in, because right now the only way is to check them in and let SonarQube analyze it.

Hi @mirandajacobson,

ClCompilerPath should point to the compiler path, not the directory of the compiler.
It should be C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe instead of
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64


1 Like

Thank you that fixed the problem!!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.