Home Download Buy Blog Forum Support

Misbehavior of `plugin_loaded` and `plugin_unloaded`

Misbehavior of `plugin_loaded` and `plugin_unloaded`

Postby schlamar on Mon Mar 11, 2013 10:45 am

Steps to reproduce:

1. Save a simple plugin in packages dir:

Code: Select all
def plugin_loaded():
    print ('x')



2. 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`.
schlamar
 
Posts: 46
Joined: Tue Feb 19, 2013 2:11 pm

Re: Misbehavior of `plugin_loaded` and `plugin_unloaded`

Postby bizoo on Mon Mar 11, 2013 12:03 pm

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.
bizoo
 
Posts: 740
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Misbehavior of `plugin_loaded` and `plugin_unloaded`

Postby schlamar on Mon Mar 11, 2013 2:27 pm

bizoo wrote:Restarting ST when you remove events from your plugin don't look like a big deal.

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 :)
schlamar
 
Posts: 46
Joined: Tue Feb 19, 2013 2:11 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 5 guests