com.intellij.psi.PsiInvalidElementAccessException

Element: class com.jetbrains.python.psi.impl.PyImportElementImpl

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • com.intellij.psi.PsiInvalidElementAccessException: Element: class com.jetbrains.python.psi.impl.PyImportElementImpl at com.intellij.psi.impl.source.SubstrateRef$1.getNode(SubstrateRef.java:60) at com.intellij.extapi.psi.StubBasedPsiElementBase.getNode(StubBasedPsiElementBase.java:135) at com.intellij.extapi.psi.StubBasedPsiElementBase.getParentByTree(StubBasedPsiElementBase.java:322) at com.intellij.extapi.psi.StubBasedPsiElementBase.getParent(StubBasedPsiElementBase.java:332) at com.intellij.psi.PsiInvalidElementAccessException.reason(PsiInvalidElementAccessException.java:159) at com.intellij.psi.PsiInvalidElementAccessException.getMessageWithReason(PsiInvalidElementAccessException.java:119) at com.intellij.psi.PsiInvalidElementAccessException.<init>(PsiInvalidElementAccessException.java:77) at com.intellij.psi.PsiInvalidElementAccessException.<init>(PsiInvalidElementAccessException.java:48) at com.intellij.psi.impl.source.SubstrateRef$1.getNode(SubstrateRef.java:60) at com.intellij.extapi.psi.StubBasedPsiElementBase.getNode(StubBasedPsiElementBase.java:135) at com.intellij.extapi.psi.StubBasedPsiElementBase.getStubOrPsiChild(StubBasedPsiElementBase.java:369) at com.jetbrains.python.psi.impl.PyImportElementImpl.getAsNameElement(PyImportElementImpl.java:75) at com.jetbrains.python.psi.impl.PyImportElementImpl.getAsName(PyImportElementImpl.java:84) at com.jetbrains.python.psi.impl.PyImportElementImpl.a(PyImportElementImpl.java:212) at com.jetbrains.python.psi.impl.PyImportElementImpl.getElementNamed(PyImportElementImpl.java:206) at com.jetbrains.python.psi.resolve.PyResolveProcessor.a(PyResolveProcessor.java:118) at com.jetbrains.python.psi.resolve.PyResolveProcessor.execute(PyResolveProcessor.java:66) at com.jetbrains.python.psi.resolve.PyResolveUtil.scopeCrawlUp(PyResolveUtil.java:92) at com.jetbrains.python.psi.resolve.PyResolveUtil.scopeCrawlUp(PyResolveUtil.java:63) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubImpl.c(PyNamedTupleStubImpl.java:297) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubImpl.e(PyNamedTupleStubImpl.java:253) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubImpl.d(PyNamedTupleStubImpl.java:156) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubImpl.create(PyNamedTupleStubImpl.java:75) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubImpl.create(PyNamedTupleStubImpl.java:61) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubType.createStub(PyNamedTupleStubType.java:31) at com.jetbrains.python.psi.impl.stubs.PyNamedTupleStubType.createStub(PyNamedTupleStubType.java:26) at com.jetbrains.python.psi.impl.stubs.PyTargetExpressionElementType.createStub(PyTargetExpressionElementType.java:75) at com.jetbrains.python.psi.impl.stubs.PyTargetExpressionElementType.createStub(PyTargetExpressionElementType.java:43) at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:74) at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:36) at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:1064) at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:76) at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:52) at com.intellij.psi.stubs.StubIndexImpl$2.process(StubIndexImpl.java:324) at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:675) at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:663) at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:81) at com.intellij.psi.stubs.StubIndexImpl.a(StubIndexImpl.java:350) at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:316) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:146) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:135) at com.jetbrains.python.psi.search.PyClassInheritorsSearchExecutor.a(PyClassInheritorsSearchExecutor.java:59) at com.jetbrains.python.psi.search.PyClassInheritorsSearchExecutor.execute(PyClassInheritorsSearchExecutor.java:46) at com.jetbrains.python.psi.search.PyClassInheritorsSearchExecutor.execute(PyClassInheritorsSearchExecutor.java:37) 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 com.jetbrains.python.codeInsight.PyLineMarkerProvider.a(PyLineMarkerProvider.java:225) at com.jetbrains.python.codeInsight.PyLineMarkerProvider.collectSlowLineMarkers(PyLineMarkerProvider.java:215) at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.addLineMarkers(SlowLineMarkersPass.java:78) at com.intellij.codeInsight.daemon.impl.SlowLineMarkersPass.doCollectInformation(SlowLineMarkersPass.java:65) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:434) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1034) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:427) at com.intellij.openapi.progress.impl.CoreProgressManager.a(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.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:426) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:402) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:154) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

No Bugmate found.