简体   繁体   English

Groovy Eclipse存根方法

[英]Groovy Eclipse Stubbed Method

I have some groovy files in Eclipse and my project has the Groovy nature. 我在Eclipse中有一些groovy文件,并且我的项目具有Groovy性质。 I don't use the GroovyBuilder (I don't think you need to now. there were problems in the past when java files referenced groovy and vice versa). 我不使用GroovyBuilder(我不认为您现在需要。过去,当Java文件引用groovy时出现问题,反之亦然)。 Sometimes when I run my project I get a "Stubbed Method" error and I need to do a project clean for the groovy files to rebuild. 有时,当我运行我的项目时,会出现“ Stubbed Method”错误,并且我需要对项目进行清理以重建常规文件。 Any ideas why I need to do this and what causes the files to need rebuilding if I'm not changing them? 有什么想法为什么我需要这样做,如果我不更改文件,是什么导致文件需要重建?

thanks, Jeff 谢谢,杰夫

It sounds like you are using an old version of the plugin. 听起来您正在使用旧版本的插件。 Please upgrade to V2 of groovy-eclipse (still in alpha, but quite stable). 请升级到groovy-Eclipse的V2(仍为alpha,但相当稳定)。

The update site is available here: http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/ 可在此处找到更新站点: http : //dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/

Also, be sure to convert all your old groovy projects to the new format (see the groovy preferences page). 另外,请确保将所有旧的groovy项目转换为新格式(请参见groovy首选项页面)。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM