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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via YouTrack by Unknown author, 1 year ago
via YouTrack by Unknown author, 1 year ago
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.(PsiInvalidElementAccessException.java:77)
at com.intellij.psi.PsiInvalidElementAccessException.(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.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.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.jetbrains.python.psi.search.PyClassInheritorsSearchExecutor.a(PyClassInheritorsSearchExecutor.java:59)
at com.jetbrains.python.psi.search.PyClassInheritorsSearchExecutor.execute(PyClassInheritorsSearchExecutor.java:46)
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.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 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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.