Groovy plugin (1.8) issue with Sonarqube 9.4

  • I just installed Sonarqube 9.4 with the 1.8 groovy plugin
  • when scanning a project (with the latest “sonar-scanner”)
  • if there are some .groovy file, I get the following error
ERROR: Error during SonarScanner execution
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object ', (comma)' with class 'java.lang.String' to class 'char'
	at org.codehaus.groovy.runtime.typehandling.ShortTypeHandling.castToChar(ShortTypeHandling.java:72)
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.charUnbox(DefaultTypeTransformation.java:73)
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToPrimitive(DefaultTypeTransformation.java:341)
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:242)
	at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2716)
	at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3785)
...

any idea what could be wrong?

Maybe it is a plugin issue? (I created sonarqube 9.4 issue · Issue #151 · Inform-Software/sonar-groovy · GitHub)

Hi,

It looks like you’ve already created an issue on the plugin repo. That’s really your best chance of getting help since that plugin isn’t supported by SonarSource.

 
Ann

@Nicolas_Zin Do you have any update on this?