Inkdrop v6 Vim not working

  • Platform: macOS
  • Platform version: 26.6
  • App Version: 6.0.0
  • Vim Plugin version: 3.1.4

Hi Takuya,
I just upgraded to v6 and after updating the plugins like vim I noticed that vim is not working.
Tried reinstalling a few times but the same issue

How to reproduce

  • Open inkdrop and notice the error in the corner

Error from console:

index-ClvIHGkz.js:201 app:error Notification: +5ms Failed to load the vim package Object
debug @ index-ClvIHGkz.js:201
index-ClvIHGkz.js:201 app:error /
/Users/sdo/Library/Application Support/inkdrop/packages/vim/node_modules/@replit/codemirror-vim-core/vim.js:41
export function initVim(CM) {
^^^^^^

SyntaxError: Failed to construct 'ContextifyScript': Unexpected token 'export'
    at makeContextifyScript (node:internal/vm:194:14)
    at wrapSafe (node:internal/modules/cjs/loader:1734:20)
    at Module._compile (node:internal/modules/cjs/loader:1811:20)
    at Object.value [as .js] (file:///Applications/Inkdrop.app/Contents/Resources/app.asar/renderer/assets/notebook-picker-skDvJAE5.js:20959:19)
    at Module.load (node:internal/modules/cjs/loader:1560:32)
    at Module._load (node:internal/modules/cjs/loader:1362:12)
    at c._load (node:electron/js2c/node_init:2:18060)
    at s._load (node:electron/js2c/renderer_init:2:36002)
    at wrapModuleLoad (node:internal/modules/cjs/loader:262:19)
    at Module.require (node:internal/modules/cjs/loader:1583:12)
    at require (node:internal/modules/helpers:153:16)
    at Object.<anonymous> (/Users/sdo/Library/Application Support/inkdrop/packages/vim/node_modules/@replit/codemirror-vim/dist/index.cjs:3:25)
    at Object.<anonymous> (/Users/sdo/Library/Application Support/inkdrop/packages/vim/node_modules/@replit/codemirror-vim/dist/index.cjs:1717:3)
    at Module._compile (node:internal/modules/cjs/loader:1838:14)
    at Object.value [as .js] (file:///Applications/Inkdrop.app/Contents/Resources/app.asar/renderer/assets/notebook-picker-skDvJAE5.js:20959:19)
    at Module.load (node:internal/modules/cjs/loader:1560:32)
    at Module._load (node:internal/modules/cjs/loader:1362:12)
    at c._load (node:electron/js2c/node_init:2:18060)
    at s._load (node:electron/js2c/renderer_init:2:36002)
    at wrapModuleLoad (node:internal/modules/cjs/loader:262:19)
    at Module.require (node:internal/modules/cjs/loader:1583:12)
    at require (node:internal/modules/helpers:153:16)
    at Object.<anonymous> (/Users/sdo/Library/Application Support/inkdrop/packages/vim/src/vim.js:1:177)
    at Object.<anonymous> (/Users/sdo/Library/Application Support/inkdrop/packages/vim/src/vim.js:120:3)
    at Module._compile (node:internal/modules/cjs/loader:1838:14)
    at Object.value [as .js] (file:///Applications/Inkdrop.app/Contents/Resources/app.asar/renderer/assets/notebook-picker-skDvJAE5.js:20959:19)
    at Module.load (node:internal/modules/cjs/loader:1560:32)
    at Module._load (node:internal/modules/cjs/loader:1362:12)
    at c._load (node:electron/js2c/node_init:2:18060)
    at s._load (node:electron/js2c/renderer_init:2:36002) +0ms
index-ClvIHGkz.js:201 app:warn [restoreAppState] The app state is already restored. +203ms
sessions.bugsnag.com/:1  Failed to load resource: net::ERR_CONNECTION_REFUSED

Hi @SDO ,

Thanks for reporting.
Oops, looks like a regression due to a new version of the dependency @replit/codemirror-vim. Will fix it!

vim@3.2.0 should fix it!

Thanks again for the report :raising_hands:

1 Like