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 CFamily 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:431)
It seems like the projectKey you provided is not correct. I think you are trying to analyse this project and it’s key is ArkNX_PSS_ASIO not PSS_ASIO.
However that doesn’t seem to be related to what the scanner is failing on, I suspect it is failing because of it is not wrapping a full build (like is mentioned in the error message). You are building your project prior to executing the build-wrapper, which probably means that the build-wrapper is not wrapping a full build.
@TomVanBraband
thanks,I solved the problem of incomplete compilation. And know the cause of the problem.
I generated build-wrapper-dump.json, but the sonar scan still reports errors.
An error occurred while analyzing the following compilation unit:
/home/travis/build/ArkNX/PSS_ASIO/PSS_ASIO/PSS_ASIO.cpp
A file named “sonar-cfamily-reproducer.zip” has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
/home/travis/build/ArkNX/PSS_ASIO/PSS_ASIO/sonar-cfamily-reproducer.zip