SonarLint 2.5 on Eclipse, analyze changes in jazz SCM

113 views
Skip to first unread message

jos...@gmail.com

unread,
Jan 23, 2017, 3:49:02 AM1/23/17
to SonarLint

Hello,


I'm using Eclipse Oxygen with RTC plugin (on Windows 7), which provides integration to Jazz SCM.


After installing SonarLint 2.5.0, I have tried to analyze changed files by doing:

  • right click on project -> sonarlint -> analyze changed files

But no issues are displayed, and the following message is shown in SonarLint console: "No changed files found".


The project I'm trying to analyze is connected to Jazz and has several changed files, which have SonarQube issues. 


File changes are displayed in RTC "Pending Changes" view.


Project in Eclipse is properly bound to project in SonarQube server.


Any ideas what is wrong with my setup? Should I change/install something in my SonarQube server?


I have installed jazz plugin in SonarQube server, but it seems it makes no difference.


Regards

Jose

Julien HENRY

unread,
Jan 23, 2017, 4:00:05 AM1/23/17
to jos...@gmail.com, SonarLint
Hi José,

The feature was tested with Git (eGit) and SVN (Subversive) Eclipse plugins. It was already reported to not work with ClearCase, because the ClearCase plugin is not implementing the Eclipse "team" API we are depending on for this feature (see Subscriber). It is also possible that RTC plugin doesn't implement this API but I have no way to test (AFAIK Jazz RTC is a commercial product).
You can try to use this build were I have added some debug logs in the SonarLint console:

++

Julien

--
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/74bd798c-a7c1-4b8f-846e-5547d2cf4cb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

janos....@sonarsource.com

unread,
Jan 23, 2017, 4:02:23 AM1/23/17
to SonarLint, jos...@gmail.com

jos...@gmail.com

unread,
Jan 23, 2017, 5:17:09 AM1/23/17
to SonarLint, jos...@gmail.com
Hi Julien, many thanks for your answer!

I have installed your build. When clicking on:  analyze changed files -> current project, I get the following message:

No changed files found
No Subscriber for provider com.ibm.team.filesystem.rcp.core.provider on project nwp-model

("nwp-model" is the name of the project I'm analyzing)

Does this mean jazz scm is not supported?

Thanks & Regards

Jose

El lunes, 23 de enero de 2017, 10:00:05 (UTC+1), Julien HENRY escribió:
Hi José,

The feature was tested with Git (eGit) and SVN (Subversive) Eclipse plugins. It was already reported to not work with ClearCase, because the ClearCase plugin is not implementing the Eclipse "team" API we are depending on for this feature (see Subscriber). It is also possible that RTC plugin doesn't implement this API but I have no way to test (AFAIK Jazz RTC is a commercial product).
You can try to use this build were I have added some debug logs in the SonarLint console:

++

Julien
2017-01-23 9:49 GMT+01:00 <jos...@gmail.com>:

Hello,


I'm using Eclipse Oxygen with RTC plugin (on Windows 7), which provides integration to Jazz SCM.


After installing SonarLint 2.5.0, I have tried to analyze changed files by doing:

  • right click on project -> sonarlint -> analyze changed files

But no issues are displayed, and the following message is shown in SonarLint console: "No changed files found".


The project I'm trying to analyze is connected to Jazz and has several changed files, which have SonarQube issues. 


File changes are displayed in RTC "Pending Changes" view.


Project in Eclipse is properly bound to project in SonarQube server.


Any ideas what is wrong with my setup? Should I change/install something in my SonarQube server?


I have installed jazz plugin in SonarQube server, but it seems it makes no difference.


Regards

Jose

--
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,
Jan 23, 2017, 5:41:05 AM1/23/17
to jos...@gmail.com, SonarLint

2017-01-23 11:17 GMT+01:00 <jos...@gmail.com>:
Does this mean jazz scm is not supported?

Yes, it means RTC RepositoryProvider is not implementing the Subscriber API ans so we don't have a way to collect the list of changed file. I think the current situation is ambiguous and I'll try to make it clearer when the feature is not supported. Ticket created:

On you side, I don't know if you could contact IBM support to ask if there is any plan to support this API:

Regards,

Julien

Reply all
Reply to author
Forward
0 new messages