[英]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.