-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error rewriting command sublime_linter_remove_panel. Encountered infinite loop #1906
Comments
Yeah, I reported that on discord for v4149. It also has a ticket now sublimehq/sublime_text#5978 |
👍 I'll close this here. Thanks. |
So the warning is misleading, as I've pointed out in my issue, but it's still potentially an issue in SL's code. The issue being that triggering a (Window) command directly from So if triggering this command on |
We call it in |
We can wait and see how the ST issue gets resolved but as of now, the mentioned command does nothing on ST start. Whether it's an issue for SL or not is another matter but if it's always gonna be triggering warning on start then it won't be ideal. |
BTW. I've fixed similar issue in LSP (sublimelsp/LSP#2277) by not relying on executing a command (which in our case looked like a hack to workaround access issues anyway) and instead executing code normally (calling it). |
Can you extract the code inside the command so that it can be called directly from plugin_loaded without having to call the command? |
Sure I can inline. The reason this is in a command is the added decoupling and to let Sublime Text decide if it actually runs the command. That |
This is the danger of uses undocumented behaviour. It always bites you on the ass in the end. |
Well, everything is undocumented in Sublime land, at least when it comes to these runtime aspects. But I think it is fundamental, that you can write I really like the ST runtime aspects, the task scheduler (
but this has the problem that Now I'm getting really chatty 😀 |
In the Sublime Text build 4150 I'm the following error in the console:
SublimeLinter seems to be working fine so far so I don't know what exactly has broken, if anything.
The text was updated successfully, but these errors were encountered: