atom-vim-mode-plus
atom-vim-mode-plus copied to clipboard
When attempting insert with[i] stacktrace appears saying no underscore-plus found
[Enter steps to reproduce:]
- Open Atom
- Start new document
- Use the i key to insert text. The stacktrace appears. If an alphanumeric key is hit before the i then vim-mode-plus recognizes the i an insert and you can move forward.
Also note the underscore-plus1.6.6 package is installed and enabled
Atom: 1.22.1 x64 Electron: 1.6.15 OS: "Red Hat Thrown From: vim-mode-plus package 1.24.0
Stack Trace
Uncaught Error: Cannot find module 'underscore-plus'
At /home/users/XXXX/.atom/packages/atom-vim-mode-plus-1.24.0/lib/operation-stack.js:151
Error: Cannot find module 'underscore-plus'
at Module._resolveFilename (module.js:470:15)
at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:354:58)
at Module.require (/app.asar/static/index.js:40:43)
at require (/usr/share/atom/resources/app/src/native-compile-cache.js:66:33)
at /packages/atom-vim-mode-plus-1.24.0/lib/pair-finder.js:9:35)
at /packages/atom-vim-mode-plus-1.24.0/lib/pair-finder.js:281:3)
at Module.get_Module._compile (/usr/share/atom/resources/app/src/native-compile-cache.js:106:36)
at Object.value [as .js] (/usr/share/atom/resources/app/src/compile-cache.js:239:29)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (/app.asar/static/index.js:47:45)
at require (/usr/share/atom/resources/app/src/native-compile-cache.js:66:33)
at /packages/atom-vim-mode-plus-1.24.0/lib/text-object.js:9:20)
at /packages/atom-vim-mode-plus-1.24.0/lib/text-object.js:876:2)
at Module.get_Module._compile (/usr/share/atom/resources/app/src/native-compile-cache.js:106:36)
at Object.value [as .js] (/usr/share/atom/resources/app/src/compile-cache.js:239:29)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (/app.asar/static/index.js:47:45)
at require (/usr/share/atom/resources/app/src/native-compile-cache.js:66:33)
at Function.getClass (/packages/atom-vim-mode-plus-1.24.0/lib/base.js:203:21)
at Function.getInstance (/packages/atom-vim-mode-plus-1.24.0/lib/base.js:214:56)
at ActivateInsertMode.getInstance (/packages/atom-vim-mode-plus-1.24.0/lib/base.js:86:29)
at ActivateInsertMode.initialize (/packages/atom-vim-mode-plus-1.22.1/lib/operator.js:138:27)
at Function.getInstance (/packages/atom-vim-mode-plus-1.24.0/lib/base.js:217:12)
at OperationStack.run (/packages/atom-vim-mode-plus-1.24.0/lib/operation-stack.js:86:26)
at /packages/atom-vim-mode-plus-1.24.0/lib/vim-state.js:67:45)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:381:36)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:3:65)
Commands
-0:22 core:save (input.hidden-input)
-0:16.9.0 application:new-file (ul.list-inline.tab-bar.inset-panel)
-0:15.8.0 vim-mode-plus:till-backwards (input.hidden-input)
-0:15.5.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
-0:15.4.0 vim-mode-plus:substitute (input.hidden-input)
8x -0:14.4.0 core:backspace (input.hidden-input)
-0:09.4.0 vim-mode-plus:activate-normal-mode (input.hidden-input)
2x -0:09.2.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
3x -0:08.7.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
-0:07.9.0 vim-mode-plus:move-right (input.hidden-input)
-0:07.5.0 vim-mode-plus:insert-after (input.hidden-input)
-0:07.4.0 vim-mode-plus:substitute (input.hidden-input)
Non-Core Packages
vim-mode-plus 1.24.0
vim-mode-plus 1.24.0
Check list
You have to check all before open issue.
- [x ] Try with latest Atom and latest vim-mode-plus.
- [x] Pick descriptive and non-ambiguous subject
- [x] Express "what" you want(feature? config option?, behavior change?) in short sentence(not long!).
- [x] Contrast current behavior if you want to change current behavior, with sample text, operation(keystroke) and result.
- [x] Include real use case so that maintainer can understand "why" you need help.
- [x] Include Atom(
atom --version
), vim-mode-plus version, and OS version(e.g. macOS Sierra 10.12.3). - [x] If keybinding issue, Read https://github.com/t9md/atom-vim-mode-plus/wiki/IssueReport#some-keybinding-not-working
@drubenstein
Let me ask some questions.
Can you reproduce it always?
Your Commands log bellow seem to not exactly how explained in repro steps.
start atom then open empty buffer then i
is enough repro steps?
-0:22 core:save (input.hidden-input)
-0:16.9.0 application:new-file (ul.list-inline.tab-bar.inset-panel)
-0:15.8.0 vim-mode-plus:till-backwards (input.hidden-input)
-0:15.5.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
-0:15.4.0 vim-mode-plus:substitute (input.hidden-input)
8x -0:14.4.0 core:backspace (input.hidden-input)
-0:09.4.0 vim-mode-plus:activate-normal-mode (input.hidden-input)
2x -0:09.2.0 vim-mode-plus:reset-normal-mode (input.hidden-input)
3x -0:08.7.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
-0:07.9.0 vim-mode-plus:move-right (input.hidden-input)
-0:07.5.0 vim-mode-plus:insert-after (input.hidden-input)
-0:07.4.0 vim-mode-plus:substitute (input.hidden-input)
Btw I couldn't reproduce it. Maybe because I'm macOS user.
Even if it's bug, I still can't understand what kind of bug affect module loading?
Can you investigate how Atom recognize your first i
, by
-
ctrl-.
(key-binding-resolver:toggle
) - Then type
i
to reproduce issue. See how Atom recognizedi
keystroke by observing output of keybinding-resolver.
vim-mode-plus:activate-insert-mode atom-test-editor-vim-mode-plus.normal-mode /home/users/XXXX/.atom/packages/atom-vim-mode-plus-1.24.0/keymaps-mode-plus.cson