GregBartlett / sonar-resharper

MIT License
9 stars 21 forks source link

[Question] Latest SonarQube server compatible with the ResharperPlugin ? #36

Open cnaslain opened 5 years ago

cnaslain commented 5 years ago

Hi,

I've tries to install the ReSharper Plugin into the Community EditionVersion 7.4 (build 18908) and got the following error. I guess, as the ReSharper plugin is now marked as deprecated, that it cannot anylonger be installed into the latest version? Do you know what was the latest Sonar Server version that was accepting this plugin?

2018.10.31 10:19:06 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 2018.10.31 10:19:07 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube java.lang.IllegalStateException: Fail to load plugin ReSharper [resharper] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:82) at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:586) at org.sonar.server.platform.Platform.start(Platform.java:211) at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:185) at org.sonar.server.platform.Platform.access$500(Platform.java:46) at org.sonar.server.platform.Platform$1.lambda$doRun$0(Platform.java:119) at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371) at org.sonar.server.platform.Platform$1.doRun(Platform.java:119) at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList at org.sonar.plugins.resharper.ReSharperPlugin.getExtensions(ReSharperPlugin.java:52) at org.sonar.api.SonarPlugin.define(SonarPlugin.java:51) at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:72) ... 9 common frames omitted Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39) at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87) at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76) ... 12 common frames omitted 2018.10.31 10:19:08 INFO web[][o.s.p.StopWatcher] Stopping process

Thanks for the feedback, Regards, Chris

GregBartlett commented 5 years ago

It was back in version 4. Sonarqube has changed so much since then that this plugin pretty much needs a rewrite, but there hasn’t been a lot of requests to make this work with the new versions of sonar ;(

From: cnaslain notifications@github.com Sent: Monday, November 5, 2018 4:15 AM To: GregBartlett/sonar-resharper sonar-resharper@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [GregBartlett/sonar-resharper] [Question] Latest SonarQube server compatible with the ResharperPlugin ? (#36)

Hi,

I've tries to install the ReSharper Plugin into the Community EditionVersion 7.4 (build 18908) and got the following error. I guess, as the ReSharper plugin is now marked as deprecated, that it cannot anylonger be installed into the latest version? Do you know what was the latest Sonar Server version that was accepting this plugin?

2018.10.31 10:19:06 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 2018.10.31 10:19:07 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube java.lang.IllegalStateException: Fail to load plugin ReSharper [resharper] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:82) at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:586) at org.sonar.server.platform.Platform.start(Platform.java:211) at org.sonar.server.platform.Platform.startLevel34Containers(Platform.java:185) at org.sonar.server.platform.Platform.access$500(Platform.java:46) at org.sonar.server.platform.Platform$1.lambda$doRun$0(Platform.java:119) at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371) at org.sonar.server.platform.Platform$1.doRun(Platform.java:119) at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableList at org.sonar.plugins.resharper.ReSharperPlugin.getExtensions(ReSharperPlugin.java:52) at org.sonar.api.SonarPlugin.define(SonarPlugin.java:51) at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:72) ... 9 common frames omitted Caused by: java.lang.ClassNotFoundException: com.google.common.collect.ImmutableList at org.sonar.classloader.ParentFirstStrategy.loadClass(ParentFirstStrategy.java:39) at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:87) at org.sonar.classloader.ClassRealm.loadClass(ClassRealm.java:76) ... 12 common frames omitted 2018.10.31 10:19:08 INFO web[][o.s.p.StopWatcher] Stopping process

Thanks for the feedback, Regards, Chris

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GregBartlett/sonar-resharper/issues/36 , or mute the thread https://github.com/notifications/unsubscribe-auth/AD8kawi7uuY8ApdGngor4Wd9pN3H3Zb5ks5usAGOgaJpZM4YOCeI . https://github.com/notifications/beacon/AD8ka0lJO2Bb8iFfXwWjdCDKIoRf-rLKks5usAGOgaJpZM4YOCeI.gif

rupreck commented 5 years ago

It works with the version 6 LTS editions but not with the version 7 editions so it can't be too far different.

The message is: "API compatibility mode is no longer supported. In case of error, plugin ReSharper [resharper] should package its dependencies."

We would really like to see it working with the version 7 editions!

GregBartlett commented 5 years ago

Right, problem is you start updating the API from 4.5 or whatever it is now, there is a ton of deprecation.

I’ll look into getting something together on 7 in the future.

From: rupreck notifications@github.com Sent: Saturday, January 12, 2019 6:36 PM To: GregBartlett/sonar-resharper sonar-resharper@noreply.github.com Cc: GregBartlett gregory.m.bartlett@gmail.com; Comment comment@noreply.github.com Subject: Re: [GregBartlett/sonar-resharper] [Question] Latest SonarQube server compatible with the ResharperPlugin ? (#36)

It works with the version 6 LTS editions but not with the version 7 editions so it can't be too far different.

The message is: "API compatibility mode is no longer supported. In case of error, plugin ReSharper [resharper] should package its dependencies."

We would really like to see it working with the version 7 editions!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GregBartlett/sonar-resharper/issues/36#issuecomment-453789422 , or mute the thread https://github.com/notifications/unsubscribe-auth/AD8kawol3eprRLLmyhv0SZ3cMANrkq6Bks5vCnFxgaJpZM4YOCeI . https://github.com/notifications/beacon/AD8ka4ivEpur26lgzOneEl80Uid1JK3aks5vCnFxgaJpZM4YOCeI.gif

rupreck commented 5 years ago

Hi Greg - Have you had a chance to look at this? It would be great to see it working on the latest edition.

rupreck commented 5 years ago

Hi Greg - the 7.9 LTS version has been released now. If you were to upgrade, compatibility just with that would be most appreciated.

GregBartlett commented 5 years ago

I’m looking at a complete rewrite. They’ve changed sonar SOOOO much since the days of 4.5 or 5.4 or whatever this thing was compatible with.

I started a new job this year that is a lot less stressful, I should be able to start looking at this. Hopefully sonarqubes documentation is better now.

From: rupreck notifications@github.com Sent: Saturday, July 27, 2019 1:47 AM To: GregBartlett/sonar-resharper sonar-resharper@noreply.github.com Cc: GregBartlett gregory.m.bartlett@gmail.com; Comment comment@noreply.github.com Subject: Re: [GregBartlett/sonar-resharper] [Question] Latest SonarQube server compatible with the ResharperPlugin ? (#36)

Hi Greg - the 7.9 LTS version has been released now. If you were to upgrade, compatibility just with that would be most appreciated.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GregBartlett/sonar-resharper/issues/36?email_source=notifications&email_token=AA7SI223ZRMI25ZO5P3Z2K3QBPOOHA5CNFSM4GBYE6EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26EJSY#issuecomment-515654859 , or mute the thread https://github.com/notifications/unsubscribe-auth/AA7SI23N5WWDL3OWCVBMZ7DQBPOOHANCNFSM4GBYE6EA . https://github.com/notifications/beacon/AA7SI26LSDTWRAYV3JFSXALQBPOOHA5CNFSM4GBYE6EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26EJSY.gif

rupreck commented 5 years ago

Hi Greg,

Thanks for the reply.

I would like to assist you with this, do you have a direct contact?

David