java.lang.IllegalStateException: Attempt to modify PSI for non-committed Document!

GitHub | gavinking | 10 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

    IllegalStateException: Attempt to modify PSI for non-committed Document!

    GitHub | 10 months ago | gavinking
    java.lang.IllegalStateException: Attempt to modify PSI for non-committed Document!

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Attempt to modify PSI for non-committed Document!

      at com.intellij.psi.impl.PsiToDocumentSynchronizer.checkPsiModificationAllowed()
    2. IDEA
      SingleRootFileViewProvider.onContentReload
      1. com.intellij.psi.impl.PsiToDocumentSynchronizer.checkPsiModificationAllowed(PsiToDocumentSynchronizer.java:83)
      2. com.intellij.psi.impl.PsiToDocumentSynchronizer.beforeChildrenChange(PsiToDocumentSynchronizer.java:153)
      3. com.intellij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:418)
      4. com.intellij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:270)
      5. com.intellij.psi.SingleRootFileViewProvider.onContentReload(SingleRootFileViewProvider.java:224)
      5 frames
    3. org.intellij.plugins
      CeylonLocalAnalyzerManager$8$1.$call$
      1. org.intellij.plugins.ceylon.ide.ceylonCode.psi.CeylonLocalAnalyzerManager$8$1.$call$(CeylonLocalAnalyzerManager.ceylon:183)
      1 frame
    4. ceylon.interop.java
      JavaRunnable.run
      1. ceylon.interop.java.JavaRunnable.run(JavaRunnable.ceylon:7)
      1 frame
    5. IDEA
      ApplicationImpl.runWriteAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009)
      1 frame
    6. org.intellij.plugins
      CeylonLocalAnalyzerManager$8.$call$
      1. org.intellij.plugins.ceylon.ide.ceylonCode.psi.CeylonLocalAnalyzerManager$8.$call$(CeylonLocalAnalyzerManager.ceylon:182)
      1 frame
    7. ceylon.interop.java
      JavaRunnable.run
      1. ceylon.interop.java.JavaRunnable.run(JavaRunnable.ceylon:7)
      1 frame
    8. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:345)
      2. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:329)
      2 frames
    9. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    10. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
      3 frames
    11. 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