Does not work showHint since v5.6.0

Bug report

I’ve developed Inkdrop plugins inkdrop-pomodoro-edit using the CodeMirror.showHint feature. However, starting from Inkdrop version 5.6.0, I encountered an error that says, “Cannot find module ‘/Applications/Inkdrop.app/Contents/Resources/app.asar/node_modules/codemirror/addon/hint/show-hint’.” It seems that the new version of Inkdrop does not support the addon/hint feature. Should I consider an alternative approach to using CodeMirror.showHint in this case?

Environment

  • Platform: macOS
  • Platform version: Ventura 13.1
  • App Version: 5.6.0

How to reproduce

  1. startup Inkdrop v5.6.0

Hi Seito-san,

Thanks for the report!
The way to bundle the modules has been changed to improve the launch speed as of v5.6.0.
The addons are still available in the app.
Can you try the following instead?

require('codemirror/addon/hint/show-hint')
1 Like

Thank you Takuya, it worked!

1 Like