Search code examples
intellij-ideasonarqubesonarlintsonarlint-intellij

SonarLint (IntelliJ Idea) failing to update binding: Minimum required version error


I haven't been able to update SonarLint's rules from the organization's SonarQube Server for a while now. It was working perfectly, but suddenly I started to get the following message: Update binding error: wrong version

I'm guessing that maybe the SonarQube server was updated to a newer version (currently it is Version 5.6), but how do I upgrade my local plugin version to match it? (if that was what this error means).
I waited for the plugin to release another update (v2.9) and hoped that would do the trick, but it didn't, same result.

I found this page, where it says that for SonarQube 5.6+, I should be using the most recent SonarJava 4.7.1 plugin, but don't know how to say my SonarLint plugin (version 2.9.0.1816) to use that. https://docs.sonarqube.org/display/PLUG/SonarJava

I would appreciate any help, thanks!

Current environment:
SonarQube Server: 5.6
IntelliJ Idea: 2017.1
IntelliJ SonarLint: 2.9.0.1816


Solution

  • You're using the SonarLint Connected Mode, so the code analyzers (SonarQube Plugins) used are the ones installed on the SonarQube server. The error message here means that, on the SonarQube server, you must upgrade SonarJava to at least v4.0, and a better choice would actually be the latest version altogether.