com.intellij.psi.PsiInvalidElementAccessException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • error building hierarchy
    via GitHub by gavinking
    ,
  • GitHub comment 222#223041830
    via GitHub by FroMage
    ,
    • com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.compiled.ClsMethodImpl because: containing file is null invalidated at: no info at com.intellij.psi.impl.compiled.ClsRepositoryPsiElement.getManager(ClsRepositoryPsiElement.java:47) at com.intellij.psi.impl.PsiElementBase.getProject(PsiElementBase.java:214) at com.intellij.psi.impl.PsiSuperMethodImplUtil.getHierarchicalMethodSignature(PsiSuperMethodImplUtil.java:384) at com.intellij.psi.impl.compiled.ClsMethodImpl.getHierarchicalMethodSignature(ClsMethodImpl.java:126) at com.intellij.psi.impl.search.MethodSuperSearcher$1.compute(MethodSuperSearcher.java:45) at com.intellij.psi.impl.search.MethodSuperSearcher$1.compute(MethodSuperSearcher.java:42) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:870) at com.intellij.psi.impl.search.MethodSuperSearcher.execute(MethodSuperSearcher.java:42) at com.intellij.psi.impl.search.MethodSuperSearcher.execute(MethodSuperSearcher.java:35) at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:45) at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:79) at com.intellij.util.AbstractQuery.findFirst(AbstractQuery.java:56) at com.intellij.util.UniqueResultsQuery.findFirst(UniqueResultsQuery.java:51) at org.intellij.plugins.ceylon.ide.ceylonCode.model.PSIMethod.getComputedIsOverriding$priv$(PSIMethod.ceylon:40) at org.intellij.plugins.ceylon.ide.ceylonCode.model.PSIMethod.getIsOverriding(PSIMethod.ceylon:43) at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModelLoader.isOverridingMethod(IdeaModelLoader.ceylon:125) at com.redhat.ceylon.model.loader.AbstractModelLoader.completeActual(AbstractModelLoader.java:4041) at com.redhat.ceylon.model.typechecker.model.Declaration.completeActual(Declaration.java:290) at com.redhat.ceylon.model.typechecker.model.Declaration.isActual(Declaration.java:194) at com.redhat.ceylon.model.typechecker.model.TypeDeclaration.isBetterRefinement(TypeDeclaration.java:402) at com.redhat.ceylon.model.typechecker.model.TypeDeclaration.getRefinedMember(TypeDeclaration.java:390) at com.redhat.ceylon.model.typechecker.model.TypeDeclaration.getRefinedMember(TypeDeclaration.java:365) at com.redhat.ceylon.model.typechecker.model.TypeDeclaration.getRefinedMember(TypeDeclaration.java:347) at com.redhat.ceylon.model.typechecker.model.TypeDeclaration.getRefinedMember(TypeDeclaration.java:340) at com.redhat.ceylon.compiler.typechecker.analyzer.RefinementVisitor.checkMember(RefinementVisitor.java:761) at com.redhat.ceylon.compiler.typechecker.analyzer.RefinementVisitor.visit(RefinementVisitor.java:157) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:63) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:68) at com.redhat.ceylon.compiler.typechecker.analyzer.RefinementVisitor.visit(RefinementVisitor.java:88) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:70) at com.redhat.ceylon.compiler.typechecker.tree.Tree$MethodDeclaration.visit(Tree.java:1436) at com.redhat.ceylon.compiler.typechecker.tree.Walker.walkBody(Walker.java:437) at com.redhat.ceylon.compiler.typechecker.tree.Walker.walkClassBody(Walker.java:446) at com.redhat.ceylon.compiler.typechecker.tree.Tree$ClassBody.visitChildren(Tree.java:1874) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:24) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:83) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:85) at com.redhat.ceylon.compiler.typechecker.tree.Tree$ClassBody.visit(Tree.java:1866) at com.redhat.ceylon.compiler.typechecker.tree.Walker.walkClassDefinition(Walker.java:250) at com.redhat.ceylon.compiler.typechecker.tree.Tree$ClassDefinition.visitChildren(Tree.java:953) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:24) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:131) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:132) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:40) at com.redhat.ceylon.compiler.typechecker.analyzer.RefinementVisitor.visit(RefinementVisitor.java:128) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:42) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:43) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:54) at com.redhat.ceylon.compiler.typechecker.analyzer.RefinementVisitor.visit(RefinementVisitor.java:95) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:55) at com.redhat.ceylon.compiler.typechecker.tree.Tree$ClassDefinition.visit(Tree.java:945) at com.redhat.ceylon.compiler.typechecker.tree.Walker.walkCompilationUnit(Walker.java:30) at com.redhat.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visitChildren(Tree.java:30) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visitAny(Visitor.java:24) at com.redhat.ceylon.compiler.typechecker.tree.Visitor.visit(Visitor.java:26) at com.redhat.ceylon.compiler.typechecker.tree.Tree$CompilationUnit.visit(Tree.java:22) at com.redhat.ceylon.compiler.typechecker.context.PhasedUnit.validateRefinement(PhasedUnit.java:407) at com.redhat.ceylon.ide.common.model.IdeModule$24.$call$(IdeModule.ceylon:911) at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModule$1.$call$(IdeaModule.ceylon:56) at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.withIndexStrategy$priv$(concurrencyManager.ceylon:186) at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.withUpToDateIndexes(concurrencyManager.ceylon:207) at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModule.encloseOnTheFlyTypechecking(IdeaModule.ceylon:55) at com.redhat.ceylon.ide.common.model.IdeModule.buildPhasedUnitForBinaryUnit$priv$(IdeModule.ceylon:905) at com.redhat.ceylon.ide.common.model.IdeModule.access$300(IdeModule.ceylon:191) at com.redhat.ceylon.ide.common.model.IdeModule$BinaryPhasedUnits.fromStoredType(IdeModule.ceylon:333) at com.redhat.ceylon.ide.common.model.IdeModule$BinaryPhasedUnits.fromStoredType(IdeModule.ceylon:288) at com.redhat.ceylon.compiler.typechecker.context.PhasedUnitMap.getPhasedUnits(PhasedUnitMap.java:50) at com.redhat.ceylon.ide.common.model.IdeModule$11.$call$(IdeModule.ceylon:548) at com.redhat.ceylon.ide.common.model.IdeModule$11.$call$(IdeModule.ceylon:547) at com.redhat.ceylon.ide.common.model.IdeModule$10.$call$(IdeModule.ceylon:539) at com.redhat.ceylon.ide.common.util.synchronize_.synchronize(synchronize_.java:33) at com.redhat.ceylon.ide.common.model.IdeModule.doWithPhasedUnitsObject$priv$(IdeModule.ceylon:537) at com.redhat.ceylon.ide.common.model.IdeModule.getPhasedUnits(IdeModule.ceylon:546) at org.intellij.plugins.ceylon.ide.ceylonCode.hierarchy.collectPhasedUnits_$1anonymous_0_.run(CeylonHierarchy.ceylon:101) at com.intellij.openapi.progress.impl.CoreProgressManager$6.run(CoreProgressManager.java:256) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager$9.run(CoreProgressManager.java:384) at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$9(ApplicationImpl.java:555) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:308) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.