Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SonarLint cannot connect to SonarQube Server

I have eclipse mars2 with sonarLint 2.1. I try to connect to a SonarQube Server 5.1.2

When I try to connect via the eclipse GUI, the following error occurs:

The following plugins do not meet the required minimum versions, please upgrade them: java (installed: 3.0, minimum: 3.8)

Do you have any ideas? Thank you guys!

like image 615
fuechsle Avatar asked Jun 09 '16 20:06

fuechsle


People also ask

How do I connect SonarLint to SonarQube server?

In Intellij — Go to File >> Plugins >> Type 'SonarLint' >> Install and Restart IDE. (2) we can choose the SonarQube rules. → To integrate SonarQube(server) and SonarLint in our IDE and run SonarQube code inspection rules per class to give results quickly. Add the sonarQube connection binding.

How do I connect to SonarQube server?

You need to open Settings window and find Tools > SonarLint there. Then you press the plus button and you will have connection wizard that will ask you all necessary data to configure connection. You will need URL of SonarQube server and login-password pair or token for authorization.

Is SonarLint and SonarQube same?

SonarLint is YOUR Code Quality & Code Security tool. SonarQube is YOUR TEAM's Code Quality & Code Security tool. You and your team align to collectively own code quality and accelerate delivery. Imagine everyone on your team being on the same code quality page!

How do I connect to SonarQube using SonarLint from VS Code?

SonarLint is now configured globally within VS Code to access SonarQube via the specified connectionId. Next, we need to configure your project workspace to allow it to scan the appropriate SonarQube project. Go back onto your SonarQube server and grab the project key. This can be found on the project page on the bottom right of the page.

What is SonarLint connected mode?

SonarLint is more than just a linter. With Connected Mode, your SonarQube configuration and settings are extended to SonarLint giving you consistent, reliable analysis results. Positively impact code quality even sooner than PR review

Does SonarLint support IntelliJ SSL certificates?

SonarLint will try to validate the server's SSL certificate using the JVM's truststore. So if your SonarQube server uses an SSL certificate, you might need to install the CA certificate in the trustore of the JVM used by IntelliJ.

What is SonarLint?

This post is part of the SonarQube series. You can find the other parts here: Why SonarLint? SonarLint integrates the checks of SonarQube right into Visual Studio (and Eclipse, Atom and VS Code). If you want to know if there are any quality problems with your code, you no longer need to leave your IDE.


2 Answers

The plugin the message is referring to is the Sonar Java Plugin. Log in to Sonar as admin, go to Administration/System/Update Center and you'll see that the current installed plugin version is 3.0. Update it to the newest version available and it should work.

[Edit] - The upgrade is triggered by just clicking the button, but after it is downloaded and installed, you'll have to restart the Sonar server.

like image 88
Itamar Vieira Junior Avatar answered Oct 20 '22 11:10

Itamar Vieira Junior


Another option is to downgrade to an older version of the plugin:

  1. Exit IntelliJ
  2. Delete the files in the following folder (your version of Idea may be in a slightly different folder C:\Users\USER.IdeaIC2018.1\config\plugins\SonarLint\lib
  3. Download version 3.5.1.2759 from the following: https://plugins.jetbrains.com/plugin/7973-sonarlint
  4. Unzip all the files from the downloaded file to the above folder
like image 1
KatieMer Avatar answered Oct 20 '22 11:10

KatieMer