SonarLint for Eclipse doesn't save project bindings


I’m having some issues with SonarLint for Eclipse, it doesn’t save its project configuration files and therefore forgets project bindings on restart. Details below.


  • versions used

    • Eclipse IDE for Enterprise Java Developers, Version: 2020-03 (4.15.0)
      • SonarLint for Eclipse (from marketplace)
      • no further additional plugins installed
    • SonarQube (Developer edition)
    • Ubuntu 18.04.4 LTS
  • error observed

    • Eclipse doesn’t save the project(!) configuration file .settings/org.sonarlint.eclipse.core.prefs at all and therefore forgets project bindings / settings on Eclipse restart
  • steps to reproduce

    1. install Eclipse + plugin
    2. connect to SonarQube server (I used token authentication, all other settings are kept unchanged)
    3. import a project (we’re using Gradle, projects get imported by Gradle Buildship)
    4. bind Eclipse project to SonarQube project
    5. restart Eclipse and check bindings again
  • potential workaround

    • create .settings/org.sonarlint.eclipse.core.prefs manually

Hello, thanks for reporting this.

I managed to reproduce what looks like a regression introduced in version 5.1 and created a ticket to investigate.

In addition to your workaround of manually creating the prefs file manually, you can also uninstall version 5.1 and install the previous version using the 5.0 archive update site.

Hi @rschuetz,

I just released a bugfix version 5.1.1.

Thanks again for reporting the issue.

Hi @JBL_SonarSource & @Julien_HENRY,

thanks a lot for the quick resolution, the new version works fine.

Best regards,

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.