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

GitHub | GoogleCodeExporter | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    GitHub | 2 years ago | GoogleCodeExporter
    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.pom.core.impl.PomModelImpl.b()
    2. IDEA
      LeafElement.replaceWithText
      1. com.intellij.pom.core.impl.PomModelImpl.b(PomModelImpl.java:308)
      2. com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:143)
      3. com.intellij.psi.impl.source.tree.ChangeUtil.prepareAndRunChangeAction(ChangeUtil.java:165)
      4. com.intellij.psi.impl.source.tree.CompositeElement.replaceChild(CompositeElement.java:703)
      5. com.intellij.psi.impl.source.tree.LeafElement.replaceWithText(LeafElement.java:150)
      5 frames
    3. com.ansorgit.plugins
      BashStringImpl.updateText
      1. com.ansorgit.plugins.bash.lang.psi.impl.word.BashStringImpl.updateText(BashStringImpl.java:109)
      1 frame
    4. IDEA
      PsiFileImpl.subtreeChanged
      1. com.intellij.psi.impl.source.tree.injected.InjectedFileViewProvider.rootChanged(InjectedFileViewProvider.java:86)
      2. com.intellij.psi.impl.source.PsiFileImpl.subtreeChanged(PsiFileImpl.java:443)
      2 frames
    5. com.ansorgit.plugins
      ReplaceVarWithParamExpansionQuickfix.invoke
      1. com.ansorgit.plugins.bash.editor.inspections.quickfix.ReplaceVarWithParamExpansionQuickfix.invoke(ReplaceVarWithParamExpansionQuickfix.java:66)
      1 frame
    6. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement.invoke(LocalQuickFixAndIntentionActionOnPsiElement.java:41)
      2. com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$2.run(ShowIntentionActionsHandler.java:169)
      3. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:974)
      4. com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$3.run(ShowIntentionActionsHandler.java:183)
      5. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
      6. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
      7. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
      8. com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseActionAndInvoke(ShowIntentionActionsHandler.java:188)
      9. com.intellij.codeInsight.intention.impl.IntentionListStep$2$1.run(IntentionListStep.java:250)
      10. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:318)
      10 frames
    7. Java RT
      EventQueue.dispatchEvent
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
      3. java.awt.EventQueue.access$200(EventQueue.java:103)
      4. java.awt.EventQueue$3.run(EventQueue.java:694)
      5. java.awt.EventQueue$3.run(EventQueue.java:692)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
      8 frames
    8. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
      3 frames
    9. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
      6 frames