SonarLint 3.0.0, Eclipse (Luna), SonarQube 5.6.6, Java 1.8: not working

330 views
Skip to first unread message

Glenn Mayer

unread,
Apr 12, 2017, 2:31:08 PM4/12/17
to SonarLint
I have an install as described above, and I am successfully connected in "connected mode".  My Eclipse project is bound to my SonarQube project, which is using the SonarWay java profile.  There are plenty of rule violations. And yet, no violations appear in Eclipse.  Not in the file editor, and not in the SonarLint Report or SonarLint On-The-Fly windows. I have triggered a Sonar scan from Eclipse (using mvn sonar:sonar) which ran successfully, but still no results in Eclipse.

Everything looks fine, except for the lack of results. I'm trying to think of other ways to diagnose the issue.  Any ideas?  Thank you!

Julien HENRY

unread,
Apr 12, 2017, 3:05:59 PM4/12/17
to Glenn Mayer, SonarLint
Hi Glenn,

Note that some courtesy is appreciated on this list...

Would you mind sharing SonarLint logs (available in SonarLint console) after enabling verbose + analysis output. Clear the console, then close/reopen a file to trigger an analysis.

Also, are you able to see issues when you are not in connected mode?

++

Julien

2017-04-12 20:31 GMT+02:00 Glenn Mayer <gl...@outsidelogic.com>:
I have an install as described above, and I am successfully connected in "connected mode".  My Eclipse project is bound to my SonarQube project, which is using the SonarWay java profile.  There are plenty of rule violations. And yet, no violations appear in Eclipse.  Not in the file editor, and not in the SonarLint Report or SonarLint On-The-Fly windows. I have triggered a Sonar scan from Eclipse (using mvn sonar:sonar) which ran successfully, but still no results in Eclipse.

Everything looks fine, except for the lack of results. I'm trying to think of other ways to diagnose the issue.  Any ideas?  Thank you!

--
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/f2d70bc6-dc93-4847-b4b6-38a4768efa35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Glenn Mayer

unread,
Apr 12, 2017, 6:19:21 PM4/12/17
to SonarLint, gl...@outsidelogic.com
Thanks, Julien. I guess I could have led off with a greeting on my original post... :)

I opened the SonarLint console, enabled Verbose output and Analysis logs, cleared the console, and opened and closed a file, and nothing appeared in the console at all.  I then unbound the project, and tried the same thing, but no luck.  I also changed a file, and then triggered an Analyze Changed Files action from the SonarLint context menu. The message that appears in the console is "No subscriber for provider com.perforce.team.core.PerforceTeamProvider on project cq-test-project. No changed files found".  This is odd because right above that is the Java Source Compare window showing the diffs between the local and remote files. 

I feel like there is some basic configuration that I'm missing, but I can't figure it out for the life of me.  I have uninstalled SonarLint and reinstalled from the .zip file, just in case, but that made no difference.

One thing I noticed...if I right-click on the project in the Package Explorer window, I see the SonarLint context menu entry; however, if I right-click on  a file, the SonarLint entry does not appear on the context menu.  It seems like it should.


On Wednesday, April 12, 2017 at 1:05:59 PM UTC-6, Julien HENRY wrote:
Hi Glenn,

Note that some courtesy is appreciated on this list...

Would you mind sharing SonarLint logs (available in SonarLint console) after enabling verbose + analysis output. Clear the console, then close/reopen a file to trigger an analysis.

Also, are you able to see issues when you are not in connected mode?

++

Julien
2017-04-12 20:31 GMT+02:00 Glenn Mayer <gl...@outsidelogic.com>:
I have an install as described above, and I am successfully connected in "connected mode".  My Eclipse project is bound to my SonarQube project, which is using the SonarWay java profile.  There are plenty of rule violations. And yet, no violations appear in Eclipse.  Not in the file editor, and not in the SonarLint Report or SonarLint On-The-Fly windows. I have triggered a Sonar scan from Eclipse (using mvn sonar:sonar) which ran successfully, but still no results in Eclipse.

Everything looks fine, except for the lack of results. I'm trying to think of other ways to diagnose the issue.  Any ideas?  Thank you!

--
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.

Julien HENRY

unread,
Apr 13, 2017, 2:43:10 AM4/13/17
to Glenn Mayer, SonarLint
2017-04-13 0:19 GMT+02:00 Glenn Mayer <gl...@outsidelogic.com>:
I opened the SonarLint console, enabled Verbose output and Analysis logs, cleared the console, and opened and closed a file, and nothing appeared in the console at all.  I then unbound the project, and tried the same thing, but no luck.  

Few reasons why this could happen:
  - the file is "derived" or in a "derived" folder
  - if this is a Java file, we exclude files that are not in a compilation path (for example Java files used as test resource)

Is there anything special with this file? What if you create a new simple Java project, with a simple HelloWorld class? Is analysis triggered?
 
I also changed a file, and then triggered an Analyze Changed Files action from the SonarLint context menu. The message that appears in the console is "No subscriber for provider com.perforce.team.core.PerforceTeamProvider on project cq-test-project. No changed files found".  This is odd because right above that is the Java Source Compare window showing the diffs between the local and remote files.

Perforce Eclipse plugin doesn't implement the API we are relying on to collect changed files. It was already reported on this list. I don't think we can do anything on our side.

++

Julien 


Glenn Mayer

unread,
Apr 14, 2017, 12:10:03 PM4/14/17
to SonarLint, gl...@outsidelogic.com
Thanks again, Julien.  Our code isn't derived, but just in case, I created a Hello World project (no p4 integration) and still got nowhere.  I have a couple more things I'm going to try: 1) install the latest eclipse version and start from scratch with that. I'm in a pretty restricted corporate environment so this may take some time. 2) install SonarQube locally and see if that makes any difference.

Thanks for your suggestions so far.
Reply all
Reply to author
Forward
0 new messages