racodond / sonar-css-custom-rules-plugin

Sample plugin that defines SonarQube custom rules for CSS / SCSS / Less files
GNU Lesser General Public License v3.0
2 stars 2 forks source link

Add missing sonar.basePlugin property #5

Closed ankitdadhich closed 6 years ago

ankitdadhich commented 6 years ago

Hi David,

I am having bit difficulty in putting custom rule.

Whenever I copy and paste sonar-csscustomrules-plugin-1.0.jar to plugins folder SonarQube crashes.

I tried it plenty of time, it works fine when I remove the sonar-csscustomrules-plugin-1.0.jar .

Not sure am I doing anything wrong? very less info is available on internet as well.

Note : I tried to debug log. It says version of css-plugin should be 4.13 or higher. I have appropriate version(see screenshot below.) But still it fails.

Thanks Ankit

image

access.log ce.log es.log sonar.log web.log

racodond commented 6 years ago

The error seems crystal clear in the ce.log file:

2018.03.06 16:07:01 ERROR ce[][o.s.ce.app.CeServer] Compute Engine startup failed
org.sonar.updatecenter.common.exception.IncompatiblePluginVersionException: The plugin 'css' is in version 3.1 whereas the plugin 'csscustomrules' requires a least a version 4.13.
    at org.sonar.updatecenter.common.PluginReferential.addOutgoingDependency(PluginReferential.java:135)
...
ankitdadhich commented 6 years ago

Thus why I posted screenshot in question. I don't know why this is still showing the version error while I am on 4.13. image

racodond commented 6 years ago

Have you restarted the server after upgrading?

ankitdadhich commented 6 years ago

Yes I did. But can't go to Webinterface now. as it keeps on showing its on maintenance. Is there any other command to restart?

racodond commented 6 years ago

I'll let you fix the issue with your SonarQube server. Come back to me when it's up and working again.

racodond commented 6 years ago

I've found out an issue. I'll work on it and keep you posted.

racodond commented 6 years ago

Could you try again with https://github.com/racodond/sonar-css-custom-rules-plugin/releases/tag/1.1 ?

ankitdadhich commented 6 years ago

Thank you. It's working fine now. :)

racodond commented 6 years ago

Cool! Thanks for the feedback!