Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected caret move request #132

Closed
helmus opened this issue Mar 28, 2017 · 3 comments
Closed

Unexpected caret move request #132

helmus opened this issue Mar 28, 2017 · 3 comments
Labels

Comments

@helmus
Copy link

helmus commented Mar 28, 2017

Unexpected caret move request
java.lang.Throwable
	at com.intellij.diagnostic.LogMessageEx.error(LogMessageEx.java:116)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:631)
	at com.intellij.openapi.editor.impl.CaretImpl.a(CaretImpl.java:138)
	at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:448)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToOffset(CaretImpl.java:136)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToOffset(CaretImpl.java:126)
	at com.intellij.openapi.editor.impl.EditorImpl.reinitSettings(EditorImpl.java:806)
	at com.intellij.openapi.editor.impl.SettingsImpl.b(SettingsImpl.java:679)
	at com.intellij.openapi.editor.impl.SettingsImpl.setBlinkCaret(SettingsImpl.java:546)
	at com.johnlindquist.acejump.ui.AceUI.restoreEditorSettings(AceUI.kt:99)
	at com.johnlindquist.acejump.KeyboardHandler.resetUIState(KeyboardHandler.kt:168)
	at com.johnlindquist.acejump.KeyboardHandler.reset(KeyboardHandler.kt:137)
	at com.johnlindquist.acejump.KeyboardHandler$resetListener$1.caretPositionChanged(KeyboardHandler.kt:85)
	at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)
	at com.intellij.util.EventDispatcher.access$200(EventDispatcher.java:35)
	at com.intellij.util.EventDispatcher$2.invoke(EventDispatcher.java:79)
	at com.sun.proxy.$Proxy31.caretPositionChanged(Unknown Source)
	at com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:533)
	at com.intellij.openapi.editor.impl.CaretImpl.a(CaretImpl.java:515)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:639)
	at com.intellij.openapi.editor.impl.CaretImpl.c(CaretImpl.java:358)
	at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:448)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:358)
	at com.intellij.openapi.editor.impl.CaretModelImpl.a(CaretModelImpl.java:496)
	at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:453)
	at com.intellij.openapi.editor.impl.CaretModelImpl.setCaretsAndSelections(CaretModelImpl.java:473)
	at com.intellij.openapi.fileEditor.impl.text.TextEditorProvider.setStateImpl(TextEditorProvider.java:279)
	at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.setStateImpl(PsiAwareTextEditorProvider.java:116)
	at com.intellij.openapi.fileEditor.impl.text.AsyncEditorLoader.setEditorState(AsyncEditorLoader.java:205)
	at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.setState(TextEditorImpl.java:122)
	at com.intellij.openapi.command.impl.UndoRedo.a(UndoRedo.java:238)
	at com.intellij.openapi.command.impl.UndoRedo.execute(UndoRedo.java:146)
	at com.intellij.openapi.command.impl.CommandMerger.undoOrRedo(CommandMerger.java:217)
	at com.intellij.openapi.command.impl.UndoManagerImpl.a(UndoManagerImpl.java:367)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:149)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
	at com.intellij.openapi.command.impl.UndoManagerImpl.a(UndoManagerImpl.java:379)
	at com.intellij.openapi.command.impl.UndoManagerImpl.undo(UndoManagerImpl.java:347)
	at com.intellij.ide.actions.UndoAction.perform(UndoAction.java:30)
	at com.intellij.ide.actions.UndoRedoAction.actionPerformed(UndoRedoAction.java:39)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:215)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:232)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:570)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:619)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:618)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.f(IdeKeyEventDispatcher.java:477)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:633)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@breandan breandan added the bug label Jun 1, 2017
@breandan
Copy link
Collaborator

Looks like #121, #122 is back unfortunately. Any advice for how to reproduce would be greatly appreciated. Can't seem to pin this one down.

@sergeychibunin
Copy link

sergeychibunin commented Jul 28, 2017

Today this exception occurred between pressing needled char (for example "h") after hotkey "Ctrl+;" and displaying hints with chars. In this moment I pressed random key (for example "f") because pause is too long. Work lags by other words.

Unexpected caret move request
java.lang.Throwable
at com.intellij.diagnostic.LogMessageEx.error(LogMessageEx.java:116)
at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:631)
at com.intellij.openapi.editor.impl.CaretImpl.a(CaretImpl.java:138)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:440)
at com.intellij.openapi.editor.impl.CaretImpl.moveToOffset(CaretImpl.java:136)
at com.intellij.openapi.editor.impl.CaretImpl.moveToOffset(CaretImpl.java:126)
at com.intellij.openapi.editor.impl.EditorImpl.reinitSettings(EditorImpl.java:819)
at com.intellij.openapi.editor.impl.SettingsImpl.b(SettingsImpl.java:690)
at com.intellij.openapi.editor.impl.SettingsImpl.setBlinkCaret(SettingsImpl.java:557)
at com.johnlindquist.acejump.control.Handler$restoreCursor$1.invoke(Handler.kt:245)
at com.johnlindquist.acejump.control.Handler$restoreCursor$1.invoke(Handler.kt:35)
at com.johnlindquist.acejump.search.AceUtilKt$sam$Runnable$a309a120.run(AceUtil.kt)
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:681)
at com.johnlindquist.acejump.search.AceUtilKt.runNow(AceUtil.kt:32)
at com.johnlindquist.acejump.control.Handler.restoreCursor(Handler.kt:244)
at com.johnlindquist.acejump.control.Handler.restoreSettings(Handler.kt:229)
at com.johnlindquist.acejump.control.Handler.reset(Handler.kt:196)
at com.johnlindquist.acejump.control.Handler$resetListener$1.caretPositionChanged(Handler.kt:115)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)
at com.intellij.util.EventDispatcher.access$200(EventDispatcher.java:35)
at com.intellij.util.EventDispatcher$2.invoke(EventDispatcher.java:79)
at com.sun.proxy.$Proxy32.caretPositionChanged(Unknown Source)
at com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:525)
at com.intellij.openapi.editor.impl.CaretImpl.a(CaretImpl.java:515)
at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:639)
at com.intellij.openapi.editor.impl.CaretImpl.a(CaretImpl.java:358)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:440)
at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:358)
at com.intellij.openapi.editor.impl.CaretModelImpl.a(CaretModelImpl.java:488)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:445)
at com.intellij.openapi.editor.impl.CaretModelImpl.setCaretsAndSelections(CaretModelImpl.java:465)
at com.intellij.openapi.fileEditor.impl.text.TextEditorProvider.setStateImpl(TextEditorProvider.java:283)
at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.setStateImpl(PsiAwareTextEditorProvider.java:116)
at com.intellij.openapi.fileEditor.impl.text.AsyncEditorLoader.setEditorState(AsyncEditorLoader.java:206)
at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.setState(TextEditorImpl.java:123)
at com.intellij.openapi.fileEditor.impl.IdeDocumentHistoryImpl.c(IdeDocumentHistoryImpl.java:447)
at com.intellij.openapi.fileEditor.impl.IdeDocumentHistoryImpl.b(IdeDocumentHistoryImpl.java:329)
at com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:149)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
at com.intellij.openapi.fileEditor.impl.IdeDocumentHistoryImpl.executeCommand(IdeDocumentHistoryImpl.java:550)
at com.intellij.openapi.fileEditor.impl.IdeDocumentHistoryImpl.back(IdeDocumentHistoryImpl.java:329)
at com.intellij.ide.actions.BackAction.actionPerformed(BackAction.java:30)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:216)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:233)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:576)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:625)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:624)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:479)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:621)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@breandan
Copy link
Collaborator

breandan commented Apr 4, 2021

Thanks to #353, this should be fixed in 3.7.0, but feel free to reopen if you re-encounter it.

@breandan breandan closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants