Error running grails unit test in intellij (Plugin: org.intellij.groovy): null

Hi,
Sort of new to grails and intellij
But here's the quick scenario
Drill down to a unit test which I know works on the command line grails test-app ...

Try to right (dbl) click on mac osx 10.6 , intellij 9.0.3 grails 1.2.2 and get this

Error: Internal error (Plugin: org.intellij.groovy): null
Information:Previous compilation did not terminate properly. Caches may have been corrupted. Starting rebuild...
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Internal error (Plugin: org.intellij.groovy): null

Some other tests do work when running from the idebut not this one, seems like an ide error as another dev here is able to run the same test in his env
I have GRAILS_HOME set in my shell but not GROOVY_HOME

This is the stacktrace I see in the ideal.log file

Sorry if I missed anything (I haven't submitted a support ticket yet)
Thanks

2010-10-28 16:21:50,387 [23181750]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2010-10-28 16:21:50,428 [23181791]   INFO - lij.compiler.impl.CompilerUtil -  COMPILATION FINISHED; Errors: 1; warnings: 0 took 41 ms: 0 min 0sec
2010-10-28 16:21:50,452 [23181815]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2010-10-28 16:21:50,695 [23182058]   INFO - lij.compiler.impl.CompilerUtil - Initial VFS refresh took 206 ms: 0 min 0sec
2010-10-28 16:21:51,031 [23182394]  ERROR - ij.psi.impl.source.PsiFileImpl - Stub list incom.intellij.psi.impl.source.PsiFileImpl$1@75ddd2 RedirectUtils.groovy has fewer elements than PSI. Last AST element: modifier list Element(modifier list)
java.lang.Throwable
 at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
 at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:270)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:73)
 at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:105)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:62)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:61)
 at com.intellij.psi.WalkingState.walkChildren(WalkingState.java:61)
 at com.intellij.psi.WalkingState.elementStarted(WalkingState.java:51)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitNode(RecursiveTreeElementWalkingVisitor.java:78)
 at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:297)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:73)
 at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:105)
 at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:263)
 at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:217)
 at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(PsiFileImpl.java:672)
 at com.intellij.psi.impl.source.PsiFileImpl.getChildren(PsiFileImpl.java:679)
 at com.intellij.psi.impl.source.PsiFileImpl.findChildrenByClass(PsiFileImpl.java:515)
 at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl.isScript(GroovyFileImpl.java:381)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase$2.compute(GroovyCompilerBase.java:364)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase$2.compute(GroovyCompilerBase.java:362)
 at com.intellij.openapi.application.impl.ApplicationImpl$10.run(ApplicationImpl.java:727)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:697)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:725)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase.shouldCompile(GroovyCompilerBase.java:361)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase.compile(GroovyCompilerBase.java:337)
 at org.jetbrains.plugins.groovy.compiler.generator.GroovycStubGenerator.compile(GroovycStubGenerator.java:90)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1583)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1005)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:744)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:474)
 at com.intellij.compiler.impl.CompileDriver.access$700(CompileDriver.java:98)
 at com.intellij.compiler.impl.CompileDriver$6.run(CompileDriver.java:417)
 at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:141)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:428)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:198)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:223)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:189)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:343)
 at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:331)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:637)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:125)
2010-10-28 16:21:51,032 [23182395]  ERROR - ij.psi.impl.source.PsiFileImpl - IntelliJ IDEA 9.0.3  Build #IU-95.429
2010-10-28 16:21:51,032 [23182395]  ERROR - ij.psi.impl.source.PsiFileImpl - JDK: 1.6.0_20
2010-10-28 16:21:51,032 [23182395]  ERROR - ij.psi.impl.source.PsiFileImpl - VM: Java HotSpot(TM) Client VM
2010-10-28 16:21:51,032 [23182395]  ERROR - ij.psi.impl.source.PsiFileImpl - Vendor: Apple Inc.
2010-10-28 16:21:51,032 [23182395]  ERROR - ij.psi.impl.source.PsiFileImpl - OS: Mac OS X
2010-10-28 16:21:51,032 [23182395]  ERROR - ij.psi.impl.source.PsiFileImpl - Last Action: RunClass
2010-10-28 16:21:51,045 [23182408]   INFO - lij.compiler.impl.CompilerUtil -  COMPILATION FINISHED; Errors: 1; warnings: 0 took 593 ms: 0 min 0sec
2010-10-28 16:21:51,045 [23182408]  ERROR - plication.impl.ApplicationImpl -  [Plugin: org.intellij.groovy]
com.intellij.diagnostic.PluginException:  [Plugin: org.intellij.groovy]
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:489)
 at com.intellij.compiler.impl.CompileDriver.access$700(CompileDriver.java:98)
 at com.intellij.compiler.impl.CompileDriver$6.run(CompileDriver.java:417)
 at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:141)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:428)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:198)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:223)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:189)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:343)
 at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:331)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:637)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:125)
Caused by: java.util.NoSuchElementException
 at java.util.AbstractList$Itr.next(AbstractList.java:350)
 at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:279)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:73)
 at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:105)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:62)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:61)
 at com.intellij.psi.WalkingState.walkChildren(WalkingState.java:61)
 at com.intellij.psi.WalkingState.elementStarted(WalkingState.java:51)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitNode(RecursiveTreeElementWalkingVisitor.java:78)
 at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:297)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:73)
 at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:105)
 at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:263)
 at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:217)
 at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(PsiFileImpl.java:672)
 at com.intellij.psi.impl.source.PsiFileImpl.getChildren(PsiFileImpl.java:679)
 at com.intellij.psi.impl.source.PsiFileImpl.findChildrenByClass(PsiFileImpl.java:515)
 at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl.isScript(GroovyFileImpl.java:381)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase$2.compute(GroovyCompilerBase.java:364)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase$2.compute(GroovyCompilerBase.java:362)
 at com.intellij.openapi.application.impl.ApplicationImpl$10.run(ApplicationImpl.java:727)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:697)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:725)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase.shouldCompile(GroovyCompilerBase.java:361)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase.compile(GroovyCompilerBase.java:337)
 at org.jetbrains.plugins.groovy.compiler.generator.GroovycStubGenerator.compile(GroovycStubGenerator.java:90)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1583)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1005)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:744)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:474)
 ... 16 more
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 9.0.3  Build #IU-95.429
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - JDK: 1.6.0_20
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) Client VM
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - Vendor: Apple Inc.
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - OS: Mac OS X
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - Last Action: RunClass
2010-10-28 16:21:51,046 [23182409]  ERROR - plication.impl.ApplicationImpl - Original exception:  
java.util.NoSuchElementException
 at java.util.AbstractList$Itr.next(AbstractList.java:350)
 at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:279)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:73)
 at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:105)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:62)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor$1.visit(RecursiveTreeElementWalkingVisitor.java:61)
 at com.intellij.psi.WalkingState.walkChildren(WalkingState.java:61)
 at com.intellij.psi.WalkingState.elementStarted(WalkingState.java:51)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitNode(RecursiveTreeElementWalkingVisitor.java:78)
 at com.intellij.psi.impl.source.PsiFileImpl$1.visitNode(PsiFileImpl.java:297)
 at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:73)
 at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:105)
 at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:263)
 at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:217)
 at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(PsiFileImpl.java:672)
 at com.intellij.psi.impl.source.PsiFileImpl.getChildren(PsiFileImpl.java:679)
 at com.intellij.psi.impl.source.PsiFileImpl.findChildrenByClass(PsiFileImpl.java:515)
 at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl.isScript(GroovyFileImpl.java:381)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase$2.compute(GroovyCompilerBase.java:364)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase$2.compute(GroovyCompilerBase.java:362)
 at com.intellij.openapi.application.impl.ApplicationImpl$10.run(ApplicationImpl.java:727)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:697)
 at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:725)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase.shouldCompile(GroovyCompilerBase.java:361)
 at org.jetbrains.plugins.groovy.compiler.GroovyCompilerBase.compile(GroovyCompilerBase.java:337)
 at org.jetbrains.plugins.groovy.compiler.generator.GroovycStubGenerator.compile(GroovycStubGenerator.java:90)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1583)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:1005)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:744)
 at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:474)
 at com.intellij.compiler.impl.CompileDriver.access$700(CompileDriver.java:98)
 at com.intellij.compiler.impl.CompileDriver$6.run(CompileDriver.java:417)
 at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:141)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:428)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:198)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:223)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:189)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:343)
 at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:331)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:637)
 at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:125)

Please sign in to leave a comment.