Kronuz/SublimeLinter — Issue #97: JSHint highlighting is inconsistent
Author: TheSpyder
Created: 2012-02-08 01:30:29+00:00
State: open

I've just installed SublimeLinter and I'm consistently seeing a mismatch between the errors in JavaScript code and the underline indicating the exact location of the error. The correct line of code is outlined, but the underline is wrong.

I managed to get this screenshot of the popup, inline highlight and underline using three different values for the same error:
https://skitch.com/thespyder/g91hb/inconsistent-highlights

I've restarted Sublime a few times tweaking SublimeLinter configuration options, and now I can't even recreate that screenshot. When I try to use the popup I get an error in the Sublime console:

Traceback (most recent call last):
File "./SublimeLinter.py", line 761, in run_
File "./SublimeLinter.py", line 774, in lint_view
File "./SublimeLinter.py", line 133, in popup_error_list
IndexError: list index out of range

I'm using sublime build 2165, and the file I'm using to test in the screenshot is in the TinyMCE github project:
https://github.com/tinymce/tinymce/blob/master/jscripts/tiny_mce/classes/dom/DOMUtils.js