Sonarlint Issues list (global) not populating

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: 3.10 (tried both 3.10 and 3.14)
  • Programming language you’re coding in: Python
  • Is connected mode used: Connected to SonarQube 8.9

Hey! I’ve seen a couple of posts related to this but so far nothing has worked. The tab “sonarlint issue locations” isn’t populating, with the message “No locations to show, Use Show all locations from a SonarLint issue”. But when i go to a SonarLint issue in one of our files it doesn’t give the option of “Show all locations”. Also, notifications from sonarqube don’t seem to be working either - neither as email or via VS code. Our company is using an older version of sonarqube (8.9), so i downgraded the plugin that matched in terms of release date.Any suggestions?

Hi @blovely2, welcome to the community! :wave: :sonar:

The tab SonarLint Issue Locations is meant for displaying secondary locations for an issue. See an example of an issue that has secondary locations in the picture.

In simple terms, the command Show all locations will be available if the issue message specifies that there are additional locations to see - like in the image below (message says - [+2 locations]). The primary location of the issue should always be visible by clicking on the issue from the Problems view in VSCode.

As for the notifications, do you have Connected Mode set up properly? i.e. Is the server connection working and you have specified the project key to which to bind to? You will be able to see detailed instructions on how to do that here.

And finally, indeed your SonarQube version is not up-to-date. All Sonar teams work hard to improve our products over time, so, for the best experience, it is suggested that you upgrade to the latest SonarLint for VSCode 3.14 and SonarQube 9.9 LTS. You will be able to find help on the upgrade here.

Hope this helps,
Sophio from SonarLint :blush:

1 Like