ERROR: Error during SonarQube Scanner execution (java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed.)

Hi, I’m using SonarCloud in Travis CI. The project is based on C++.
I didn’t have any problems until early this morning, but I’m starting to fail.

My project repo is
The log of Travis CI is

What should I do? T_T;

Hi @utilForever,

this change was introduced by, if you provide a build-wrapper-dump.json file and no files get analyzed it means there is an issue.

Looking at you are wrapping the wrong command, you are wrapping cmake build files generation, not the build itself. This results in not being able to analyze any C/C++ file.

You should probably change to something like:

build-wrapper-linux-x86-64 --out-dir ../bw-output make UnitTests

Thanks! This problem is resolved.
Thank you for your kind answer.

1 Like

A post was split to a new topic: Build-wrapper-dump.json file was found but 0 files were analyzed