In my setup theres an exception that raises very frequently.
There's some problem with the editor cursor (like is written in the exception), but it seems to happen most of the time when I'm using the diff window, to compare a project file with another external to the project I'm working onto.
It looks like the exception is thrown when opening the internal diff tool, just after placing the cursor anywhere in the second column (current file contents).
I'm on Windows and using WSL if that can help.
The stacktrace:
java.lang.Throwable: Assertion failed: Caret model is in its update process. All requests are illegal at this point.
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:465)
at com.intellij.openapi.editor.impl.CaretImpl.assertNotUpdating(CaretImpl.java:621)
at com.intellij.openapi.editor.impl.CaretImpl.getOffset(CaretImpl.java:665)
at com.intellij.openapi.editor.CaretModel.getOffset(CaretModel.java:129)
at com.wakatime.intellij.plugin.CustomVisibleAreaListener.visibleAreaChanged(CustomVisibleAreaListener.java:33)
at jdk.internal.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:118)
at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:83)
at jdk.proxy2/jdk.proxy2.$Proxy128.visibleAreaChanged(Unknown Source)
at com.intellij.openapi.editor.impl.ScrollingModelImpl$MyChangeListener.lambda$stateChanged$0(ScrollingModelImpl.java:457)
at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76)
at com.intellij.openapi.application.ReadAction.run(ReadAction.java:63)
at com.intellij.openapi.editor.impl.ScrollingModelImpl$MyChangeListener.stateChanged(ScrollingModelImpl.java:446)
at java.desktop/javax.swing.JViewport.fireStateChanged(JViewport.java:1494)
at java.desktop/javax.swing.JViewport.setViewPosition(JViewport.java:1244)
at com.intellij.ui.components.JBViewport.setViewPosition(JBViewport.java:106)
at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1189)
at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1178)
at java.desktop/javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:371)
at com.intellij.ui.components.JBScrollBar$Model.fireStateChanged(JBScrollBar.java:369)
at java.desktop/javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:309)
at java.desktop/javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:175)
at java.desktop/javax.swing.JScrollBar.setValue(JScrollBar.java:486)
at com.intellij.ui.components.JBScrollBar.setValue(JBScrollBar.java:202)
at com.intellij.openapi.editor.impl.ScrollingModelImpl._scrollVertically(ScrollingModelImpl.java:220)
at com.intellij.openapi.editor.impl.ScrollingModelImpl.scroll(ScrollingModelImpl.java:282)
at com.intellij.openapi.editor.impl.ScrollingModelImpl.scrollVertically(ScrollingModelImpl.java:213)
at com.intellij.diff.tools.util.SyncScrollSupport.doScrollVertically(SyncScrollSupport.java:452)
at com.intellij.diff.tools.util.SyncScrollSupport$ScrollHelper.syncVerticalScroll(SyncScrollSupport.java:405)
at com.intellij.diff.tools.util.SyncScrollSupport$ScrollHelper.visibleAreaChanged(SyncScrollSupport.java:342)
at com.intellij.diff.tools.util.SyncScrollSupport$TwosideSyncScrollSupport.visibleAreaChanged(SyncScrollSupport.java:90)
at com.intellij.diff.tools.util.side.TwosideTextDiffViewer$MyVisibleAreaListener.visibleAreaChanged(TwosideTextDiffViewer.java:369)
at com.intellij.openapi.editor.impl.ScrollingModelImpl$MyChangeListener.lambda$stateChanged$0(ScrollingModelImpl.java:457)
at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76)
at com.intellij.openapi.application.ReadAction.run(ReadAction.java:63)
at com.intellij.openapi.editor.impl.ScrollingModelImpl$MyChangeListener.stateChanged(ScrollingModelImpl.java:446)
at java.desktop/javax.swing.JViewport.fireStateChanged(JViewport.java:1494)
at java.desktop/javax.swing.JViewport.setViewPosition(JViewport.java:1244)
at com.intellij.ui.components.JBViewport.setViewPosition(JBViewport.java:106)
at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1189)
at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1178)
at java.desktop/javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:371)
at com.intellij.ui.components.JBScrollBar$Model.fireStateChanged(JBScrollBar.java:369)
at java.desktop/javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:309)
at java.desktop/javax.swing.JScrollBar.setValues(JScrollBar.java:634)
at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport(BasicScrollPaneUI.java:342)
at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1168)
at java.desktop/javax.swing.JViewport.fireStateChanged(JViewport.java:1494)
at java.desktop/javax.swing.JViewport$ViewListener.componentResized(JViewport.java:1413)
at java.desktop/java.awt.Component.processComponentEvent(Component.java:6483)
at com.intellij.openapi.editor.impl.EditorComponentImpl.fireResized(EditorComponentImpl.java:217)
at com.intellij.openapi.editor.impl.EditorImpl.validateSize(EditorImpl.java:1844)
at com.intellij.openapi.editor.impl.EditorImpl.onInlayUpdated(EditorImpl.java:665)
at com.intellij.openapi.editor.impl.EditorImpl$5.onUpdated(EditorImpl.java:516)
at com.intellij.openapi.editor.InlayModel$SimpleAdapter.onRemoved(InlayModel.java:350)
at jdk.internal.reflect.GeneratedMethodAccessor448.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:118)
at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:83)
at jdk.proxy2/jdk.proxy2.$Proxy221.onRemoved(Unknown Source)
at com.intellij.openapi.editor.impl.InlayModelImpl.notifyRemoved(InlayModelImpl.java:549)
at com.intellij.openapi.editor.impl.InlayImpl.dispose(InlayImpl.java:98)
at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:129)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:161)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:262)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:250)
at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.clear(SimpleAlignedDiffModel.kt:153)
at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.realignChanges$lambda$5(SimpleAlignedDiffModel.kt:147)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:110)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:65)
at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.realignChanges(SimpleAlignedDiffModel.kt:146)
at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.access$realignChanges(SimpleAlignedDiffModel.kt:27)
at com.intellij.diff.tools.simple.SimpleAlignedDiffModel$MySoftWrapModelListener.recalculationEnds(SimpleAlignedDiffModel.kt:200)
at com.intellij.openapi.editor.impl.SoftWrapModelImpl$1.recalculationEnds(SoftWrapModelImpl.java:121)
at com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.onRecalculationEnd(SoftWrapApplianceManager.java:201)
at com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.recalculate(SoftWrapApplianceManager.java:128)
at com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.documentChanged(SoftWrapApplianceManager.java:429)
at com.intellij.openapi.editor.impl.SoftWrapModelImpl.documentChanged(SoftWrapModelImpl.java:481)
at com.intellij.openapi.editor.impl.DocumentImpl.lambda$changedUpdate$1(DocumentImpl.java:913)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:222)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:230)
at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:64)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:230)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:221)
at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:910)
at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:814)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:654)
at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:591)
at com.intellij.psi.formatter.DocumentBasedFormattingModel.replaceWhiteSpace(DocumentBasedFormattingModel.java:151)
at com.intellij.formatting.engine.FormatProcessorUtils.replaceWhiteSpace(FormatProcessorUtils.java:31)
at com.intellij.formatting.engine.ApplyChangesState.doIteration(ApplyChangesState.java:175)
at com.intellij.formatting.engine.State.iteration(State.java:25)
at com.intellij.formatting.engine.StateProcessor.iteration(StateProcessor.java:26)
at com.intellij.formatting.FormatProcessor.doIterationsSynchronously(FormatProcessor.java:148)
at com.intellij.formatting.FormatProcessor.performModifications(FormatProcessor.java:143)
at com.intellij.formatting.FormatProcessor.performModifications(FormatProcessor.java:133)
at com.intellij.formatting.FormatterImpl.adjustLineIndentsForRange(FormatterImpl.java:301)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$3.doPerform(CodeStyleManagerImpl.java:274)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:92)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:277)
at com.intellij.codeInsight.editorActions.DefaultTypingActionsExtension.adjustLineIndent(DefaultTypingActionsExtension.java:86)
at com.intellij.codeInsight.editorActions.DefaultTypingActionsExtension.indentEachLine(DefaultTypingActionsExtension.java:165)
at com.intellij.codeInsight.editorActions.DefaultTypingActionsExtension.format(DefaultTypingActionsExtension.java:66)
at com.intellij.codeInsight.editorActions.PasteHandler.lambda$doPasteAction$4(PasteHandler.java:270)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:992)
at com.intellij.codeInsight.editorActions.PasteHandler.doPasteAction(PasteHandler.java:268)
at com.intellij.codeInsight.editorActions.PasteHandler.doPaste(PasteHandler.java:122)
at com.intellij.codeInsight.editorActions.PasteHandler.lambda$execute$2(PasteHandler.java:103)
at com.intellij.openapi.project.DumbService.runWithAlternativeResolveEnabled(DumbService.kt:309)
at com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:94)
at com.intellij.codeInsight.editorActions.PasteHandler.doExecute(PasteHandler.java:60)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.lambda$execute$4(EditorActionHandler.java:199)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:89)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:198)
at com.intellij.codeInsight.editorActions.LanguageConsolePasteHandler.doExecute(LanguageConsolePasteHandler.kt:24)
at com.intellij.openapi.editor.actionSystem.DynamicEditorActionHandler.doExecute(DynamicEditorActionHandler.java:63)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.lambda$execute$4(EditorActionHandler.java:199)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:89)
at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:198)
at com.intellij.openapi.editor.actionSystem.EditorAction.lambda$actionPerformed$0(EditorAction.java:93)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:102)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:77)
at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.java:339)
at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:47)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$myActionProcessor$1.performAction(IdeKeyEventDispatcher.kt:502)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$5$lambda$4(IdeKeyEventDispatcher.kt:865)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$5(IdeKeyEventDispatcher.kt:865)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:362)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner(IdeKeyEventDispatcher.kt:863)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doPerformActionInner(IdeKeyEventDispatcher.kt:1)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction$intellij_platform_ide_impl(IdeKeyEventDispatcher.kt:587)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:513)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.kt:454)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.kt:447)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.kt:309)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.kt:617)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:587)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Some logs from Wakatime (XXXX is current project, YYYY is the external one)
Hi,
In my setup theres an exception that raises very frequently. There's some problem with the editor cursor (like is written in the exception), but it seems to happen most of the time when I'm using the diff window, to compare a project file with another external to the project I'm working onto.
It looks like the exception is thrown when opening the internal diff tool, just after placing the cursor anywhere in the second column (current file contents).
I'm on Windows and using WSL if that can help.
The stacktrace:
Some logs from Wakatime (XXXX is current project, YYYY is the external one)
My IDE configuration: