Description problem
After upgrade of SonarQube Developer Edition from 9.2.2 to 9.3.0, the C/C++ sonar-scanner run fails with the following issue:
INFO: Sensor CFamily [cpp]
INFO: CFamily plugin version: 6.30.0.42324
INFO: Using build-wrapper output: D:\G\8XYozyKs\0\XXX\build\sonar-data\build-wrapper-dump.json
INFO: Available processors: 8
INFO: Using 4 threads for analysis according to value of "sonar.cfamily.threads" property.
INFO: Loading cache from: D:\G\8XYozyKs\0\XXX\build\sonar\cache\analysis_state
INFO: Existing cache invalidated and deleted, change detected in plugin version
INFO: Trying to deduce "INCLUDE" environment variable from D:\G\8XYozyKs\0\XXX\windows\packages\Ccv.Vx.Microsoft.VS2017.Cl\bin\CL.exe
ERROR: Could not find Visual Studio install from: D:\G\8XYozyKs\0\XXX\windows\packages\Ccv.Vx.Microsoft.VS2017.Cl\bin\CL.exe
ERROR: The "INCLUDE" environment variable was not found, make sure that you are running the analysis from the right environment. Skip analysis of files:
The only change seems to be the version of the build-wrapper plugin: now version: 6.30.0.42324 and yesterday version: 6.28.0.39490, when the analysis ran successfully.
We have tried with a newest version of the sonar-scanner 4.7 as well. Same result.
If you check the generated build-wrapper-dump.json, you see a lot of “showIncludes”, but no “INCLUDE” variable.
Hope someone knows a workaround. Else we will have to rollback the upgrade.
Thanks,
Mariska