Finally, after analyzing the data, I am getting 1 compilation unit analyzed along with file is indexed, but unable to see any sonarlint issues in problems. This is happening when custom quality profile is used and bind to sonarQube.
The issues identified in sonarqube are not technically visible in VS code when custom quality profile is used.
Hello @Sai_Karthik and welcome to the Sonar community!
Would you be able to provide SonarLint Output logs? Here are the instructions on how to do it.
Also, starting from the SonarLint for VSCode v3.6, you should be able to see status of the SonarQube connection under SONARLINT CONNECTED MODE tab in the VSCode explorer view. Could you check that connection is successful?
Thanks for quick reply Sophio.
Attaching the SonarLint output logs. When you see the output in the logs, the compilation unit is analyzed but not finding any issue. Please let me know in case if you find any solution.
Hello @Sai_Karthik, were you able to resolve this issue?
I am also facing same issuer, in my case blockers are not reported by sonarlint on vscode ide for c cpp code.
@sophio.japharidze request you to please share any help on this context.
@Sai_Karthik, at the end of the logs provided by you I can see:
[Debug - 22:32:53.567] GET 401 xxxxxxx | response time=146ms
[Debug - 22:32:53.567] Failed to get notifications: 401,
I think this means that the connection is not really successful, maybe the token is not provided, could you please double-check?
@rocky , thanks for reporting the problem as well. Could you also double-check your connection status? This can be done in the SONARLINT CONNECTED MODE view in the VSCode explorer.