unable to run grails app within intellij
I imported a large project from Eclipse in intellij 7.0.4. This was running fine but now it does not run. I think this happened after I mistakenly deleted .IntelliJIdea70. I realized this upon starting intellij and finding a blank screen. I closed intellij, renamed .IntelliJIdea70 and restored the previously deleted .IntelliJIdea70 and restarted intellij. But I am not sure if this related to that.
When I open the project, intellij shows red icon at bottom -- internal IDE error -- This is the log in this error:
org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
java.lang.NoClassDefFoundError: org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:50)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosure(GroovyElementVisitor.java:54)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosableBlockImpl.accept(GrClosableBlockImpl.java:59)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariable(GroovyElementVisitor.java:406)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(GroovyElementVisitor.java:326)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accept(GrFieldImpl.java:56)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:50)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariableDeclaration(GroovyElementVisitor.java:402)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.accept(GrVariableDeclarationImpl.java:34)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinitionBody(GroovyElementVisitor.java:330)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiElementImpl.acceptChildren(GroovyPsiElementImpl.java:123)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyElementVisitor.java:242)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:97)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptChildren(GroovyFileBaseImpl.java:143)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(GroovyElementVisitor.java:42)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImpl.java:136)
at com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java:81)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:104)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:93)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:4)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:28)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.run(LocalInspectionsPass.java:2)
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 com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:81)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:63)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:27)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:239)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:18)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:50)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:31)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:28)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:3)
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:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:82)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 56 more
When I rebuild the project, it says compilation completed successfully.
Now when I try to run the project, I get the following error:
Error running myproj: Grails are not configured
请先登录再写评论。
Hello Al,
Please remove the InspectorGroovy plugin.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I removed InspectGroovy plugin. This did not fix the problem. I exited and restarted intellij. When I tried to rebuild the project
the following exception is thrown:
Cannot run program "C:\Program Files\Java\jdk1.6.0_02\bin\java": CreateProcess error=87, The parameter is incorrect
com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "C:\Program Files\Java\jdk1.6.0_02\bin\java": CreateProcess error=87, The parameter is incorrect
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:124)
at org.jetbrains.plugins.groovy.compiler.GroovyCompiler.compile(GroovyCompiler.java:132)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:789)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:707)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:532)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:794)
at com.intellij.compiler.impl.CompileDriver.access$400(CompileDriver.java:728)
at com.intellij.compiler.impl.CompileDriver$4.run(CompileDriver.java:13)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:188)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run(ProgressManagerImpl.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:10)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:28)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:48)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:3)
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:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:11)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_02\bin\java": CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:509)
at
I get the same error when I try to run the project.
One strange thing I noticed:
Under the Project Setting Grails facet it asks for Choose Grails SDK specific for this module, the drop down box has only one option in red: . I clicked on New button next to it and pointed to grails install dir. It detected Grails 1.0.3 and added this to the drop down list. When I click apply after selecting grails 1.0.3 from the dropdown, it reverts back to . I tried to click Ok and even restarted Intellij but it has revereted back to ]]> although it added Grails 1.0.3 in the drop down list. Could be also the cause of the problem as this existed before removal of InspectrGroovy?
Thanks in advance.
Hello.
As for this exception it might be caused by very long classpath of your grails application. I can only suggest work-around which is in setting 'idea.dynamic.classpath' property in your $IDEA_DIR/bin/idea.properties to true.
This dropdown behaviour is definitely bug and it was fixed in JetGroovy version for Diana.
With best regards,
Ilya
Hi Ilya!
I seem to be having the same behavior in 8.0.1 and it is blaming it on inspectorgroovy. The worst part for me is that it shows "Blame inspectorgroovy" greyed out thus not allowing me to submit the bug. I tried scrolling up and down and going forward to the last page but nothing activated the "Blame" button. I tried shutting it down and trying your fix but that didn't stop the exception from popping up. Here is the full Exception:
org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
java.lang.NoClassDefFoundError: org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrBlockStatement
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosure(GroovyElementVisitor.java:53)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosableBlockImpl.accept(GrClosableBlockImpl.java:64)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariable(GroovyElementVisitor.java:401)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(GroovyElementVisitor.java:321)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accept(GrFieldImpl.java:63)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariableDeclaration(GroovyElementVisitor.java:397)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.accept(GrVariableDeclarationImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinitionBody(GroovyElementVisitor.java:325)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyElementVisitor.java:237)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:106)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptChildren(GroovyFileBaseImpl.java:143)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(GroovyElementVisitor.java:41)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImpl.java:136)
at com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java:81)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:58)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:1)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:7)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:2)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:3)
at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
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 com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:32)
at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:51)
at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:27)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:67)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:217)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:231)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:12)
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:619)
Caused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 72 more
java.lang.ClassNotFoundException: org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrBlockStatement
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.isEmpty(GroovyEmptyStatementBodyInspection.java:91)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:76)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitIfStatement(GroovyElementVisitor.java:333)
at com.siyeh.inspectorgroovy.confusing.GroovyEmptyStatementBodyInspection$Visitor.visitIfStatement(GroovyEmptyStatementBodyInspection.java:72)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrIfStatementImpl.accept(GrIfStatementImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitClosure(GroovyElementVisitor.java:53)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.blocks.GrClosableBlockImpl.accept(GrClosableBlockImpl.java:64)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariable(GroovyElementVisitor.java:401)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitField(GroovyElementVisitor.java:321)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrFieldImpl.accept(GrFieldImpl.java:63)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitStatement(GroovyElementVisitor.java:49)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitVariableDeclaration(GroovyElementVisitor.java:397)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.GrVariableDeclarationImpl.accept(GrVariableDeclarationImpl.java:39)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinitionBody(GroovyElementVisitor.java:325)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.bodies.GrTypeDefinitionBodyImpl.accept(GrTypeDefinitionBodyImpl.java:42)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyBaseElementImpl.acceptChildren(GroovyBaseElementImpl.java:119)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitTypeDefinition(GroovyElementVisitor.java:237)
at org.jetbrains.plugins.groovy.lang.psi.impl.statements.typedef.GrTypeDefinitionImpl.accept(GrTypeDefinitionImpl.java:106)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.acceptChildren(GroovyFileBaseImpl.java:143)
at org.jetbrains.plugins.groovy.lang.psi.GroovyRecursiveElementVisitor.visitElement(GroovyRecursiveElementVisitor.java:9)
at org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor.visitFile(GroovyElementVisitor.java:41)
at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileBaseImpl.accept(GroovyFileBaseImpl.java:136)
at com.siyeh.inspectorgroovy.BaseInspection.checkFile(BaseInspection.java:81)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:58)
at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:1)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:7)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:2)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:3)
at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
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 com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:32)
at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:51)
at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:27)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:67)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:217)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:231)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:12)
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:619)
Hello Steve,
Remove the InspectorGroovy plugin. All its functionality is bundled in the
current Groovy plugin.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I also ran into a similar problem with 8.0.
My configuration was fine until it started showing "Grails are not configured" when trying to run the grails application.
I finally found out that grails was listed 3 times in the modue dependencies. I removed them all and it now works fine.
- Go to File, Project Structure
- In the Modules category, select your Grails module
- Click on the Dependencies tab
- Remove all the Grails dependencies (IntelliJ will automatically add one back)
==> After following those steps I was able to run my application.
Hello,
I am using IntelliJ 8.0.1 and trying to "import" and existing Grails App.
IntelliJ is not finding a Grails facet, so I get no grails modile
How is this supposed work? Its a small size, recent, pure Grails app
Thanks,
Serge
Could you attach either this project or a reduced version for which
Grails facet also isn't detected? BTW what do you mean by "import", what
exactly do you do?
Hello Peter,
My fault, it seems that I had in-advertantly deleted some of the grails project files.
Sorry for the hassle.
Serge