Problem with groovy plugin, codenarc sensor "unable to find rule by query"

114 views
Skip to first unread message

jdi...@sonatype.com

unread,
Jul 14, 2015, 5:31:31 PM7/14/15
to sona...@googlegroups.com
Howdy folks, not sure if this is the appropriate place to ask or not, but I was trying to get the groovy plugin working on our maven project, and it seems to kinda work, but freaks out sometimes with:

Caused by: java.lang.UnsupportedOperationException: Unable to find rule by query


I can not tell which rule, and after this the execution of maven terminates.

Specifically this branch:


Is causing failures when analyzing this module:


Sonar version is 5.1.1, Groovy plugin version is 1.1.1.  

Handful of other plugins installed:


So far everything seems to be working except the codenarc sensor falls down, but not always.

We have not customized the groovy quality profile, only copied the default "Sonar way" profile to "Sonatype" and set it to default.

Any idea what might be wrong?

Thanks!

--jason

Simon Brandhof

unread,
Jul 15, 2015, 4:33:37 AM7/15/15
to jdi...@sonatype.com, sona...@googlegroups.com
Hi Jason,

This error occur with the preview mode only when analyzing groovy projects. This bug of versions 5.1 and 5.1.1 is being fixed in 5.1.2. See http://jira.sonarsource.com/browse/SONAR-6715.
The only workaround I have in mind is to disable the Groovy plugin when using the preview mode (property sonar.preview.excludePlugins=groovy)

Sorry for the inconvenience.


Simon BRANDHOF | SonarSource
Tech Lead & Co-Founder
http://twitter.com/SimonBrandhof

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/aae48597-5764-4f06-9abc-8c220a50b2b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Dillon

unread,
Jul 15, 2015, 8:53:14 PM7/15/15
to Simon Brandhof, sona...@googlegroups.com
Thank you, excluding groovy from incremental/preview works for us for now, looking forward to 5.1.2 and 5.2.

—jason
Reply all
Reply to author
Forward
0 new messages