Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

"TypeError: Cannot read property 'visualBlock' of null" errors #64

Open
kenny-evitt opened this issue Jan 13, 2016 · 2 comments
Open

"TypeError: Cannot read property 'visualBlock' of null" errors #64

kenny-evitt opened this issue Jan 13, 2016 · 2 comments

Comments

@kenny-evitt
Copy link

Sometimes, I haven't determined exactly when, I get the Vim plugin into a state whereby I'm stuck in insert mode and can't exit back to normal mode.

In the console I get errors like this, one logged each time I try to 'escape':

TypeError: Cannot read property 'visualBlock' of null
    at exitInsertMode (/Users/kenny/Library/Application%20Support/LightTable/plugins/Vim/vim.js:4648:69)
    at doHandleBinding (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:3162:14)
    at eval (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:3205:63)
    at lookup (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:4909:28)
    at CodeMirror.lookupKey (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:4924:18)
    at handleKeyBinding (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:3205:17)
    at onKeyDown (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:3237:19)
    at HTMLTextAreaElement.eval (/Users/kenny/@code/LightTable/builds/lighttable-0.8.0-mac/LightTable.app/Contents/Resources/app/core/node_modules/codemirror/lib/codemirror.js:2146:22)

I'll add more info, like steps to reproduce, once I have them.

I believe I've encountered this on all platforms, but just now I'm running a recent source version, more recent than 0.8.0, on a Mac OS X computer.

@kenny-evitt
Copy link
Author

Opening and closing the (a? any?) tab seems to fix it.

@kenny-evitt
Copy link
Author

I was wrong – opening and closing a tab doesn't really fix it. When re-opening the tab, the Vim plugin seems to be back in normal mode but once I enter insert mode again I can't then escape back to normal mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant