Intellij SonarLint Plugin 2.4.x no project listing

582 views
Skip to first unread message

beate.po...@gmail.com

unread,
Nov 16, 2016, 5:39:45 AM11/16/16
to SonarLint
Hi,

we are using RubyMine 2016 / Intellij Ultimate with SonarQube 6.0. The Plugin was working up to v2.3.x

Our SonarQube has company issued Certificate. I can connect to the server, when I pass the truststore to the vm... BUT the plugin can't find any projects anymore. The combobox "SonarQube project" only says <No projects to display>. 

On SonarQube-Server all projects are ok, they are also listed in the old version of the plugin.

How can we get our project binding back?

Regards,
Beate

Duarte Meneses

unread,
Nov 16, 2016, 5:43:13 AM11/16/16
to beate.po...@gmail.com, SonarLint
Hi,

Are you passing credentials (token or login/password) when updating the binding?

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/ad2cbb55-c862-4ab9-942d-48ef850c34ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Duarte MENESES | SonarSource

beate.po...@gmail.com

unread,
Nov 16, 2016, 5:49:12 AM11/16/16
to SonarLint, beate.po...@gmail.com
we are passing login/password
Test Connection says Successful
Update Binding throws no error

... but no projects showing up


Am Mittwoch, 16. November 2016 11:43:13 UTC+1 schrieb duarte.meneses:
Hi,

Are you passing credentials (token or login/password) when updating the binding?
On 16 November 2016 at 11:39, <beate.po...@gmail.com> wrote:
Hi,

we are using RubyMine 2016 / Intellij Ultimate with SonarQube 6.0. The Plugin was working up to v2.3.x

Our SonarQube has company issued Certificate. I can connect to the server, when I pass the truststore to the vm... BUT the plugin can't find any projects anymore. The combobox "SonarQube project" only says <No projects to display>. 

On SonarQube-Server all projects are ok, they are also listed in the old version of the plugin.

How can we get our project binding back?

Regards,
Beate

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.

duarte.meneses

unread,
Nov 16, 2016, 7:18:32 AM11/16/16
to SonarLint, beate.po...@gmail.com
Could you try to request [SonarQubeURL]/api/projects/index?format=json&subprojects=true in your browser and see if you get the projects?

If yes, please check also the following file:
Linux: ~/.Idea[version]/config/sonarlint/storage/[binding name]/global/module_list.pb
Mac: ~/Library/Preferences/IdeaIC2016.2/sonarlint/storage/[binding name]/global/module_list.pb

The file is not fully plain text but you should be able to see if it contains the list of projects.

beate.po...@gmail.com

unread,
Nov 16, 2016, 7:25:41 AM11/16/16
to SonarLint, beate.po...@gmail.com
[SonarQubeURL]/api/projects/index?format=json&subprojects=true returns list of projects in JSon perfectly fine

file module_list.pb exists but is empty

Duarte Meneses

unread,
Nov 16, 2016, 7:34:55 AM11/16/16
to beate.po...@gmail.com, SonarLint
I still have no clue what could be the problem.
Could you please check the Log tab in the SonarLint tool window and also the follow file:
Linux: ~/.Idea[version]/system/log/idea.log
Mac: ~/Library/Logs/Idea[version]/

and see if there is any error message when you do the update binding?


To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/790e2a45-36fc-42f9-96d6-cd21615b74c8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

beate.po...@gmail.com

unread,
Nov 16, 2016, 10:29:07 AM11/16/16
to SonarLint, beate.po...@gmail.com
no log entries for the action... nothing

same problem on different machines, Windows and Linux, IntelliJ and RubyMine, different versions (IntelliJ Ultimate 14 + 2016, RubyMine 2016)

all other files for the Server in the directory /.Idea[version]/config/sonarlint/storage/[binding name]/global get updated on the "Update binding" action and seem to be filled correctly ... quality_profiles, rules, ...

what else can I do/check?

Julien HENRY

unread,
Nov 16, 2016, 10:43:07 AM11/16/16
to beate.po...@gmail.com, SonarLint
Hi,

You could maybe try to configure a connection to sonarqube.com server (just need a GitHub account to login, and then generate a token), and see if you can fetch project list from there?

++

Julien

To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/3405831a-9b85-44ce-9dc8-751cef46b420%40googlegroups.com.

beate.po...@gmail.com

unread,
Nov 17, 2016, 1:46:19 AM11/17/16
to SonarLint, beate.po...@gmail.com
Hi,

I retried the "Update binding" this morning to check, if I missed something yesterday. The log of the SonarLint Plugin was one of it. I conclude that the following exception is due to the missing project binding for my project, right?

Error running SonarLint analysis
java
.lang.IllegalStateException: Project has an invalid binding
 at org
.sonarlint.intellij.core.ProjectBindingManager.checkBindingStatus(ProjectBindingManager.java:97)
 at org
.sonarlint.intellij.core.ProjectBindingManager.getFacadeForAnalysis(ProjectBindingManager.java:58)
 at org
.sonarlint.intellij.analysis.SonarLintAnalyzer.analyzeModule(SonarLintAnalyzer.java:83)
 at org
.sonarlint.intellij.analysis.SonarLintTask.analyze(SonarLintTask.java:136)
 at org
.sonarlint.intellij.analysis.SonarLintTask.run(SonarLintTask.java:87)
 at com
.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:635)
 at com
.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
 at com
.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
 at com
.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
 at com
.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
 at com
.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
 at com
.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:128)
 at com
.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:307)
 at java
.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java
.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java
.lang.Thread.run(Thread.java:745)



I found another entry, which is strange, but may it means something to you:

Bad component key: org.sonarsource.sonarlint.core.container.storage.StorageContainer@2de29d41. Please implement toString() method on class org.sonarsource.sonarlint.core.container.storage.StorageContainer
Using storage for server 'SonarProd' (last update 16.11.16 16:23)
Server binding 'SonarProd' updated
Clearing all issues because binding changed
Bad component key: org.sonarsource.sonarlint.core.container.storage.StorageContainer@6ef429e0. Please implement toString() method on class org.sonarsource.sonarlint.core.container.storage.StorageContainer
Using storage for server 'SonarProd' (last update 17.11.16 07:33)
Server binding 'SonarProd' updated
Clearing all issues because binding changed

I may be able to try your proposal for sonarqube.com later on.

Beate

beate.po...@gmail.com

unread,
Nov 17, 2016, 1:50:04 AM11/17/16
to SonarLint, beate.po...@gmail.com
ah and I forgot to mention, maybe this is important. We are using the commercial PL/SQL-Plugin of SonarQube. The project I want to bind is language PL/SQL!!!

Duarte Meneses

unread,
Nov 17, 2016, 3:34:24 AM11/17/16
to Beate Pomahatsch, SonarLint
Yes, it appears that the project is currently configured to be connected to a remote project that is not in the storage.
You confirm that there are still no projects appearing in the list?
We'll wait for the test with sonarqube.com. As everything else appears ok except the project list, we suspect it could be a problem related to permissions.


To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/e4914097-28e0-4acd-8a60-fde4f0d58a4d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

vsian...@gmail.com

unread,
Nov 17, 2016, 8:25:14 AM11/17/16
to SonarLint, beate.po...@gmail.com
I had exactly the same issue today. Chaning the Authentication type to Token-based (instead of Username/Password) solved the issue for me.

beate.po...@gmail.com

unread,
Nov 21, 2016, 2:42:32 AM11/21/16
to SonarLint, beate.po...@gmail.com, vsian...@gmail.com
Thank you for the hint... yes changing from user/password to token-based resolves the issue for me too. Tested with our local server and not sonarqube.com

I was using the same user all the time, also for generating the token. So it does not look like a permission thing to me.

Duarte Meneses

unread,
Nov 21, 2016, 3:53:01 AM11/21/16
to Beate Pomahatsch, SonarLint, vsian...@gmail.com
The problem is most likely due to a bug (regression) introduced in v2.4: https://jira.sonarsource.com/browse/SLI-129
Login/password authentication is not working, which depending on the configuration of the SonarQube server, it might not fail, but won't return the list of projects due to lack of permissions.

It will be fixed in v2.4.2, which will come out today.

To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/c43f7401-4c29-4f13-91b1-d58b11b4c930%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages