Sonar lint Android Studio - No log

Hello,
I have updated Android Studio- Android Studio Flamingo | 2022.2.1 Patch 2
I have plugin Sonar lint/sonarsource 8.4.0.73538
Connected to server machine.- and looks like there is no issue if I see below log.

image

In settings- I have below

image

Can any one help me to see log ?

Hi @kpise,

is your issue with the log or no findings of issues in your code? The “Current File” tab will only show issues when a file is opened in the editor and there are actual findings.
The “Report” tab will show you all issues in all files if you click on the project and use the context menu action SonarLint → Analyze with SonarLint.

The actual log, accessible via the “Log” tab does not contain the information on the issue but just the plain log, e.g. what information was provided to the scanner and the analyzers themself.

Best,
Tobias

Thanks for info- This is not the case. Please look the image. 2 Android studio instances. running on separate machines. picture is taken by remote desktop. one shows issues for same file. Hope you understand the issue. Both machines have same token, same version of sonarlint plugin etc.

1 Like

Hi @kpise,

thank you for the quick response. On the IDE not showing the issues, would you be so kind as to enable the analysis logs and verbose output via the SonarLint Tool Window → Log → Gear on the right → Check Analysis Logs and Verbose Output?

After that, could you please close the file and open it again and send me the complete output of the log window? This way I can analyze it and investigate what is going wrong!

Best,
Tobias

Thanks for your hint. log showed power save mode was on.
When tick was removed everything worked well.

Hi @kpise,

thank you very much for providing the information on the solution. I wasn’t aware that the plugin behaves differently in that situation. I’ll take it with me to our team, maybe the other ones are also not aware of that and maybe there is something we can do about it, even if it is just a hint to the user to minimize confusion!

Update: I created a ticket for it HERE to improve the user experience and notify a user directly that such an issue is related to the power save mode :slight_smile:

Best,
Tobias