Which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension):
I’m using SonarCloud and am analyzing my open source project winLAME (https://sonarcloud.io/dashboard?id=winLAME, code is in https://github.com/vividos/winLAME). I’m using Sonar Scanner MSBuild 18.104.22.1688-net46.
What are you trying to achieve:
I’m using a CustomBuild MSBuild element (configured in Visual Studio, actually) that compiles a MainFrameRibbon.xml into an .rc, .h and .bml file. You can see the part here:
The tool used is called “uicc” and is from Microsoft. The following error is produced:
ERROR: Error during SonarQube Scanner execution ERROR: Illegal char <:> at index 7: /header:D:\Projekte\winLAME\source\winlame\res\MainFrameRibbon.h ERROR: The SonarQube Scanner did not complete successfully 22:20:18.176 Post-processing failed. Exit code: 1
After a bit of search, it was clear that the error comes from this command line:
uicc D:\Projekte\winLAME\source\winlame\res\MainFrameRibbon.xml D:\Projekte\winLAME\source\winlame\res\MainFrameRibbon.bml /header:D:\Projekte\winLAME\source\winlame\res\MainFrameRibbon.h /res:D:\Projekte\winLAME\source\winlame\res\MainFrameRibbon.rc
You can reproduce the error by cloning the GitHub repository, go to the “source” folder and run SonarCloud.cmd (you obviously need to specify a different project to successfully run the analysis, since SONARLOGIN is an envionment variable only set on my development PC.
How can I stop the Sonar Scanner from analyzing this command line? Thanks! Michael