Sublime Forum

Misbehavior of `plugin_loaded` and `plugin_unloaded`

#1

Steps to reproduce:

  1. Save a simple plugin in packages dir:

def plugin_loaded(): print ('x')

  1. Remove the plugin_loaded method and save the file again.

This prints โ€˜xโ€™ again in the console although this method was deleted.
Same issue with plugin_unloaded.

0 Likes

#2

Restart SublimeText.

Events are no automatically unregistered and it look like something not so trivial (which event belongs to which plugin source ?) .
Restarting ST when you remove events from your plugin donโ€™t look like a big deal.

0 Likes

#3

Yes, you are right. However, it depends on the implementation (as you already said). If it is a trivial thing to fix, he should do it :smile:

0 Likes