-
Notifications
You must be signed in to change notification settings - Fork 11
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
SublimeLinter: syntax_map has been Deprecated #17
Comments
Hmm, that's odd. LuaExtended should be compatible with SublimeLinter. |
As @InternetUnexplorer said, LuaExtended should be fully compatible with SublimeLinter (there are literally no opportunities for clashes between the two packages, as far as we know). To be able to fix the issue, we first need to find out what exactly is going on. Would you mind sharing a bit more information? Notably what SublimeLinter plugins are you using, which files did you try to open (does linting fail with Lua files only or does LuaExtended also break the linters for other languages?), whether Sublime Text crashes or shows any errors in dialogues or in the console, and whether you've followed the linked instructions for linters. My best guess is you meant to say that Lua files aren't linted after installing LuaExtended - note that our package takes precedence over the stock Lua syntax (so |
@zwtderek1986 thanks for the clarification. From the error message, it appears that LuaExtended is not the issue here. SublimeLinter-luacheck can't seem to find the luacheck executable. Please make sure that luacheck is in your path and the linter has access to it. If you still think LuaExtended is the cause, try uninstalling it and opening a Lua source file again. I suspect the error will persist. I'll verify this myself once I find a bit of spare time, I have an exam on linear algebra tomorrow. |
@viluon After uninstalling the LuaExtended, Sublimelluacheck runs normally. I tested the problem before committing the bug. I hope this problem can be solved as soon as possible. LuaExtended is a great plug-in! Besides, I hope you take a good exam! The error was that the sublimelinter-luacheck was not set. I deleted the sublimelinter-luacheck. The sublimelinter-lua does fail after installing the LuaExtended, and the sublimelinter-lua works fine after uninstalling the LuaExtended! |
Thank you @zwtderek1986! Now then, this is very peculiar. I'm starting my own investigation into what is causing this right now. I will update on my progress here once I find out more. EDIT: Also, pardon me for being so dismissive before. I did not expect this to be a major bug. |
Bug ConfirmedHappens with SublimeLinter-lua but not with SublimeLinter-luacheck. Cause IdentifiedSublimeLinter-luacheck has native support for LuaExtended -- something I was not aware of! Very cool 😍 This is why the bug may not be apparent to all users. The cause of the issue seems to be a change in SublimeLinter 4.0, which moved from using names for syntax definitions to scope selectors. While this change is wonderful, SL plugins now seem to disregard the From the new default settings file for SublimeLinter: // DEPRECATED: use the selector linter setting instead:
// http://www.sublimelinter.com/en/stable/linter_settings.html#selector
// ...
"syntax_map": {
...
}, Workaround FoundScope selectors can be overridden per-plugin. This is a temporary fix to enable LuaExtended linting everywhere. Temporary SolutionAdd a "linters" section to your SublimeLinter settings, if it doesn't have one already. Then configure the linters of your choice like so: "linters": {
// for SublimeLinter-lua
"lua": {
"selector": "source.lua, source.luae"
},
// for SublimeLinter-someotherlinter
"someotherlinter": {
"selector": "source.lua, source.luae"
},
}, Resolution is
|
😍Great. I'm looking forward to solving this problem. Also hope LuaExtended gets better! |
@zwtderek1986 Yes, there is! I don't know why they aren't showing up for you, however 🤔 They work for me, but I can't provide a screenshot due to technical reasons. Would you mind opening another issue? |
ok |
After installing and setting LuaExtended, SublimeLinter can not work properly and lose detection capability.
The text was updated successfully, but these errors were encountered: