简体   繁体   English

Groovy:语义分析期间的一般错误:java.lang.NoSuchMethodError:

[英]Groovy:General error during semantic analysis: java.lang.NoSuchMethodError:

Imported the gradle project from the "complete" folder and received the following error:从“complete”文件夹导入gradle项目,收到如下错误:

Groovy:General error during semantic analysis:
java.lang.NoSuchMethodError: 'org.codehaus.groovy.ast.expr.Expression org.codehaus.groovy.ast.tools.GeneralUtils.propX(org.codehaus.groovy.ast.expr.Expression, java.lang.String)'

I am using the latest version of Eclipse, 2020-12, with groovy tools installed.我使用的是最新版本 Eclipse,2020-12,安装了 groovy 工具。

From grails guide来自grails指导

Downloaded code sample from github从 github 下载代码示例


It seems likely to be a version mismatch, but I cannot determine how to correct this problem.似乎是版本不匹配,但我无法确定如何更正此问题。

I have tried to delete the offending file, src/main/groovy/demo/domain/Manufacturer.groovy , and the error appears on the file in this package on line 1 .我试图删除有问题的文件src/main/groovy/demo/domain/Manufacturer.groovy ,错误出现在第line 1的 package 文件中。

The error does not appear in any other package. I have done the usual inte.net searches for resolutions that apply, but have thus far been unable to find a suitable solution.该错误未出现在任何其他 package 中。我已经按照常规的 inte.net 搜索适用的解决方案,但到目前为止无法找到合适的解决方案。 I am hopeful for a suggestion?我希望得到一个建议?

I think this error comes from an AST transform that references the older signature of GeneralUtils#propX .我认为此错误来自引用GeneralUtils#propX的旧签名的 AST 转换。 This method used to return Expression and was changed to return PropertyExpression .此方法用于返回Expression并更改为返回PropertyExpression

The bridge method for binary compatibility was missing in groovy-eclipse. groovy-eclipse 中缺少用于二进制兼容性的桥接方法。 https://github.com/groovy/groovy-eclipse/commit/f6f448675d95f858b4ec65b6fc8e55f27ccaaa94 https://github.com/groovy/groovy-eclipse/commit/f6f448675d95f858b4ec65b6fc8e55f27ccaaa94

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TestNG 错误:java.lang.NoSuchMethodError - TestNG Error: java.lang.NoSuchMethodError Spark Streaming - java.lang.NoSuchMethodError错误 - Spark Streaming - java.lang.NoSuchMethodError Error 调试:java.lang.NoSuchMethodError - DEBUG: java.lang.NoSuchMethodError 在没有maven的情况下将spock添加到eclipse:语义分析期间的一般错误 - Adding spock to eclipse without maven: General error during semantic analysis Eclipse JDT 核心 Java 运行时错误 - java.lang.NoSuchMethodError - Eclipse JDT core Java runtime error - java.lang.NoSuchMethodError android中的java.lang.NoSuchMethodError:org.json.JSONArray错误 - java.lang.NoSuchMethodError:org.json.JSONArray error in android Java:ucanaccess hsqldb java.lang.NoSuchMethodError: - Java: ucanaccess hsqldb java.lang.NoSuchMethodError: 仅在树莓派上出现java.lang.NoSuchMethodError - java.lang.NoSuchMethodError on raspberry pi only 面对java.lang.NoSuchMethodError:码头+ Eclipse - Facing a java.lang.NoSuchMethodError: Jetty + Eclipse 期间发生内部错误:“从选择中请求 Java AST”。 java.lang.NoSuchMethodError: com.ibm.icu.text.UTF16.isSurrogate(C)Z - An internal error occurred during: "Requesting Java AST from selection". java.lang.NoSuchMethodError: com.ibm.icu.text.UTF16.isSurrogate(C)Z
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM