I am experiencing an issue with SonarLint in IntelliJ IDEA where I am unable to see the results of the analysis of files after they have been committed (from Git view). Prior to this issue, analyzing files using the keyboard shortcut would update the Report view with the issues found in the affected files.
Steps to reproduce
Open a project in IntelliJ IDEA.
Open the Git view.
Select a branch.
Select a commit or commits.
Select file or files
Execute Sonarlint analysis shortcut.
The analysis is runnning and complete successfully.
Open the Sonarlint Report view.
The issues for the affected files should not be displayed.
Expected behavior
The issues for the affected files should be displayed in the Report view.
Additional information:
IntelliJ IDEA version: 2023.2.1 and latest 2023.2.2
Operating system: Windows 11, Ubuntu 22.04.3 LTS
Language: Java 17, Typescript
SonarLint plugin version: 9.0.0.75308 (also 8.5.*)
Connected to SonarQube: Community Edition Version 9.9 (build 65466)
Is the issue related to using the shortcut or is it related to not being able to see issues on the Report view after committing to a branch? Are you experiencing this issue when you don’t use the shortcut?
You do not need to launch analysis from the git view. You can launch the analysis by selecting the files you would like to analyze on Intellij’s project view, right-clicking and using the “Analyze with SonarLint” option, or by right-clicking on the file editor you are working on and starting the analysis from there.
Can you check if the issues are disappearing on the report tab after committing and triggering analysis again this way? If so, are all the issues disappearing or only specific ones? Can you share the specific issues if all of them are not disappearing?
Before I was able to launch analyze from Git View, but I don’t understand why it’s not possible anymore.
Assuming theses commited files :
I could click on root folder (here back/*) and launch analyze with keyboard shortcut. It was simple and very fast in order to verify my branch code before push to origin.
Now, I have to find all my commited files in project view and launch analyze. In this example, I can imagine making an effort to find my 8 files and use the plugin. But, for a large commit it’s nonsense…
Hi @Renaudh, I had a look at the current behavior and I confirm this is a regression. As a result, I created this ticket that we will try to tackle when possible.