Error in SonarLint for IntelliJ no2

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.3.0.77475
java.lang.Throwable: Assertion failed: Undoable actions allowed inside commands only (see c.ij.oa.command.CommandProcessor.executeCommand())
	at c.ij.oa.diagnostic.Logger.assertTrue(Logger.java:469)
	at c.ij.oa.command.impl.UndoManagerImpl.undoableActionPerformed(UndoManagerImpl.java:329)
	at c.ij.oa.command.impl.DocumentUndoProvider.registerUndoableAction(DocumentUndoProvider.java:119)
	at c.ij.oa.command.impl.DocumentUndoProvider.handleDocumentChanged(DocumentUndoProvider.java:90)
	at c.ij.oa.command.impl.DocumentUndoProvider.documentChanged(DocumentUndoProvider.java:79)
	at c.ij.oa.editor.impl.event.EditorEventMulticasterImpl$1.lambda$documentChanged$1(EditorEventMulticasterImpl.java:46)
	at c.ij.oa.extensions.impl.ExtensionProcessingHelper.forEachExtensionSafe(ExtensionProcessingHelper.kt:34)
	at c.ij.oa.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:50)
	at c.ij.oa.editor.impl.event.EditorEventMulticasterImpl$1.documentChanged(EditorEventMulticasterImpl.java:46)
	at c.ij.oa.editor.impl.DocumentImpl.lambda$changedUpdate$1(DocumentImpl.java:913)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$2(CoreProgressManager.java:228)
	at c.ij.oa.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:685)
	at c.ij.oa.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:641)
	at c.ij.oa.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$3(CoreProgressManager.java:236)

Hi @dacha, thank you for your report!

Do you still have the full stack trace? If so, or if it ever happens again, do not hesitate to share it with us.

So far, I don’t see a link with SonarLint. Could you describe what you did when this error happened? Is it reproducible?

Thank you!