t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 112 forks source link

Uncaught TypeError: Cannot read property 'isReady' of undefined #948

Open shemerey opened 6 years ago

shemerey commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.0-beta0 x64 Electron: 1.6.15 OS: Mac OS X 10.13.2 Thrown From: vim-mode-plus package 1.17.0

Stack Trace

Uncaught TypeError: Cannot read property 'isReady' of undefined

At /Users/zork/.atom/packages/vim-mode-plus/lib/operation-stack.js:173

TypeError: Cannot read property 'isReady' of undefined
    at OperationStack.process (/packages/vim-mode-plus/lib/operation-stack.js:173:13)
    at MoveToMark.processOperation (/packages/vim-mode-plus/lib/base.js:102:34)
    at onConfirm (/packages/vim-mode-plus/lib/base.js:138:14)
    at CompositeDisposable.onDidSetInputChar.char (/packages/vim-mode-plus/lib/vim-state.js:609:9)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at VimState.emitDidSetInputChar (/packages/vim-mode-plus/lib/vim-state.js:203:44)
    at /packages/vim-mode-plus/lib/main.js:186:14)
    at HTMLElement.didDispatch (/packages/vim-mode-plus/lib/main.js:201:30)
    at CommandRegistry.handleCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/command-registry.js:388:36)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom Beta.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom Beta.app/Contents/Resources/app/src/window-event-handler.js:108:40)

Commands

     -0:22.6.0 script:close-view (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:22.6.0 core:cancel (input.hidden-input)
     -0:20.9.0 vim-mode-plus:change-surround (input.hidden-input)
     -0:20.9.0 vim-mode-plus:move-to-mark-line (input.hidden-input)
     -0:19.7.0 vim-mode-plus:set-input-char-` (input.hidden-input)
     -0:16 vim-mode-plus:move-to-mark (input.hidden-input)
     -0:15.9.0 vim-mode-plus:set-input-char-u (input.hidden-input)
     -0:14.7.0 vim-mode-plus:undo (input.hidden-input)
     -0:07.3.0 vim-mode-plus:change-surround (input.hidden-input)
     -0:07.3.0 vim-mode-plus:move-to-mark (input.hidden-input)
     -0:06.4.0 editor:consolidate-selections (input.hidden-input)
     -0:06.4.0 core:cancel (input.hidden-input)
     -0:05.8.0 core:save (input.hidden-input)
     -0:04.1.0 vim-mode-plus:set-input-char-i (input.hidden-input)
     -0:03.3.0 script:close-view (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -0:03.3.0 vim-mode-plus:reset-normal-mode (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.6 
busy-signal 1.4.3 
cmetr 0.0.0 
cursor-history 0.12.0 
go-debug 1.5.2 
go-plus 5.6.0 
go-rename 0.3.0 
go-signature-statusbar 1.2.3 
hyperclick 0.1.5 
ide-go 0.4.0 
intentions 1.1.5 
keys-typed-tracker 2.1.1 
language-slim 1.0.0 
linter 2.2.0 
linter-ui-default 1.6.10 
project-manager 3.3.5 
script 3.17.3 
significant-other 0.4.0 
toggler 0.3.0 
vim-mode-plus 1.17.0 
wakatime 7.0.3 
t9md commented 6 years ago

Oh,, I might understand the cause.

Maybe this is similar to https://github.com/t9md/atom-vim-mode-plus/issues/922 ?

@shemerey Can you reproduce this 100%? then how? From my understanding this issue is exist from very older version.

shemerey commented 6 years ago

I've tried to do something like cs'`, and then it hit me with an error, I've got it twice. but now can't find the right sequence to reproduce. Will add here if find out how

t9md commented 6 years ago

You keyboard require TWO keystrokes to type ' or `?

shemerey commented 6 years ago

nope, it's regular macbook, USA keyboard layout, the only thing I have caps lock mapped to esc so can incidentally hit it,

t9md commented 6 years ago

OK, then I have no idea how to repro too.

shemerey commented 6 years ago

I'll update here if find out to way to reproduce. thx for your fast response and great work 👍

t9md commented 6 years ago

How do you think?

Following PR I sent was once merged, but reverted( wont fix decision = limitation ). Refs: https://github.com/atom/atom-keymap/issues/130