I've just installed this for Sublime and this seems to be happening pretty consistently for me. Here is some test code:
function Hello(world)
print("The following line has a syntax error, but it's displayed on this line")
error("message", errorLevel = 1)
end
4 lines total, and line 3 contains an error. However, GLuaLint declares that the error is on line 2:
C:\Users\neatn\Documents>glualint throwaway_lint.lua
throwaway_lint.lua: [Error] line 2, column 32 - line 2, column 32: unexpected =
function Hello(world)
local unusedvar1
local unusedvar2
-- comment 1
// comment 2
local some_vec = Vector(0, 0+2, 0)
some_vec.x = some_vec.x +1
end
C:\Users\neatn\Documents>glualint throwaway_lint.lua
throwaway_lint.lua: [Warning] line 2, column 11 - line 2, column 21: Unused variable: unusedvar1
throwaway_lint.lua: [Warning] line 3, column 11 - line 3, column 21: Unused variable: unusedvar2
throwaway_lint.lua: [Warning] line 5, column 5 - line 5, column 17: Inconsistent use of '//' and '--'
throwaway_lint.lua: [Warning] line 5, column 17 - line 5, column 20: Inconsistent use of tabs and spaces for indentation
throwaway_lint.lua: [Warning] line 7, column 29 - line 7, column 31: Style: Please put some whitespace before the operator
throwaway_lint.lua: [Warning] line 8, column 26 - line 8, column 28: Style: Please put some whitespace after the operator