sonar-swift icon indicating copy to clipboard operation
sonar-swift copied to clipboard

sonarqube-9.1.0.47736 backelite-sonar-swift-plugin-0.4.6.jar

Open phydroxide opened this issue 4 years ago • 5 comments

New Issue Checklist

Issue Description

Starting sonarqube 9.1 with no other plugins but backelite 0.4.6 results in "NoSuchMethod" error

java.lang.NoSuchMethodError: 'org.sonar.api.server.rule.RulesDefinition$NewRule org.sonar.api.server.rule.RulesDefinition$NewRule.setDebtSubCharacteristic(java.lang.String)' at org.sonar.squidbridge.rules.SqaleXmlLoader.processRule(SqaleXmlLoader.java:124) at org.sonar.squidbridge.rules.SqaleXmlLoader.processSubChar(SqaleXmlLoader.java:92) at org.sonar.squidbridge.rules.SqaleXmlLoader.processRoot(SqaleXmlLoader.java:78) at org.sonar.squidbridge.rules.SqaleXmlLoader.loadXmlResource(SqaleXmlLoader.java:65) at org.sonar.squidbridge.rules.SqaleXmlLoader.load(SqaleXmlLoader.java:52) at com.backelite.sonarqube.swift.issues.swiftlint.SwiftLintRulesDefinition.define(SwiftLintRulesDefinition.java:61) at org.sonar.server.rule.RuleDefinitionsLoader.load(RuleDefinitionsLoader.java:53) at org.sonar.server.rule.RegisterRules.start(RegisterRules.java:119) at org.sonar.core.platform.StartableCloseableSafeLifecyleStrategy.start(StartableCloseableSafeLifecyleStrategy.java:40) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) at org.picocontainer.behaviors.Stored.start(Stored.java:110) at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767) at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136) at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:90) at org.sonar.server.platform.platformlevel.PlatformLevelStartup.access$001(PlatformLevelStartup.java:51) at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:119) at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45) at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:116) at org.sonar.server.platform.PlatformImpl.executeStartupTasks(PlatformImpl.java:198) at org.sonar.server.platform.PlatformImpl$1.lambda$doRun$1(PlatformImpl.java:122) at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.runIfNotAborted(PlatformImpl.java:370) at org.sonar.server.platform.PlatformImpl$1.doRun(PlatformImpl.java:122) at org.sonar.server.platform.PlatformImpl$AutoStarterRunnable.run(PlatformImpl.java:354) at java.base/java.lang.Thread.run(Thread.java:829)

Command executed

cp backelite-*.jar extensions/plugins/ sonar.sh

Complete output when running fastlane, including the stack trace and command used

N/A

Environment

 Linux 4.19.0-18-cloud-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
sonarqube-9.1.0.47736 
backelite-sonar-swift-plugin-0.4.6.jar
psql (11.13 (Debian 11.13-0+deb10u1), server 13.4) 

phydroxide avatar Nov 02 '21 17:11 phydroxide

Hello. It is becouse the plugin is not supported for Sonarqube 9. I am working on fix it in a branch. You want can use the artifact that I generate as SNAPSHOT mode and give me a feedback about it.

https://github.com/estebanhiguitad/sonar-swift/releases

Thanks

estebanhiguitad avatar Nov 12 '21 15:11 estebanhiguitad

Ran into an issue

https://github.com/SlatherOrg/slather/issues/103

slather coverage --input-format profdata --cobertura-xml --output-directory sonar-reports --scheme CoreUtilities proj.xproj

Failed to load coverage: -arch specifier is invalid or missing for universal binary

the plugin seemed to load though.

-- This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). onX is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.

phydroxide avatar Nov 13 '21 00:11 phydroxide

Any news about this?

tarrinho avatar Dec 10 '21 17:12 tarrinho

No, I haven't been able to get back to it. I'll be working on a different environment for a while. Thanks for checking back.

Philip Waters Senior Security Engineer II onX Success Team: 406-540-1600

45°41’34.8684”N 111°02’5.2116”W onXmaps.com https://www.onxmaps.com/

On Fri, Dec 10, 2021 at 10:43 AM Pedro Tarrinho @.***> wrote:

Any news about this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Idean/sonar-swift/issues/299#issuecomment-991168371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNT2DHQVHL7EFSCEB6D62LUQI34TANCNFSM5HHAJMSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). onX is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.

phydroxide avatar Dec 10 '21 17:12 phydroxide

Hello, do you have any expectations for compatibility with the newest versions of sonarqube?

p0intsec avatar Sep 20 '22 11:09 p0intsec

No, I abandoned this. At least for now.

phydroxide avatar Sep 20 '22 17:09 phydroxide