I’m trying to analyse a C++ and C# solution. The entire solution builds fine in MS Build - and SonarQube can analyse the C# elements ok (using the default steps given when setting up the project in the Web UI).
Following the instructions in the C++/C# mix section of https://docs.sonarqube.org/latest/analysis/languages/cfamily/ - the following three commands:
SonarScanner.MSBuild.exe begin /k:"{key}" /n:"{name}" /v:"{version}" /d:sonar.cfamily.build-wrapper-output="{directory}" /d:sonar.login="{login}"
build-wrapper-win-x86-64.exe --out-dir {directory} MSBuild.exe /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.login="{login}
Results in the following output:
ERROR: Error during SonarQube Scanner execution
INFO: ------------------------------------------------------------------------
java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty. Please make sure that:
- you are using the latest version of the build-wrapper and the SonarCFamily analyzer
- your compiler is supported
- you are wrapping your build correctly
- you are wrapping a full/clean build
- if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:348)
…
ERROR:
The SonarQube Scanner did not complete successfully
14:50:17.848 Post-processing failed. Exit code: 1
Using SonarQube 8.2, MSBuild.SonarQube 4.7.1, C++ build wrapper. As far as I know I am using the latest versions available.
Any support would be appreciated. Thanks!