Operating system: Ecllipse IDE: windows10 / Sonarqube docker : Linux
Eclipse IDE version: 2020-06
SonarLint plugin version: 6.2.0.37299
Programming language you’re coding in: Java
Is connected mode used: yes
Connected to SonarCloud or SonarQube (and which version): Community Edition 9.9(build 65466)
And a thorough description of the problem / question:
Hi,
This is an offline environment.
I manually installed the above mentioned versions of eclipse and sonarlint, and installed sonarqube on linux server as docker.
The following error occurs in the part where the project is bound after entering the address and token information to bind the sonarqube project to the Eclipse project.
Unable to update binding data from ‘Sonarqube’
Storage of server ‘Sonarqube’ requires an update
Is it incompatible between the installed versions? Which part should I check?
your SonarLint for Eclipse version is very much outdated and might be the blocker: Could you update to the current one which is 7.12.0.72679? This one supports also your Eclipse version if you’re not able to update this one as well.
After the update remove the binding once and the files created by SonarLint in the workspace and try to bind again. If you encounter any further issues or have other questions, feel free to get back to me!
The reason why we are using the version now is because we are using the 1.8 version of java jdk. As far as I know, this is the last version that supports jdk 1.8.
Jdk upgrade is a tough situation.
this version of SonarQube is not supporting Java 8 anymore when using the connected mode, as the scanners require at least Java 11 to run: Meaning when using in connected mode, the scanners are downloaded and SonarLint uses them instead of the ones shipped with the plugin (which are in your case Java 8 compatible).
There are three options available:
Use / Downgrade to the last SonarQube LTS version which supports Java 8 and therefore will work with your SonarLint version in connected mode is 8.9 LTS. This option I do not recommend but I provide you with this nonetheless.
Don’t use connected mode when you are bound locally to use the Eclipse installation with the Java 8 runtime. This one is a workaround and I would recommend this to you only as the second best solution.
Try to update Eclipse and the Java version (this is based on your circumstances, I cannot make a guess on the impact) to use a newer version of SonarLint providing of course more features but also more stability and to be able to use connected mode. This is the best solution I have.
If you have any questions or ideas and want a second opinion on that, feel free to come back and hit me up.