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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by hero710692586
, 1 year ago
Must not modify PSI inside save listener
via GitHub by MattGurneyAMP
, 1 year ago
Must not modify PSI inside save listener
via GitHub by mmedic
, 9 months ago
Must not modify PSI inside save listener
via GitHub by charlouze
, 4 months ago
Must not modify PSI inside save listener
via GitHub by rw00
, 4 months ago
Must not modify PSI inside save listener
via GitHub by Ivanov-Alexander
, 2 years ago
Must not modify PSI inside save listener
com.intellij.util.IncorrectOperationException: Must not modify PSI inside save listener
at com.intellij.pom.core.impl.PomModelImpl.runTransaction(PomModelImpl.java:144)
at com.intellij.psi.impl.DocumentCommitThread$10.run(DocumentCommitThread.java:922)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.a(CodeStyleManagerImpl.java:676)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:121)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.a(CodeStyleManagerImpl.java:705)
at com.intellij.formatting.FormatterImpl.runWithFormattingDisabled(FormatterImpl.java:889)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.performActionWithFormatterDisabled(CodeStyleManagerImpl.java:703)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.performActionWithFormatterDisabled(CodeStyleManagerImpl.java:675)
at com.intellij.psi.impl.DocumentCommitThread.doActualPsiChange(DocumentCommitThread.java:907)
at com.intellij.psi.impl.DocumentCommitThread$9.process(DocumentCommitThread.java:825)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.