com.intellij.util.IncorrectOperationException: Must not modify PSI inside save listener

GitHub | MattGurneyAMP | 8 months 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

    GitHub comment 53#232251436

    GitHub | 8 months ago | MattGurneyAMP
    com.intellij.util.IncorrectOperationException: Must not modify PSI inside save listener

    Root Cause Analysis

    1. com.intellij.util.IncorrectOperationException

      Must not modify PSI inside save listener

      at com.intellij.pom.core.impl.PomModelImpl.runTransaction()
    2. IDEA
      CodeStyleManagerImpl.a
      1. com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:144)
      2. com.intellij.psi.impl.DocumentCommitThread$10.run(DocumentCommitThread.java:922)
      3. com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.a(CodeStyleManagerImpl.java:676)
      3 frames