Home    |    GitHub Page    |    API    |    FAQ

Plugin development and Hot reload

Hello all!

First thanks for that amazing software and creating the plugin API, really exciting stuff.

I started diving into plugin development, so far so good, everything seems working fine on prerelease 1.4.11.

However, I noticed I had to manually reload the application (while Joplin development tools opened, click inside, and CTRL-R) to see my plugin changes.

Any idea or system on how to automate that into a hot-reload system similar to what we are used to in web development with tools like webpack?

Many thanks :slight_smile:

There's some info to hot reload the main app there: https://github.com/laurent22/joplin/blob/dev/BUILD.md#hot-reload

I guess you could add your plugin files to the list of watched files?

Ok, thanks for the suggestion, I took a look into it, seems the process right now still requires you to quit the app (CTRL-Q), I guess the best way so far is to continue manually CTRL-R the app after a change has been made

Keep in mind that the plugin system is not implemented with live reload in mind, so even if it mostly works there might be some strange issues or left-over state. Basically if something doesn't work as expected, quit and start the app again.

1 Like

Ok thanks for the precision, right now the CTRL-R seems to work fine, but I guess when I will go deeper, it might need a cleaner reload.