我正在编译一个在 Eclipse 中运行良好的项目,并且使用 ant 构建良好,但在 IntelliJ IDEA 中给出:
Internal groovyc error: code 1
我该如何解决这个问题?其他错误消息包括:
1:35:46 PM Unknown Natures Detected
Imported projects contain unknown natures:
org.eclipse.jdt.groovy.core.groovyNature
Some settings may be lost after import.
1:43:55 PM Compilation completed with 1 error and 7 warnings in 20 sec
Groovyc: Cannot compile Groovy files: no Groovy library is defined for module
Groovy 本身安装在 Linux 上。在设置中将其添加为 groovy 编译器不会影响行为:
> groovy --version
Groovy Version: 1.7.4 JVM: 1.6.0_24