reloading plugin ScopeHunter.scope_hunter
reloading Packages/ScopeHunter/scope_hunter.sublime-settings
reloading plugin ScopeHunter.scope_hunter_notify
Unhandled exception in thread started by <function sh_loop at 0x0000000004984488>
Traceback (most recent call last):
File "scope_hunter in C:\Users\Fichte\AppData\Roaming\Sublime Text 3\Installed Packages\ScopeHunter.sublime-package", line 629, in sh_loop
AttributeError: 'NoneType' object has no attribute 'ignore_all'
Edit: That only happens when disabling and enabling the plugin btw. You should close the sh_loop thread in plugin_unloaded.
Other than that it works fine. I’m just a bit annoyed by the verbosity, imo the information can be condensed quite some.
Edit2: Your usage of the global
keyword is also rather inconsistent. Sometimes you use it (when you don’t need to) and sometimes you don’t. You generally only need to use it when assigning to a non-local variable, reading will be forwarded upwards.
Edit3: In fact, I would prefer nonlocal
in pretty much all cases since you define the default value very early in the code and it’s a more defensive style of coding because trying to reference a non-existant nonlocal identifier raises while globaling one just creates it (and is not a great idea in general).