SonarQube IDE in Visual Studio 2022 is not working

In my visual studio code for C language i dont see the analysis and instead it is shwoing this message under Sonar Issue Visualization.

Hi,

Welcome to the community and thanks for this report!

Could you provide a full log please?

 
Thx,
Ann

Not sure what log you are referring to

Hi,

Could you check the link I provided? It tells you how to get the log.

 
Thx,
Ann

Here are the logs attache

Logs.txt (106.7 KB)

d.

Hi,

Thanks for the log. I’ve flagged this for the team.

 
Ann

Hi, any update we got from the team on this issue.

Hi,

This is flagged for them. Hopefully they’ll be along soon.

 
Ann

Hello @Chandu1729,

First I would like to clarify that the Sonar Issue Visualization window contains information only when your issues have secondary locations (read more about this window here)

Your C issues should appear in the Visual Studio’s Error List window similar to this:

To be able to further understand your problem, can you please let us know what type of project are you trying to analyze?

From the provided logs, I suspect that there might be some problems with the compilation database that is being generated for your project and that is used by our analyzer. Can you, please, take a look inside your compilation database, which should be located in C:\Users\reddyc13\AppData\Local\Temp\SLVS\VCXCD\ac422c11-3ba3-4069-8a2f-0b602e8fa8a6\2bb2e7ef-47c0-44f0-8812-65bfb58e277d.json, and let me know if it contains any entries or if it is empty?

I can see this error under Error List, but i assume it not related to Sonar Analysis.

I found the above json file as empty in my folder.

Hello @Chandu1729,

You can recognize the C issues raised by the sonar analyzer by the fact that they are prefixed by c and they contain a rule key prefixed by S (in the screenshot above, it was c:S1135)

The error you see is indeed not coming from our analysis, but it’s a build error from MSBuild. I can see that our logs are also reporting a fatal issue related to the gcc.targets. I suspect that once the underlying issue related to the GCC compiler is fixed the Sonar analysis will work as well.