Template for a good new topic, formatted with Markdown:
- ALM used: Azure DevOps
- CI system used: Azure DevOps
- Scanner command used when applicable (private details masked)
- Languages of the repository C++
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
-
In argument
sonar.cfamily.reproducerof SonarCloudPrepare@4 forwar slashes are required. On Windows build agents, the$(Build.SourcesDirectory)environment variable contains backslashes.##[error]12:54:35.97 ERROR: The sonar.cfamily.reproducer property was set but no matching file was found. The property was set to: ‘D:_1\7\s\source\<Project>\<FileName>.ixx’Workaround: you have to force to a specific self-hosted build server, get the error message from the first run and then put the path exactely as given and run again on the same build server. (The directory number between build servers differ.)
-
You are not allowed to use
'to format the path.
Workaround: As I had no spaces in the folder names,sonar.cfamily.reproducer=D:/_1/35/s/source/....worked. -
Uploading of the generated reproducer
*.tar.xzwas blocked.
Workaround: rename it to*.tarxz -
In SonarCloudAnalyze@4 several errors are reported, even when the reproducer was generated.
08:47:50.498 INFO: Compilation database was generated by build-wrapper 6.78
##[error]08:47:50.628 ERROR: Requesting reproducer for: D:/_1/35/s/source/WT.NXG.ComputeEngines/AbstractionsDataTypes.ixx
08:47:50.628 ERROR: Requesting reproducer for: D:/_1/35/s/source/WT.NXG.ComputeEngines/AbstractionsDataTypes.ixx
##[error]08:47:50.64 ERROR: Requesting reproducer for: D:/_1/35/s/source/WT.NXG.ComputeEngines/AbstractionsDataTypes.ixx
08:47:50.64 ERROR: Requesting reproducer for: D:/_1/35/s/source/WT.NXG.ComputeEngines/AbstractionsDataTypes.ixx
08:47:56.734 INFO: [1/1] Finished analyzing: D:/_1/35/s/source/WT.NXG.ComputeEngines/AbstractionsDataTypes.ixx (68ms)
##[error]08:47:56.739 ERROR:
A file named "sonar-cfamily-reproducer.tar.xz" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
D:\_1\35\sonar-cfamily-reproducer.tar.xz
08:47:56.739 ERROR:
A file named "sonar-cfamily-reproducer.tar.xz" has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
D:\_1\35\sonar-cfamily-reproducer.tar.xz
...
##[error]08:48:02.98 ERROR: Error during SonarScanner Engine execution
java.lang.IllegalStateException:
A file named "sonar-cfamily-reproducer.tar.xz" has been generated to help the problem investigation.
...
##[error]08:48:03.345 The scanner engine did not complete successfully
08:48:03.345 The scanner engine did not complete successfully
##[error]08:48:03.345 Post-processing failed. Exit code: 1
08:48:03.345 Post-processing failed. Exit code: 1
##[error][ERROR] SonarQube Cloud: Error while executing task Analyze: The process 'D:\_1\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.1.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
##[error]The process 'D:\_1\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\4.1.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1