Open DarkSkyGhost opened 3 years ago
Do you have any clue which file causes this? I have already opened https://github.com/CodeNarc/CodeNarc/issues/621 trying to figure out if it's issue with the plugin or CodeNarc itself
I think error is thrown in almost any groovy file that is being saved:
rror from [org.codenarc.rule.groovyism.GStringExpressionWithinStringRule] processing source file [null]
java.lang.StackOverflowError
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:168)
at org.codenarc.rule.groovyism.GStringExpressionWithinStringAstVisitor.visitConstantExpression(GStringExpressionWithinStringRule.groovy:48)
at jdk.internal.reflect.GeneratedMethodAccessor4015.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)
Following exceptions happened soon after this one, most probably they are induced.
2021-07-15T10:33:10.587
Error from [org.codenarc.rule.groovyism.GStringExpressionWithinStringRule] processing source file [null]
java.lang.StackOverflowError
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:168)
at org.codenarc.rule.groovyism.GStringExpressionWithinStringAstVisitor.visitConstantExpression(GStringExpressionWithinStringRule.groovy:48)
at jdk.internal.reflect.GeneratedMethodAccessor4015.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)
All my teammates get the same error.
Let me know if I can produce any valuable info for you :)
Java 11 Groovy 3.0.6 codenarc toolVersion = '2.1.0'
Okay this is weird. I don't know what I did but the errors stopped showing up for now.
I'm seeing these and other repeated errors like "Error from [org.codenarc.rule.design.PrivateFieldCouldBeFinalRule] processing source file [null]" -- the "rule" changes but the exceptions are all similar. CodeNarc 4.4.0 Groovy 2.4.12 (for Jenkinsfiles, sorry...)
I have similar problem with a version from the beta channel (5.0.0-202208291503) in Idea #IC-221.6008.13 and CodeNarc 2.0.0, Groovy 2.5 (from Gradle 6.9.2).
Error from [org.codenarc.rule.convention.NoFloatRule] processing source file [null]
java.lang.StackOverflowError
at jdk.internal.reflect.GeneratedMethodAccessor4705.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:193)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:61)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
at org.codenarc.rule.convention.NoFloatAstVisitor.visitVariableExpression(NoFloatRule.groovy:67)
at jdk.internal.reflect.GeneratedMethodAccessor4704.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1268)
...
Intellij plugin constantly throws StackOverflow errors, over 20 in 30 minute period.