Quantcast WoWInterface - View Single Post - WoWDevelopment Sublime Package
View Single Post
07-05-19, 03:33 PM   #60
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,289
Originally Posted by Aeriez View Post
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?
The SublimeLinter got rewritten and there are no GUI menu anymore, you can access their linter settings at Preferences -> Package Settings -> SublimeLinter -> Settings

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

Last edited by Resike : 07-05-19 at 03:49 PM.
  Reply With Quote