SonarLint for Eclipse not showing project bindings

559 views
Skip to first unread message

Luigi Savini

unread,
Dec 20, 2016, 6:19:49 AM12/20/16
to SonarLint
I cannot fetch the projects binding from my SonarQube installation (i tried both 6.0 and 5.6.4) nor from SonarQube.com (version 6.2).
The connection is ok (i even tried to use the token instead of user/pwd pair) and the plugin seems to retrieve the project listing but the bindings are not displayed.

My current configuration is:

Eclipse Neon 
Oracle JDK 1.8.0
SonarLint 2.3.1 (i tried also the latest 2.5)
SonarQube Server 6.0

Do you please have any clue?

Thanks,
Luigi




Create : C:\Users\lsavini\.sonarlint\plugins
Plugin cache: C:\Users\lsavini\.sonarlint\plugins
Create : C:\Users\lsavini\.sonarlint\plugins\_tmp
GET
200 http://10.90.6.80:9000/api/system/status | time=101ms
GET
200 http://10.90.6.80:9000/api/properties?format=json | time=177ms
GET
200 http://10.90.6.80:9000/deploy/plugins/index.txt | time=109ms
Plugin cobertura is not compatible with SonarLint. Skip it.
Plugin csharp is not compatible with SonarLint. Skip it.
Plugin web is not compatible with SonarLint. Skip it.
Plugin scmgit is not compatible with SonarLint. Skip it.
Plugin citymodel is not compatible with SonarLint. Skip it.
Plugin scmsvn is not compatible with SonarLint. Skip it.
GET
200 http://10.90.6.80:9000/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=1&ps=500 | time=300ms
GET
200 http://10.90.6.80:9000/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=2&ps=500 | time=190ms
GET
200 http://10.90.6.80:9000/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=3&ps=500 | time=65ms
GET
200 http://10.90.6.80:9000/api/qualityprofiles/search.protobuf | time=68ms
GET
200 http://10.90.6.80:9000/api/projects/index?format=json&subprojects=true | time=66ms
Create : C:\Users\lsavini\.sonarlint\plugins
Plugin cache: C:\Users\lsavini\.sonarlint\plugins
Create : C:\Users\lsavini\.sonarlint\plugins\_tmp
Load plugins
Load plugins (done) | time=2ms
Plugins:
 
* JavaScript 2.16.0.2922 (javascript)
 
* Java 4.2 (java)
Using storage for server 'MySonar' (last update 20/12/16 11.56)
Create : C:\Users\lsavini\.sonarlint\plugins
Plugin cache: C:\Users\lsavini\.sonarlint\plugins
Create : C:\Users\lsavini\.sonarlint\plugins\_tmp
GET
200 https://sonarqube.com/api/system/status | time=1081ms
GET
200 https://sonarqube.com/api/properties?format=json | time=414ms
GET
200 https://sonarqube.com/deploy/plugins/index.txt | time=240ms
Plugin scmcvs is not compatible with SonarLint. Skip it.
Plugin scmsvn is not compatible with SonarLint. Skip it.
Plugin csharp is not compatible with SonarLint. Skip it.
Plugin web is not compatible with SonarLint. Skip it.
Plugin xml is not compatible with SonarLint. Skip it.
Plugin flex is not compatible with SonarLint. Skip it.
Plugin vbnet is not compatible with SonarLint. Skip it.
Plugin github is not compatible with SonarLint. Skip it.
Plugin cpp is not compatible with SonarLint. Skip it.
Plugin authgithub is not compatible with SonarLint. Skip it.
Plugin scmmercurial is not compatible with SonarLint. Skip it.
Plugin googleanalytics is not compatible with SonarLint. Skip it.
Plugin widgetlab is not compatible with SonarLint. Skip it.
Plugin pli is not compatible with SonarLint. Skip it.
Plugin groovy is not compatible with SonarLint. Skip it.
Plugin scmgit is not compatible with SonarLint. Skip it.
Plugin governance is not compatible with SonarLint. Skip it.
Plugin status is not compatible with SonarLint. Skip it.
GET
200 https://sonarqube.com/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=1&ps=500 | time=494ms
GET
200 https://sonarqube.com/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=2&ps=500 | time=522ms
GET
200 https://sonarqube.com/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=3&ps=500 | time=491ms
GET
200 https://sonarqube.com/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=4&ps=500 | time=413ms
GET
200 https://sonarqube.com/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=5&ps=500 | time=422ms
GET
200 https://sonarqube.com/api/rules/search.protobuf?f=repo,name,severity,lang,htmlDesc,htmlNote,internalKey,isTemplate,templateKey,actives&statuses=BETA,DEPRECATED,READY&p=6&ps=500 | time=495ms
GET
200 https://sonarqube.com/api/qualityprofiles/search.protobuf | time=208ms
GET
200 https://sonarqube.com/api/projects/index?format=json&subprojects=true | time=326ms
Create : C:\Users\lsavini\.sonarlint\plugins
Plugin cache: C:\Users\lsavini\.sonarlint\plugins
Create : C:\Users\lsavini\.sonarlint\plugins\_tmp
Load plugins
Load plugins (done) | time=36ms
Plugins:
 
* Python 1.6 (python)
 
* Java 4.3.0.7717 (java)
 
* Cobol 3.3.0.1589 (cobol)
 
* RPG 2.0.0.496 (rpg)
 
* PHP 2.9.1.1705 (php)
 
* ABAP 3.3 (abap)
 
* JavaScript 2.18.0.3454 (javascript)
 
* PL/SQL 2.8 (plsql)
 
* Swift 2.0.0.1127 (swift)
Using storage for server 'sonarqube.com' (last update 20/12/16 11.57)



2016-12-20 12_03_20-jenkins-workspace - Java EE - Eclipse.png

janos....@sonarsource.com

unread,
Dec 20, 2016, 8:04:26 AM12/20/16
to SonarLint
Hi,

From the log output it looks like no project is bound to SonarQube.

If you right-click on a project in Eclipse, and select SonarLint | Bind to a SonarQube... project, a window pops up where you can configure the mapping between your local projects in Eclipse and the projects in SonarQube. Does the mapping look correct? (If yes, can you share a screenshot?)

Thanks,
Janos

janos....@sonarsource.com

unread,
Dec 20, 2016, 8:07:57 AM12/20/16
to SonarLint
Also, if you open this link in a browser, what do you see?


Cheers,
Janos
Luigi





GET
200 https:<span style="

Luigi Savini

unread,
Dec 20, 2016, 8:26:14 AM12/20/16
to SonarLint
Hi Janos.
Now i got it. I didn't search for a project from the "SonarLint | Bind to a SonarQube" popup.
I'm sorry but i didn't get any feedback from the server setup and i got stuck. I feel stupid.
Thanks for your quick reply!

janos....@sonarsource.com

unread,
Dec 20, 2016, 8:44:22 AM12/20/16
to SonarLint
Hi,

No worries! Btw, the SonarLint homepage on sonarling.org explains basic usage, including binding projects: http://www.sonarlint.org/eclipse/index.html

Cheers,
Janos

Luigi Savini

unread,
Dec 20, 2016, 9:08:04 AM12/20/16
to SonarLint
I deserve it ;)
thanks again Janos



Il giorno martedì 20 dicembre 2016 12:19:49 UTC+1, Luigi Savini ha scritto:
Reply all
Reply to author
Forward
0 new messages