SonarLint not detecting issues in JetBrains CLion (both legacy and Nova)

Environment:

Issue:
SonarLint is not working anymore, on both legacy and Nova/ReShaper C++ engine. No issues are reported on our files (that had a lot of issues with previous SonarLint plugin version).
I did a quick sandbox to break the rule C++ static code analysis in GitHub - YaelBx/SonarLintTestRepo: A simple repo for a SonarLint bug ticket, to show that the plugin is not working (see file hello.cpp).
SonarLint is not picking up this broken rule.
You will find verbose logs about the file analysis here : log.txt (9.9 KB)

Feel free to ask for more information.

Thanks,
Yaël

Hello @Yayou, thank you for the detailed report!

I can confirm I’m reproducing the issue. SonarLint is raising issues on Linux but not on Windows for your project. I am investigating, and I will come back to you as soon as possible :pray:

It would be interesting if you could enable the analysis logs and share with us the result.

1 Like

Sorry @nicolas.quinquenel I did enabled the verbose/analysis logs in the past and thought it was still active.
I am glad that your are able to reproduce it !

Here is the full verbose log
full_log.txt (80.2 KB)
For the thread dump I tried to reduce the scope of the available data in order to hide our projects, tell me if this is lacking some essential information.
obfuscated_clion-logs-20240530-1514457113480712439728807.zip (480.2 KB)

Again, thank you for your support, feel free to reach me for more information :slight_smile:
Yaël

I appreciate your help, @Yayou. I was able to find the root cause, and as a result, I created this ticket. I will finalize the fix and review the priority of this issue with the team; depending on the impact, we might do a bug fix release.

For now, and if you want to use SonarLint, I’d suggest you download SonarLint 10.5 and use CLion without the ReSharper engine. Sorry for the inconvenience!

1 Like

Hey @nicolas.quinquenel,
Thank you for your transparency, responsiveness and kindness, looking forward to use it with Nova :wink:
Cheers,
Yaël

1 Like

We just released SonarLint version 10.6.2.
Could you please update your SonarLint to this version and see if the issue is still happening? Thank you!

1 Like

Hi @nicolas.quinquenel,
This is perfect, the fix is working on both engines !
Once again, thank you for your responsiveness

1 Like