The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed. But there are files

Hello,

I am trying to setup SonarCloud for a c++ project.
When I run the analisys this the error that I get The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed.

The build wrapper json contains data, this is not all the data because I connot paste it all here:
# (C) SonarSource SA, 2014-2021, info@sonarsource.com
# All SONARSOURCE programs and content are copyright protected.
# SONARSOURCE and SONARQUBE are trademarks of SonarSource SA. All rights are expressly reserved.
#
# This file is designed exclusively for use with the SONARSOURCE C / C++ / Objective-C Plugin.
# It may not be used in connection with any other software.
# Any other use is prohibited by law and may be grounds for immediate termination of your License.
{
"version":"6.20",
"captures":[
{
"compiler":"msvc-cl",
"executable":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64\\CL.exe",
"stdout":"usage: cl [ option... ] filename... [ \/link linkoption... ]\r\n",
"stderr":"Microsoft (R) C\/C++ Optimizing Compiler Version 19.28.29910 for x64\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\n"},
{
"compiler":"msvc-cl",
"executable":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64\\CL.exe",
"cmd": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64\\CL.exe",
"\/c",
"\/IE:\\fac\\_master\\sem2\\quality\\TopologyMap\\includes",
"\/IE:\\fac\\_master\\sem2\\quality\\TopologyMap\\bin",
"\/IE:\\fac\\_master\\sem2\\quality\\TopologyMap\\includes\\Utils",
"\/Zi",
"\/nologo",
"\/W3",
"\/WX-",
"\/diagnostics:column",
"\/Od",
"\/Ob0",
"\/D",
"WIN32",
"\/D",
"_WINDOWS",
"\/D",
"CMAKE_INTDIR=\"Debug\"",
"\/D",
"_MBCS",
"\/Gm-",
"\/EHsc",
"\/RTC1",
"\/MDd",
"\/GS",
"\/fp:precise",
"\/Zc:wchar_t",
"\/Zc:forScope",
"\/Zc:inline",
"\/GR",
"\/FoUtils.dir\\Debug\\",
"\/FdUtils.dir\\Debug\\Utils.pdb",
"\/Gd",
"\/TP",
"\/errorReport:queue",
"E:\\fac\\_master\\sem2\\quality\\TopologyMap\\src\\Utils\\ConnectorStringToEnum.cpp",
"E:\\fac\\_master\\sem2\\quality\\TopologyMap\\src\\Utils\\JointStringToEnum.cpp"],
"cwd":"E:\\fac\\_master\\sem2\\quality\\TopologyMap\\build\\src\\Utils\\",
"env": [
"=::=::\\",
"=C:=C:\\Users\\thies\\Downloads\\build-wrapper-win-x86",
"=ExitCode=00000000",
"ALLUSERSPROFILE=C:\\ProgramData",
"APPDATA=C:\\Users\\thies\\AppData\\Roaming",
"CAExcludePath=C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\atlmfc\\include;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29910\\include;C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt;;C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\um;C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\shared;C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\winrt;C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\cppwinrt;C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\Include\\um;",
"ChocolateyInstall=C:\\ProgramData\\chocolatey",
"ChocolateyLastPathUpdate=132579671498520557",
"CommonProgramFiles=C:\\Program Files (x86)\\Common Files",
"CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files",
"CommonProgramW6432=C:\\Program Files\\Common Files",

Hi @deleted ,

please verify that you are calling sonar-scanner from the same build environment and from the project folder and that you are properly setting sonar.sources properties.

Hello,

I manage to run it manualy on the first try, GitHub Actions did not work.

Hi @deleted ,

put it like that it doesn’t help much, could you please share the github actions configuration? Please note that for C++ you should not use SonarCloud actions but you should setup manually the sonar-scanner.