Unable to upgrade SonarLint plugin to latest version

Please provide

  • Operating system: Ubuntu 22.04
  • SonarLint plugin version: 10.7 but would like 10.9
  • Programming language you’re coding in: Java
  • Is connected mode used: yes but not relevant
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:
Eclipse SonarLint plugin 10.7 keeps telling me there’s a new version of the plugin available but when ever I ask it to update I get told there are no updates available.
I have also tried uninstalling and re-installing from Eclipse Marketplace which tells me the current version is 10.9 but after installation I find I’m back with 10.7.
Can anyone tell me what’s going on and how I might update to the latest version?

Hi @gary_h,

Thanks for reaching out. It seems that the 10.7 version you have wasn’t initially installed from the Eclipse marketplace.

When uninstalling and restarting the IDE, could you please make sure that all artifacts were uninstalled successfully? When restarting, there should be no SonarLint plug-in available in the informational tab about the installed plug-ins.
Additionally, please have a look at the Eclipse installation directory and look in the features and plugins (and also if you have one, dropins directory) and search for anything with sonarlint in its name and delete it before restarting the IDE again and installing SonarLint via the marketplace.

If this does not work, then please come back.

Best,
Tobias

Hi Tobias,
I’m pretty certain I did use the Eclipse marketplace to install. Anyway I have been round the loop several times with no joy. Here is what’s happening:

Before (re-)installation there are the following references in the Eclipse installation directory:

gary@gary-XPS-17-9700:/opt/eclipse$ grep -r 'sonarlint' .
./java-2024-06/eclipse/configuration/org.eclipse.help.base/index/en_GB/indexed_contributions:org.sonarlint.eclipse.ui=org.sonarlint.eclipse.ui\n10.7.0.82276
./java-2024-06/eclipse/configuration/org.eclipse.epp.mpc.ui/MarketplaceInfo.xml:    <string>org.sonarlint.eclipse.feature.feature.group</string>
./java-2024-06/eclipse/configuration/org.eclipse.epp.mpc.ui/MarketplaceInfo.xml:      <string>org.sonarlint.eclipse.feature.feature.group</string>

I can actually see a version number if I drag and drop the install link from the marketplace website (rather than via the markeplace client) - this is what I get:

Looks good.
However after confirming and restarting we’re back to square one:

What more can I do?

Hey @gary_h,

I never encountered that but let’s check if the version number shown in the IDE is maybe just a hick-up from Eclipse. Can go to the Plug-ins tab and filter for sonarlint and check the versions of the installed plug-ins there?
Additionally, if it also does not show versions starting with 10.9.1 and when navigating to the Release Notes (Window → Preferences → SonarLint → Release Notes) and the latest entry is for 10.7 then there seems to be an issue with the references that were still present before re-installation or with the Eclipse Marketplace.

In that case, please remove the references and re-install the plug-in using the marketplace. If this is stuck with SonarLint for Eclipse 10.7 again, please come back. I was trying to reproduce it in the meantime but to no success :frowning_face:

Best,
Tobias