java.lang.IllegalStateException: parentByStub must not be null

GitHub | Riateche | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    parentByStub must not be null

    GitHub | 6 months ago | Riateche
    java.lang.IllegalStateException: parentByStub must not be null
  2. 0

    Exception when editing code.

    GitHub | 6 months ago | Jezza
    java.lang.IllegalStateException: parentByStub must not be null
  3. 0

    GitHub comment 606#242747427

    GitHub | 6 months ago | Riateche
    java.lang.IllegalStateException: parentByTree must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      parentByStub must not be null

      at org.rust.lang.core.psi.impl.RustStubbedElementImpl.getParent()
    2. org.rust.lang
      RustStubbedElementImpl.getParent
      1. org.rust.lang.core.psi.impl.RustStubbedElementImpl.getParent(RustStubbedElementImpl.kt:18)
      1 frame
    3. IDEA
      EnterHandler.executeWriteAction
      1. com.intellij.psi.impl.PsiElementBase.isValid(PsiElementBase.java:254)
      2. com.intellij.extapi.psi.StubBasedPsiElementBase.isValid(StubBasedPsiElementBase.java:278)
      3. com.intellij.psi.impl.PsiElementBase.isValid(PsiElementBase.java:258)
      4. com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.a(SmartPointerManagerImpl.java:260)
      5. com.intellij.psi.impl.smartPointers.SmartPointerManagerImpl.updatePointerTargetsAfterReparse(SmartPointerManagerImpl.java:251)
      6. com.intellij.psi.impl.PsiDocumentManagerBase.finishCommitInWriteAction(PsiDocumentManagerBase.java:344)
      7. com.intellij.psi.impl.PsiDocumentManagerImpl.finishCommitInWriteAction(PsiDocumentManagerImpl.java:143)
      8. com.intellij.psi.impl.PsiDocumentManagerBase$3.run(PsiDocumentManagerBase.java:298)
      9. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1010)
      10. com.intellij.psi.impl.PsiDocumentManagerBase.finishCommit(PsiDocumentManagerBase.java:295)
      11. com.intellij.psi.impl.DocumentCommitThread$5.run(DocumentCommitThread.java:528)
      12. com.intellij.psi.impl.DocumentCommitThread.commitSynchronously(DocumentCommitThread.java:424)
      13. com.intellij.psi.impl.PsiDocumentManagerBase$5.run(PsiDocumentManagerBase.java:390)
      14. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1010)
      15. com.intellij.psi.impl.PsiDocumentManagerBase.b(PsiDocumentManagerBase.java:382)
      16. com.intellij.psi.impl.PsiDocumentManagerBase.commitDocument(PsiDocumentManagerBase.java:284)
      17. com.intellij.psi.impl.PsiDocumentManagerBase.commitAllDocuments(PsiDocumentManagerBase.java:218)
      18. com.intellij.codeInsight.editorActions.EnterHandler.a(EnterHandler.java:166)
      19. com.intellij.codeInsight.editorActions.EnterHandler.access$000(EnterHandler.java:54)
      20. com.intellij.codeInsight.editorActions.EnterHandler$1.run(EnterHandler.java:76)
      21. com.intellij.psi.impl.source.PostprocessReformattingAspect$3.compute(PostprocessReformattingAspect.java:115)
      22. com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:124)
      23. com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:112)
      24. com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:73)
      24 frames
    4. Openapi
      EditorWriteActionHandler$1.run
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:56)
      1 frame
    5. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1010)
      1 frame
    6. Openapi
      EditorActionHandler.execute
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:49)
      2. com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:222)
      2 frames
    7. IDEA
      EnterHandler.executeWriteAction
      1. com.intellij.codeInsight.template.impl.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:49)
      1 frame
    8. Openapi
      EditorWriteActionHandler$1.run
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:56)
      1 frame
    9. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1010)
      1 frame
    10. Openapi
      EditorActionHandler$3.perform
      1. com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.doExecute(EditorWriteActionHandler.java:49)
      2. com.intellij.openapi.editor.actionSystem.EditorActionHandler$3$1.perform(EditorActionHandler.java:206)
      3. com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:109)
      4. com.intellij.openapi.editor.actionSystem.EditorActionHandler.access$000(EditorActionHandler.java:38)
      5. com.intellij.openapi.editor.actionSystem.EditorActionHandler$3.perform(EditorActionHandler.java:203)
      5 frames
    11. IDEA
      CaretModelImpl.runForEachCaret
      1. com.intellij.openapi.editor.impl.CaretModelImpl$3.run(CaretModelImpl.java:342)
      2. com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:422)
      3. com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:333)
      4. com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:324)
      4 frames
    12. Openapi
      EditorAction$1.run
      1. com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:200)
      2. com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:98)
      2 frames
    13. IDEA
      CoreCommandProcessor.executeCommand
      1. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
      1 frame
    14. Openapi
      EditorAction.actionPerformed
      1. com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:109)
      2. com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:83)
      2 frames
    15. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:595)
      2. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:646)
      3. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:485)
      4. com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:215)
      5. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:622)
      6. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
      6 frames
    16. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames