Home Download Buy Blog Forum Support

Maximum recursion depth breaks plugins?

Maximum recursion depth breaks plugins?

Postby adzenith on Thu Feb 10, 2011 4:10 am

I wrote a crappy plugin that recursed too far, but it seemed that it took the plugin system down with it. This happened:
Code: Select all
RuntimeError: maximum recursion depth exceeded while calling a Python object

And now I get messages like this until I restart Sublime Text:
Code: Select all
AttributeError: 'module' object has no attribute 'on_post_save'
AttributeError: 'module' object has no attribute 'reload_plugin'
AttributeError: 'module' object has no attribute 'create_application_commands'
AttributeError: 'module' object has no attribute 'create_text_commands'


repro:
Code: Select all
import sublime_plugin
class RecursiveListener(sublime_plugin.EventListener):
  def on_modified(self, view):
    view.run_command('repeat')
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 15 guests