Closed Shelagh-Lewins closed 3 years ago
Try restarting Sublime and running “JS Custom: Rebuild Syntaxes” from the command palette.
Thank you, that seems to have done the trick!
Glad to hear it!
I'm not sure why it had to be uninstalled and reinstalled in the first place. Probably because it needed a newer version, but I'd think PC would just upgrade instead. Maybe it doesn't want to do an upgrade if the existing version is invalid because the package might run code during the upgrade event, and for an invalid version that could be problematic.
When it reinstalled, it couldn't find the yaml_macros_engine
dependency. Presumably this dependency was uninstalled and reinstalled with JS Custom. Ordinarily, dependencies aren't loaded until restart (which is annoying), but JS Custom runs code on load to manually load its own dependencies if needed. Apparently it didn't work here. In your log, the dependency load notification is after the error, which implies that PC didn't even install yaml_macros_engine
until after it tried to load JS Custom. That seems wrong. I haven't seen this exact issue before, so maybe the order of operations is wonky in this specific case. I probably can't work around that (if the dependency isn't installed, it isn't installed) but it might be possible to improve the error handling. I most likely won't bother because a) this only seems to be possible in this really specific situation, b) no one else has reported running into it, c) error handling code here would be a pain to test, d) the user-side fix is easy, and e) at some point JS Custom will be moving to the 3.8 runtime anyway and all this could be moot.
Upgrading Sublime Text seems to have broken your beautiful plugin.
I just upgraded from ST3 to build 4107 on Linux mint. This seems to be the first stable release of ST4?
ST complained that JS Custom needed to be uninistalled and reinstalled, so I did that using Package Control.
I am seeing this error in the console:
When Sublime Text opens, a popup appears saying that there is an error loading syntax file, unable to read TypeSciprt(JSX).sublime-syntax.
So, JS Custom is installed, but is not reading the syntax files?
I'm not sure if the issues are with JS Custom, or ST4 itself; Package Control is very slow and unreliable for me in the new version.