I don’t know when, and I don’t how, that all my sublime text plugins (and LSP plugins) will stop working.
Restarting sublime text will make all the plugins work until some time.
Can someone give me some clues about this phenomenon?
These plugins are listeners like the following
class Xuhi(sublime_plugin.EventListener):
def on_activated(self, view):
if view_isvalid(view):
self.check_zh(view)
def on_selection_modified_async(self, view):
if view_isvalid(view):
self.check_zh(view)
def check_zh(self, view):
if IS_CHECK_ZH:
view.set_status("3_status_check_zh", f"ZH+")
part_zh(view, True)
else:
view.set_status("3_status_check_zh", f"ZH-")
part_zh(view, False)
There is no clue in the console except the following message
...
Unable to open clipboard
Unable to open clipboard
Unable to open clipboard
Unable to open clipboard