Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Failure to exit insert mode

Open jminardi opened this issue 10 years ago • 3 comments

Since updating the vim plugin recently I sometimes get in a state where I can not exit insert mode.

I haven't nailed down exactly what steps are needed to reproduce this, I will update this issue if I am able to.

The following errors appear in the console when trying to exit by hitting escape:

Uncaught TypeError: Cannot call method 'find' of undefined
vim.js [2870]   updateLastSelection
vim.js [2906]   exitVisualMode
vim.js [2169]   actions.enterInsertMode
vim.js [1919]   operators.change
vim.js [1490]   commandDispatcher.evalInput
vim.js [1084]   commandDispatcher.processOperator
vim.js [1041]   commandDispatcher.processCommand
vim.js [738]    vimApi.handleKey
vim.js [4603]   anonymous
codemirror.js [3004]    doHandleBinding
codemirror.js [3061]    anonymous
codemirror.js [4723]    lookup
codemirror.js [4738]    CodeMirror.lookupKey
codemirror.js [3060]    handleCharBinding
codemirror.js [3119]    onKeyPress
codemirror.js [2008]    anonymous
Uncaught TypeError: Cannot read property 'height' of undefined
vim.js [4648]   exitInsertMode
codemirror.js [3004]    doHandleBinding
codemirror.js [3047]    anonymous
codemirror.js [4723]    lookup
codemirror.js [4738]    CodeMirror.lookupKey
codemirror.js [3047]    handleKeyBinding
codemirror.js [3079]    onKeyDown
codemirror.js [2008]    anonymous

jminardi avatar Oct 16 '14 03:10 jminardi

Thanks for the report. We'll definitely need to reproduce it before there's anything we can do. I'll leave it open for a while to see if others encounter it. Judging from the stacktrace, this may get kicked up to CodeMirror.

Also, I see you're in the area - you should come out to a Boston Clojure meetup sometime :)

cldwalker avatar Oct 16 '14 21:10 cldwalker

I am getting this problem too. Sometimes I would work on files for some time (often hours) and then something happens and I cannot escape out of insert mode for that file. If I close the tab and move to other tabs then it works fine (unless the bug is triggered on other files too), if I reopen that file however the bug stays. To make it go away I have to restart LightTable which is very very annoying.

Morgawr avatar Dec 12 '14 00:12 Morgawr

Same problem, I had LightTable open for a few hours and it didn't occur at all but once it started it didn't stop.

RatanRSur avatar Feb 15 '15 06:02 RatanRSur