JunSuzukiJapan / atom-keyboard-macros-vim

MIT License
17 stars 7 forks source link

Uncaught TypeError: Cannot read property 'focus' of undefined #4

Open helarqjsc opened 8 years ago

helarqjsc commented 8 years ago

I typed "@" in vim mode, then switched to the settings page and this error appeared. It seems that it happens when you type "@" without the second letter and switch to settings.

Atom Version: 1.6.2 System: Windows 7 Thrown From: atom-keyboard-macros-vim package, v0.1.3

Stack Trace

Uncaught TypeError: Cannot read property 'focus' of undefined

At /C:/Users/shi/.atom/packages/atom-keyboard-macros-vim/lib/atom-keyboard-macros-vim.coffee:79

TypeError: Cannot read property 'focus' of undefined
    at Object.module.exports.AtomKeyboardMacrosVim.input (file:///C:/Users/shi/.atom/packages/atom-keyboard-macros-vim/lib/atom-keyboard-macros-vim.coffee:59:11)
    at HiddenInputViewModel.module.exports.HiddenInputViewModel.cancel (file:///C:/Users/shi/.atom/packages/atom-keyboard-macros-vim/lib/hidden-input-view-model.coffee:18:17)
    at hidden-input-view.HiddenInputView.cancel (file:///C:/Users/shi/.atom/packages/atom-keyboard-macros-vim/lib/hidden-input-view.coffee:43:16)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\src\command-registry.js:3:61
    at atom-pane.PaneElement.activeItemChanged (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\src\pane-element.js:152:25)
    at Function.module.exports.Emitter.simpleDispatch (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
    at Pane.module.exports.Pane.setActiveItem (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\src\pane.js:255:22)
    at Pane.module.exports.Pane.activateItem (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\src\pane.js:336:21)
    at atom-tabs.TabBarView.onMouseDown (C:\Users\shi\AppData\Local\atom\app-1.6.2\resources\app.asar\node_modules\tabs\lib\tab-bar-view.js:592:19)

Commands

     -0:15.7.0 atom-keyboard-macros.user:@ (atom-text-editor.editor.vim-mode.normal-mode)
  2x -0:15.7.0 blur (atom-text-editor.editor.vim-mode.normal-mode)
     -0:15.4.0 atom-keyboard-macros-vim:execute_macro_vim (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  4x -0:15.4.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:15.2.0 atom-keyboard-macros.user:@ (atom-text-editor.editor.vim-mode.normal-mode)
  2x -0:15.2.0 blur (atom-text-editor.editor.vim-mode.normal-mode)
     -0:15 atom-keyboard-macros-vim:execute_macro_vim (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  4x -0:15 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:14.5.0 atom-keyboard-macros.user:@ (atom-text-editor.editor.vim-mode.normal-mode)
  2x -0:14.5.0 blur (atom-text-editor.editor.vim-mode.normal-mode)
     -0:14.4.0 atom-keyboard-macros-vim:execute_macro_vim (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  4x -0:14.4.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:14.2.0 atom-keyboard-macros.user:@ (atom-text-editor.editor.vim-mode.normal-mode)
  2x -0:14.2.0 blur (atom-text-editor.editor.vim-mode.normal-mode)
     -0:13.8.0 atom-keyboard-macros-vim:execute_macro_vim (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  8x -0:13.8.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-keyboard-macros"
    ],
    "themes": [
      "atom-dark-ui",
      "solarized-light-syntax"
    ]
  }
}

Installed Packages

# User
atom-keyboard-macros-vim, v0.1.3
atom-ternjs, v0.13.2
emmet, v2.4.2
file-icons, v1.6.18
javascript-snippets, v1.2.1
line-ending-converter, v1.3.2
line-ending-selector-unix, v0.0.9
shadow, v0.1.0
Sublime-Style-Column-Selection, v1.5.1
vim-mode, v0.65.0

# Dev
No dev packages