Sublime-JSHint icon indicating copy to clipboard operation
Sublime-JSHint copied to clipboard

Reporting the wrong line number

Open alvarotrigo opened this issue 10 years ago • 2 comments

After adding the 'use strict'; to avoid warning messages from jshitn, it's reporting the wrong line number for the error and highlighting a line which has nothing to do with the error.

For example:

Getting this error:

Column 52, use !== to compare with ''.

In this line:

 li += '<div class="fp-tooltip ' + options.navigationPosition + '">' + tooltip + '</div>';

Or

Column 34; Expected an asignment or function call and isntead saw an expression

In a comment line.

I'm using Sublime 3.

alvarotrigo avatar Feb 25 '15 13:02 alvarotrigo

Can you post a reduced test case? I can't reproduce this.

victorporof avatar Mar 02 '15 14:03 victorporof

Strange, same issue 2 years later. I have tooltips turned on in Sublimelinter and it reports the incorrect line (1 line before). I'm using Material Theme, but that should not make a difference.

screen shot 2017-04-24 at 3 56 50 pm

camloken avatar Apr 24 '17 22:04 camloken