You seem to have the â<enter âŚâ string that is used in place of a filepath. Could it be that you did not replace some placeholder like â<enter path here>â?
For starters, can you, please, provide the sonar-project.properties as well as the invocation line of sonar-scanner?
So, we use SonarCloud GUI and we donât use a sonar-project.properties file to configure the scanner. The only tune thing we give to the scanner is on our pipeline, the âprepare analysisâ phase, here is the yaml :
Have you configured the full pipeline required for C and C++ analysis?
You can follow the âAnalyzing a C/C++/Obj-C projectâ section in SonarQube documentation on Azure DevOps integration.
Note that configuring the âprepare analysisâ step is not enough: you need to also download the Build Wrapper before the analysis step and invoke it with your build command (in the âCommand Lineâ task).
When you âcan see the analysis resultâ, do you see any C or C++ issues on SonarCloud?
Can you, please, share the contents of the build-wrapper-output directory (i.e. âC:\BuildWrapper\ArtefactStagingDirectoryâ) after the compilation (you will probably need to insert a command after the âCompile Workbench pour VisioCxpâ step)?
Yes I see every C++ issues on SonarCloud when I exclude the folder that make the analysis fail
We run it on our own VM so here is the build-wrapper log and json. This is from my last run with the same java.nio.file.InvalidPathException: Illegal char <<> at index 0: <enter\
Thank you for the BuildWrapper output, it gave me a better insight into your compilation process. Here is one of the compilation commands that you execute when building the project:
This line uses an invalid path â<enterâ as a user-provided include directory. This is the cause of your analysis failure, as our analyzer does not accept an invalid path for an include directory.
In order to avoid the analysis failure, you should remove the -I<enter your include search path here> option wherever it comes from.