Home Download Buy Blog Forum Support

Prevent plugins from overwriting Sublime built-in globals?

Prevent plugins from overwriting Sublime built-in globals?

Postby jburnett on Tue Aug 02, 2011 8:33 am

I just wrote a little plugin that will open a url that is under the current point. I simply named it "class open_url(sublime_plugin.TextCommand):"... all seemed to be working fine until I tried choosing Help > Documentation from the main menu, which no longer worked. Apparently my open_url command is overriding a built-in one of the same name.

Is there a good way to prevent this on my side, so I don't inadvertently smack other parts of Sublime in the future?

Thanks,
John
jburnett
 
Posts: 89
Joined: Wed Jul 27, 2011 9:23 pm

Re: Prevent plugins from overwriting Sublime built-in globals?

Postby lunixbochs on Tue Aug 02, 2011 10:30 pm

the sublime plugin loader could be modified to warn about two plugins with the same command name
lunixbochs
 
Posts: 91
Joined: Fri Oct 08, 2010 10:18 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests