Sublime Forum

Disable Cache in development


I am developing a plugin for Sublime Text 4 but every time I do a change to the plugin is required to close and open again the sublime text 4 window. How can I disable this?



Plugins should hot reload when changed. Can you provide more details as to what you’re doing?



Note that only python files at the root of any folder in Packages directory will be hot reloaded on save. If your plugin code is in a sub folders and you are importing it to a top level python file, then such packages will not show immediate effects on save. Either you need to construct your own reloading using importlib module or use a package like AutomaticPackageReloader that will reload an entire package whenever any source files in it are saved and thus save you the trouble of having to restart ST.

1 Like