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

GitHub | MattGurneyAMP | 9 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

    GitHub comment 53#232251436

    GitHub | 9 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