Quote:
I think you might have the default luacheker set as a linter for SublimeLinter instead of my special globalfinder linter script: Go to Tools -> SublimeLinter -> Toggle Linter then enable globalfinder and disable luacheck. I might forgot to include this step from the how to set up the linter. :P |
Quote:
Okay, guess it works. Reset everything to default. Now, how do we handle it if we do not wanna cache a global? In Atom with "mikk's FindGlobals script" linter we could just run -- GLOBALS: GLOBANAME and it would stop reporting it. |
Quote:
|
Quote:
|
Quote:
Lua Code:
This will ignore math and string globals. |
Pushed a full update for 7.3.0.
|
|
Any chance this could be added to package control? I believe it was previously included, so you may just need to update the repo url.
Also, by including luacheck in the package, this causes anyone who already had lua and luacheck installed to get two notifications per error. It may be better to have that feature split into a separate package. It would be good for those like myself who already have luacheck installed on a system level, and just want the wow specific stuff. It's also good for those who don't want the syntax stuff, but are looking global checker without having to install lua, etc. |
Quote:
https://packagecontrol.io/packages/WoW%20Development You can toggle SublimeLinter by linters, if you disable the global finder linter, then you should only get the luacheck results. (aka only one global errors per line) Open the command panel (cltr+shift+p) and search for toggle linter: But moving the Linter/GlobalFinder/SyntaxHighlighter into a different projects are also could be better. |
Quote:
|
Quote:
|
Yeah that did it.
|
Updated for 7.3.5.
|
Not sure if Resike is still on this project, but any advice on how I should set path of WoW Global Finder for portable version of Sublime Text 3?
So, basically Sublime Text Build 3143 x64 is a top folder and WoW Global Finder is located in Sublime Text Build 3143 x64\Data\Packages\WoWDevelopment\WoW Global Finder. I tried the following, but it doesn't seem to be a right syntax :( Code:
// SublimeLinter Settings - User |
You need to use the full path with driver letters and everything which points to your packages folder, i'm not exactly sure what would that be on a portable version, but you should see the packages folder when you open Preferences -> Browse Packages in Sublime.
|
Quote:
C:\Users\<UserName>\Desktop\Sublime Text Build 3143 x64\Data\Packages\WoWDevelopment\WoW Global Finder (It's currently placed on Desktop as you can see) and I guess that's the main problem here. Since it's a portable version, the driver and its root folder would possibly change for each different PCs if I place it on my USB. Of course, I could change the path whenever it does not match, but I'm guessing that there must be a way to solve this issue either by SublimeLinter or Sublime Text 3, itself. |
You could just copy the luacheck.exe into one of your system PATH environment folders where you have write access, for example: "c:\windows\system32". Or if you can edit the system PATH variable adding any folder that contains luacheck.exe. Then Windows should find the exe with no issues.
Also since SublimeLinter 4 got updated the info about making the linter work at the GitHub page is outdated, gonna update it for SL4 too sometime. |
Did a major update for 8.1.5, almost everything is covered (Widget support is not full) using the proper Lua syntax based on this:
https://www.lua.org/manual/5.3/manual.html#9 The new system makes loading times around 10 times faster.
Available: Directly from Sublime's package control. (release versions only) Or from GitHub: https://github.com/Resike/WoWDevelopment |
I've done all of the steps and I've gotten it working... mostly. However, it seems to scream at every single variable as undefined. "globalfinder: W113 - accessing undefined variable 'table'". Is this expected to happen? The only part of the instructions I was unable to execute was "In Sublime Tools -> SublimeLinter -> Toggle Linter then enable globalfinder and disable any other installed linters.". I'm guessing it's for an older version of Sublime as I'm not finding Sublime Tools. Bringing up the overlay I only have "Toggle highlights" and no "Toggle Linter", nor globalfinder. Any insight?
|
Quote:
Then you can enable/disable linters there and call them with custom parameters: If you would like to customize which warnings/errors you want to show/hide with the linter, then i suggest you to install SublimeLinter-luacheck, and you can enable that linter after you disable the globalfinder one and filter stuff for your needs. You can read more about the command line arg options here: https://luacheck.readthedocs.io/en/s...d-line-options And exclude different warning codes with the `--only [XXX,YYY,ZZZ,...]` argument based on these codes: https://luacheck.readthedocs.io/en/stable/warnings.html You can also create a `.luacheckrc` file that you can put into your project folder, then the linter will always load those settings for that particular project: https://luacheck.readthedocs.io/en/stable/config.html |
All times are GMT -6. The time now is 09:58 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI