Because of illuminated cloud intellij is getting hanged.

Issue #334 duplicate
gs-vmenon created an issue

Because of illuminated cloud intellij is getting hanged and I am unable to work on it. As soon as I make few changes it gets hanged. Following is the exception from the console.

invalidated at: see attachment com.intellij.psi.PsiInvalidElementAccessException: Element: class com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationImpl because: containing file is null invalidated at: see attachment at com.intellij.extapi.psi.StubBasedPsiElementBase.getContainingFile(StubBasedPsiElementBase.java:254) at com.intellij.extapi.psi.StubBasedPsiElementBase.getProject(StubBasedPsiElementBase.java:289) at com.illuminatedcloud.intellij.psi.impl.ApexExpressionType.<init>(SourceFile:73) at com.illuminatedcloud.intellij.ApexLanguage$1.compute(SourceFile:522) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222) at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:84) at com.illuminatedcloud.intellij.ApexLanguage.getObjectClassDeclaration(SourceFile:516) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin$1.compute(SourceFile:219) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:137) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222) at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:130) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.getBaseClassDeclaration(SourceFile:195) at com.illuminatedcloud.intellij.psi.stub.ApexClassDeclarationStub.<init>(SourceFile:39) at com.illuminatedcloud.intellij.psi.stub.ApexClassDeclarationElementType.doCreateStub(SourceFile:38) at com.illuminatedcloud.intellij.psi.stub.ApexClassDeclarationElementType.doCreateStub(SourceFile:22) at com.illuminatedcloud.intellij.psi.stub.ApexDeclarationStubElementType.createStub(SourceFile:164) at com.illuminatedcloud.intellij.psi.stub.ApexDeclarationStubElementType.createStub(SourceFile:32) at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:60) at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:36) at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:1039) at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:75) at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:52) at com.intellij.psi.stubs.StubIndexImpl$1.process(StubIndexImpl.java:232) at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:593) at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:581) at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:81) at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:258) at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:224) at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:213) at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:77) at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:96) at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:202) at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:192) at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:39) at com.illuminatedcloud.intellij.index.AbstractApexDeclarationStubIndex.get(SourceFile:28) at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.fastFindTypeDeclaration(SourceFile:273) at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:233) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin$1.compute(SourceFile:204) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:137) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222) at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:130) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.getBaseClassDeclaration(SourceFile:195) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.getAllImplementedTypeDeclarations(SourceFile:301) at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.getAllBodyDeclarations(SourceFile:120) at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.collectVisibleDeclarations(SourceFile:254) at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:167) at com.illuminatedcloud.intellij.psi.impl.ApexMethodDeclarationMixin.collectVisibleDeclarations(SourceFile:292) at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:167) at com.illuminatedcloud.intellij.psi.impl.ApexCodeBlockMixin.collectVisibleDeclarations(SourceFile:206) at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:167) at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:143) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin.getReferencesNoCache(SourceFile:181) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin$1.doGetReferences(SourceFile:94) at com.illuminatedcloud.intellij.psi.impl.PsiReferenceCache.compute(SourceFile:66) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:137) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222) at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:130) at com.illuminatedcloud.intellij.psi.impl.PsiReferenceCache.getReferences(SourceFile:58) at com.illuminatedcloud.intellij.psi.impl.PsiReferenceCache.getReference(SourceFile:35) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin.getReference(SourceFile:79) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin.tryAsContinuationOfRefExpression(SourceFile:236) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin.getReferencesNoCache(SourceFile:108) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin$1.doGetReferences(SourceFile:94) at com.illuminatedcloud.intellij.psi.impl.PsiReferenceCache.compute(SourceFile:66) at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:137) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222) at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:66) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:130) at com.illuminatedcloud.intellij.psi.impl.PsiReferenceCache.getReferences(SourceFile:58) at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin.getReferences(SourceFile:86) at com.intellij.psi.impl.SharedPsiElementImplUtil.addReferences(SharedPsiElementImplUtil.java:75) at com.intellij.psi.impl.SharedPsiElementImplUtil.findReferenceAt(SharedPsiElementImplUtil.java:49) at com.intellij.psi.impl.SharedPsiElementImplUtil.findReferenceAt(SharedPsiElementImplUtil.java:67) at com.intellij.psi.impl.PsiElementBase.findReferenceAt(PsiElementBase.java:87) at com.intellij.psi.SingleRootFileViewProvider.findReferenceAt(SingleRootFileViewProvider.java:490) at com.intellij.psi.SingleRootFileViewProvider.findReferenceAt(SingleRootFileViewProvider.java:462) at com.intellij.psi.impl.source.PsiFileImpl.findReferenceAt(PsiFileImpl.java:617) at com.intellij.codeInsight.TargetElementUtil.findReference(TargetElementUtil.java:144) at com.intellij.codeInsight.TargetElementUtil.doGetReferenceOrReferencedElement(TargetElementUtil.java:392) at com.intellij.codeInsight.TargetElementUtil.getReferenceOrReferencedElement(TargetElementUtil.java:380) at com.intellij.codeInsight.TargetElementUtil.doFindTargetElement(TargetElementUtil.java:247) at com.intellij.codeInsight.TargetElementUtil.findTargetElement(TargetElementUtil.java:216) at com.intellij.codeInsight.daemon.impl.IdentifierHighlighterPass.doCollectInformation(IdentifierHighlighterPass.java:91) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:444) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:435) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:432) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:408) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:206) at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260) at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858) at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687) at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642) at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)

Comments (4)

  1. Scott Wells repo owner

    For the stack trace you've provided, please try rebuilding caches & indices under Settings>Illuminated Cloud (connectionName)>Rebuild, then allow the IDE to restart. My guess is that this is not related to the deadlock/hang, though, which is likely the same as what is currently being tracked in #308.

  2. Log in to comment