com.intellij.util.IncorrectOperationException: Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor

YouTrack | 8 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

    IOE at com.intellij.openapi.editor.impl.DocumentImpl.e

    YouTrack | 8 months ago
    com.intellij.util.IncorrectOperationException: Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor

    Root Cause Analysis

    1. com.intellij.util.IncorrectOperationException

      Must not change document outside command or undo-transparent action. See com.intellij.openapi.command.WriteCommandAction or com.intellij.openapi.command.CommandProcessor

      at com.intellij.openapi.editor.impl.DocumentImpl.e()
    2. IDEA
      EmmetPreviewHint.a
      1. com.intellij.openapi.editor.impl.DocumentImpl.e(DocumentImpl.java:763)
      2. com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:739)
      3. com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:713)
      4. com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:590)
      5. com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:537)
      6. com.intellij.codeInsight.template.emmet.generators.XmlZenCodingGeneratorImpl.a(XmlZenCodingGeneratorImpl.java:135)
      7. com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:913)
      8. com.intellij.codeInsight.template.emmet.generators.XmlZenCodingGeneratorImpl.b(XmlZenCodingGeneratorImpl.java:134)
      9. com.intellij.codeInsight.template.emmet.generators.XmlZenCodingGeneratorImpl.toString(XmlZenCodingGeneratorImpl.java:61)
      10. com.intellij.codeInsight.template.emmet.generators.XmlZenCodingGenerator.a(XmlZenCodingGenerator.java:71)
      11. com.intellij.codeInsight.template.emmet.generators.XmlZenCodingGenerator.generateTemplate(XmlZenCodingGenerator.java:46)
      12. com.intellij.codeInsight.template.emmet.nodes.GenerationNode.a(GenerationNode.java:320)
      13. com.intellij.codeInsight.template.emmet.nodes.GenerationNode.generate(GenerationNode.java:199)
      14. com.intellij.codeInsight.template.emmet.nodes.GenerationNode.generate(GenerationNode.java:231)
      15. com.intellij.codeInsight.template.emmet.ZenCodingTemplate.a(ZenCodingTemplate.java:235)
      16. com.intellij.codeInsight.template.emmet.ZenCodingTemplate.expand(ZenCodingTemplate.java:206)
      17. com.intellij.codeInsight.template.emmet.EmmetPreviewUtil.calculateTemplateText(EmmetPreviewUtil.java:59)
      18. com.intellij.codeInsight.template.emmet.EmmetPreviewUtil$TemplateTextProducer.produce(EmmetPreviewUtil.java:131)
      19. com.intellij.codeInsight.template.emmet.EmmetPreviewUtil$TemplateTextProducer.produce(EmmetPreviewUtil.java:117)
      20. com.intellij.codeInsight.template.emmet.EmmetPreviewHint.a(EmmetPreviewHint.java:109)
      20 frames
    3. Openapi
      QueueProcessor.runSafely
      1. com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:222)
      1 frame
    4. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:387)
      2. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:306)
      3. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:334)
      4. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:318)
      4 frames
    5. 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:80)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      8 frames
    6. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.h(IdeEventQueue.java:836)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:672)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
      3 frames
    7. 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