11
IntelliJ IDEA -> Settings -> Other settings -> SonarLint General Settings

SonarQube servers: Localhost (http://localhost:9000; login: admin; password: admin; test connection - "Authentification successful") Update binding: few seconds ago

IntelliJ IDEA -> Settings -> Other settings -> SonarLint Project Settings

Bind to server: Localhost SonarQube project: Update server binding first

But it's already bound! What may be wrong? Web interface also can't see the project.

When I press Analize code with SonarLint in workspace, I get an error popup: "Project bound to invalid SonarQube server. Please, check configuration"

Angelina
  • 2,175
  • 10
  • 42
  • 82
Katoteshi Fuku
  • 123
  • 1
  • 1
  • 11

2 Answers2

17

Go to http://localhost:9000

Then go to administration

Then go to projects management

Then press create project, enter project name exactly like in your IDE.

Then go to

IntelliJ IDEA -> Settings -> Other settings -> SonarLint Project Settings Bind to server:

Press refresh binding.

That's it.

avalon
  • 2,231
  • 3
  • 24
  • 49
  • So simple. is it needed to run analysis? or I may run without connection to remote server? – Katoteshi Fuku Jul 09 '16 at 22:36
  • 1
    You can't, remote server is what doing analysis, not ide plugin doing it – avalon Jul 09 '16 at 22:44
  • i gave same name and key as master still says project isnt intialized on sonar server :( – amIT Feb 27 '17 at 12:20
  • In SonarLint 4.2.0, there is no "Refresh binding" action any more. It has been replaced with: IntelliJ IDEA > Settings > Other Settings > SonarLint General Settings, button Update binding. – Ivan dal Bosco Nov 08 '19 at 12:34
0

In my case:

  1. Go to administrator panel on localhost:9000

  2. Go to marketplace and search "typescript"

  3. Update your "SonarTS - Code Analyzer for TypeScript" (just push the button) Thats all. Don't forget restart your server

Angelina
  • 2,175
  • 10
  • 42
  • 82
Андрей
  • 1
  • 1
  • 1