You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Error rewriting command X. Encountered infinite loop warning triggers when a WindowCommand is triggered directly from plugin_loaded hook. It's not actually an infinite loop case so the warning should be more relevant in this case.
Also would be good to mention this "limitation" in the docs.
Yeah, some note about that in the docs would be good. I suppose many current packages assume that it's fine to just use the whole API from plugin_loaded as even the name of the event implies that things are ready.
There's also the matter of fact that the plugin_loaded is triggered sequentially for each plugin so there can be issues if one plugin synchronously relies on another that loads later.
Description of the bug
The
Error rewriting command X. Encountered infinite loop
warning triggers when a WindowCommand is triggered directly fromplugin_loaded
hook. It's not actually an infinite loop case so the warning should be more relevant in this case.Also would be good to mention this "limitation" in the docs.
Steps to reproduce
Expected behavior
No warning or a more relevant warning
Actual behavior
Error rewriting command select_color_scheme. Encountered infinite loop
Sublime Text build number
4150
Operating system & version
macOS
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
No response
The text was updated successfully, but these errors were encountered: