Open drubenstein opened 6 years ago
@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
)i
to reproduce issue. See how Atom recognized i
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
I also got the same problem on Windows 11 as soon as I hit i
or a
to get into insert mode. Maybe because I didn't use the apm
package installer (seems no longer available?), but manually unzipped the downloaded files into Atom's packages
folder?
Uncaught Error: Cannot find module 'underscore-plus' Require stack:
C:\Users\hobbes3.atom\packages\atom-vim-mode-plus-master\lib\pair-finder.js
C:\Users\hobbes3.atom\packages\atom-vim-mode-plus-master\lib\text-object.js
C:\Users\hobbes3.atom\packages\atom-vim-mode-plus-master\lib\base.js
C:\Users\hobbes3.atom\packages\atom-vim-mode-plus-master\lib\operation-stack.js
C:\Users\hobbes3.atom\packages\atom-vim-mode-plus-master\lib\vim-state.js
C:\Users\hobbes3.atom\packages\atom-vim-mode-plus-master\lib\main.js
C:\Programs\Atom\resources\app.asar\static\index.html
C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\operation-stack.js:164
[Hide Stack Trace](https://github.com/t9md/atom-vim-mode-plus/issues/999#)
Error: Cannot find module 'underscore-plus'
Require stack:
- C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\pair-finder.js
- C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\text-object.js
- C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\base.js
- C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\operation-stack.js
- C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\vim-state.js
- C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\main.js
- C:\Programs\Atom\resources\app.asar\static\index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
at Function.get_Module._resolveFilename (C:\Programs\Atom\resources\app\static\<embedded>:11:157942)
at Module.require (file:///C:/Programs/Atom/resources/app.asar/static/index.js:61:43)
at require (C:\Programs\Atom\resources\app\static\<embedded>:11:149229)
at Object.<anonymous> (C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\pair-finder.js:4:35)
at Object.<anonymous> (C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\pair-finder.js:276:3)
at Module.get_Module._compile (C:\Programs\Atom\resources\app\static\<embedded>:11:149913)
at Object.value [as .js] (C:\Programs\Atom\resources\app\static\<embedded>:11:153507)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (file:///C:/Programs/Atom/resources/app.asar/static/index.js:72:46)
at require (C:\Programs\Atom\resources\app\static\<embedded>:11:149229)
at Object.<anonymous> (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/text-object.js:9:20)
at Object.<anonymous> (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/text-object.js:1013:2)
at Module.get_Module._compile (C:\Programs\Atom\resources\app\static\<embedded>:11:149913)
at Object.value [as .js] (C:\Programs\Atom\resources\app\static\<embedded>:11:153507)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (file:///C:/Programs/Atom/resources/app.asar/static/index.js:72:46)
at require (C:\Programs\Atom\resources\app\static\<embedded>:11:149229)
at Function.getClass (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/base.js:209:21)
at Function.getInstance (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/base.js:224:56)
at InsertAfter.getInstance (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/base.js:92:29)
at InsertAfter.initialize (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/operator.js:139:27)
at InsertAfter.initialize (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/operator-insert.js:10:29)
at Function.getInstance (file:///C:/Users/hobbes3/.atom/packages/atom-vim-mode-plus-master/lib/base.js:227:12)
at OperationStack.run (C:\Users\hobbes3\.atom\packages\atom-vim-mode-plus-master\lib\operation-stack.js:95:26)
The error was thrown from the [vim-mode-plus package](https://github.com/t9md/atom-vim-mode-plus).
[Enter steps to reproduce:]
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'
Commands
Non-Core Packages
Check list
You have to check all before open issue.
atom --version
), vim-mode-plus version, and OS version(e.g. macOS Sierra 10.12.3).