I verified manually content of the issues file and it contains all the issues that exist on the server which is fine but the VS Code doesn’t show anything.
I noticed this information but ignored it. I am looking for a solution for the C++ files. I don’t want to analyze JS, TS, or CSS. You can see it in the logs, probably at the bottom.
The “SonarQube Issue Locations” view is only meant for additional locations from the “Show All Locations” code action (and I created a ticket to address this misleading UI in the next version).
Also, would you mind (privately) sharing the file where this issue should be found? I can open a DM channel for this.
A heads-up on the investigation (thanks a lot @RybaMaciej for helping us help you!):
One of the expected issues is suppressed in SQ:Cloud, so not seeing it in the IDE is by design
The other one is not detected at all in the IDE analysis ; we’re trying to figure out which difference in the analysis process between Cloud and IDE causes this difference in the issues found.
Hey after a discussion with the team responsible for the C++ analyzer, it seems that this discrepancy is an unfortunate, but expected consequence of how analysis is done in the IDE .
When the analysis runs on SQ:Cloud, the analyzer has access to the whole source code of the application, including header files. When it runs in the IDE, it currently only has access to the one file being analyzed (usually, the one currently open in the editor).
In the case of S4144, the duplication can only be detected in the IDE if the declarations are in the same file: if they are in a separate header file, it won’t be reported.
This has been noted for improvements in later versions, cross-file analysis is definitely an area where SQ:IDE can improve.