inkdropapp / inkdrop-vim

Provides Vim modal control for Inkdrop, blending the best of Vim and Inkdrop
https://www.inkdrop.app/
MIT License
99 stars 9 forks source link

Error when installing vim keybindings plugin on fresh install on macos #43

Closed jakemanger closed 1 year ago

jakemanger commented 1 year ago

I encounter this error when installing the vim keybindings:

image

Here's my inkdrop version:

image

Do you know what the problem is?

craftzdog commented 1 year ago

Have you installed other plugins? What is the callstack of the error in Developer Tools Console?

jakemanger commented 1 year ago

No, this is a fresh install on a new m2 macbook pro. Here's the developer tools console output after starting inkdrop:

image image
craftzdog commented 1 year ago

Thanks for the information. It looks like the plugin fails to load the CodeMirror module, which is strange. v5.5.3 has been stable and I haven't ever got such an error report from other people so far. You are on M2 MacBook. Have you installed the binary for Apple Silicon (not Intel)?

jakemanger commented 1 year ago

Yes, I am using the Apple Silicon arm64 binary and also just tried version 5.5.2 (by changing the numbers in the download link) with no change in behaviour. I also tried installing from ipm, however it still causes the same error. I have actually used codemirror on my own projects before. Is there a chance that inkdrop is sharing the version of codemirror that I'm using or any other npm packages? Is there a older or newer version of inkdrop I could try?

PS: thanks for the help. I really love your videos and desperately want vim mode in inkdrop because I too am so used to the keybindings when moving around. Without it I end up with a bunch of ":wq" and "kkkjjjkjjk" in my documents 😅

craftzdog commented 1 year ago

Gotcha. You should have CodeMirror globally installed in the PATH! Try npm uninstall -g codemirror or something like that.

yes, it's an essential plugin for me as well lol

jakemanger commented 1 year ago

Yay! that fixed it 😃 Thanks for the help