sonar-objective-c icon indicating copy to clipboard operation
sonar-objective-c copied to clipboard

Conflict with Sonarsource C/C++/Objective C plugin

Open jfisbein opened this issue 9 years ago • 11 comments

Sonarsource has a commercial C/C++/Objective C plugin, if you install the Sornarsource plugin it takes precedence even if you only have the license for the C/C++ functionalities (not for Objective C).

It looks like the problem is because both plugins (Octo & SonarSource) share the same key "objc" and conflicts.

Does it make sense to change the key to something like "octo-objc" ?

jfisbein avatar May 20 '15 08:05 jfisbein

ok, thanks for the report.

I have to check the impacts on the history, but it makes sense to change to something else, right?

"objective-c" might be a better idea, isn't it?

cyrilpicat avatar May 20 '15 09:05 cyrilpicat

Yes, anything but "objc" should be ok. :-)

jfisbein avatar May 20 '15 10:05 jfisbein

To complete the demand of @jfisbein in order to use both plugins in the same SQ instance and choose which plugin to activate we can force the sonar.language property but both plugins are using the same language's key = objc so indeed would be great to change "objc" in src/main/java/org/sonar/plugins/objectivec/core/ObjectiveC.java to something else.

agigleux avatar May 20 '15 21:05 agigleux

I was worried changing this would have really adverse effects on project data, but it seems the only thing you really lose is your quality profiles so that's not too bad.

mjdetullio avatar Nov 04 '15 01:11 mjdetullio

Fixed in PR #97

mjdetullio avatar Nov 05 '15 04:11 mjdetullio

How can I change the key then? I am running Octo and getting the "Caused by: No license for objc" error.

Thanks!

rodrigoturnes avatar Dec 14 '15 16:12 rodrigoturnes

You have to build PR #97 from source and then change your key from objc to objectivec

mjdetullio avatar Dec 14 '15 16:12 mjdetullio

Wow, seems to be a lot of re-work! Is there any chance of uninstalling SonarSource plugin in order to give precedence to Octo?

rodrigoturnes avatar Dec 14 '15 16:12 rodrigoturnes

Yes, uninstalling one of the plugins will remove the conflict.

mjdetullio avatar Dec 14 '15 16:12 mjdetullio

Which is the proper way to uninstall SonarSource plugin? Been trying to achieve this but couldn't...

rodrigoturnes avatar Dec 14 '15 16:12 rodrigoturnes

Solved the issue, switched plugins and worked.

Thanks for your help!

rodrigoturnes avatar Dec 14 '15 20:12 rodrigoturnes