Please provide
- Operating system: Windows 10 Home 10.0.19044 Build 19044
- SonarLint plugin version: 6.8.0.53188
- Programming language you’re coding in: Visual Studio Professional 2022 C++
- Is connected mode used:
- Connected to SonarQube version 8.9.9.56886
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.