SonarQube for Visual Studio no longer detects issues for c++

  • Operating system: Windows 11
  • Visual Studio version: Visual Studio Pro 2022
  • SonarQube for Visual Studio plugin version:9.6.0.16157
  • Programming language you’re coding in: C++
  • Is connected mode used: Currently no but used to be. I disconnected it trying to isolated my issue. It will be reconnected once this issue is solved.
    • SonarQube Server

SonarLog.txt (51.3 KB)

The SonarQube Extension is not finding any issues in our code anymore. The SonarQube server scanning is still properly identifying the issues. The extension used to work properly early last year. This issue also effects our other developers. .NET code is being properly scanned by the extension. Unfortunately, I am unsure exactly when the extension stopped working. I have attached a log of the scan. There’s are errors in the log from SonarQube incorrectly replacing “%20” to spaces in or project name. I have tested removing any space and %20 from the project name but it still doesn’t find any issues.

Hi,

Welcome to the community and thanks for this report!

Can you give us a verbose log from IDE start through to where you expect an issue to show up but it doesn’t.

 
Thx,
Ann

Hello,

The SonarLog.txt in the post

SonarLog.txt (51.3 KB)

is a verbose log from a fresh startup from when visual studio starts up. There is only 1 file open for it to scan. In the file I have added the code “const int &weekdayCount = 7;” to force an issue to show up and it’s not. I uploaded it again just incase I made a mistake in the original upload.

1 Like

Hi,

Thanks for the log! I’m going to flag this for the team.

 
Ann

Hi @Devon.Reynolds

Would you be able to send me the full log without placeholders and the contents of the compilation database in Private Messages?

I have sent a private message with the information requested.

1 Like

After a conversation with @Devon.Reynolds and attempts at fixing it, we decided that we can’t fix it at the moment and the workaround is to not use % signs in project/file names. Closing this thread