Skip to content
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

Errors appear on the line above of the actual error #28

Closed
NeatNit opened this issue Oct 14, 2016 · 2 comments
Closed

Errors appear on the line above of the actual error #28

NeatNit opened this issue Oct 14, 2016 · 2 comments

Comments

@NeatNit
Copy link

NeatNit commented Oct 14, 2016

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 =

screenshot


This issue is not present with most warnings I've tested - the exception is #29.

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

screenshot

@FPtje
Copy link
Owner

FPtje commented Oct 14, 2016

Whoops, marked the wrong issue in a commit.

0549222

@FPtje FPtje closed this as completed Oct 14, 2016
@FPtje
Copy link
Owner

FPtje commented Oct 14, 2016

https://github.com/FPtje/GLuaFixer/releases/tag/1.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants