Eclipse错误处理文件(commencingResolution失败)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Eclipse错误处理文件(commencingResolution失败)相关的知识,希望对你有一定的参考价值。
突然之间,我的日食grails项目(GGTS 3.6.4)出现了错误。我想知道这是否可能是由于codehaus被终止...
!ENTRY org.eclipse.jdt.core 4 4 2015-06-07 07:47:09.622
!MESSAGE Internal groovy compiler error.
!STACK 0
BUG! exception in phase 'semantic analysis' in source unit '/Users/paul/Documents/GrailsWorkspace/Invoicer/target/work/plugins/fields-1.5.1/grails-app/taglib/grails/plugin/formfields/FormFieldsTagLib.groovy' commencingResolution failed: declaration found, but unexpectedly found no scope for grails.plugin.formfields.FormFieldsTagLib$BeanAndPrefix
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:1027)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:648)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:597)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:202)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.resolve(GroovyCompilationUnitDeclaration.java:2202)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:827)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.codehaus.jdt.groovy.internal.compiler.ast.GroovyEclipseBug: commencingResolution failed: declaration found, but unexpectedly found no scope for grails.plugin.formfields.FormFieldsTagLib$BeanAndPrefix
at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.commencingResolution(JDTResolver.java:511)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1283)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:167)
at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.startResolving(JDTResolver.java:565)
at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:714)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:1018)
... 7 more
我尝试刷新依赖项以及删除目标和目标eclipse目录。
答案
Eclipse似乎已经失去了理智。我删除了项目,然后重新导入它。 Eclipse告诉我,它看起来像Grails项目,但需要重新创建项目文件。我允许它这样做,现在它工作正常。
另一答案
得到同样的错误(只是使用Groovy顺便说一句)和一个项目干净做了伎俩
以上是关于Eclipse错误处理文件(commencingResolution失败)的主要内容,如果未能解决你的问题,请参考以下文章
为 JSF 下载 Mojarra 库时,在 Eclipse 中显示错误“zip 文件为空”