You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been a while, though, and maybe that's not as useful, and error.character could be more useful, or at least useful when error.evidence isn't useful? It would be good if JSHint ranges could be more than one column wide so that we can highlight the whole problem.
Would love to see any pull request on this, especially if it works with error ranges that are more than one character wide.
So, it is the problem with test case.
If error.evidence is used to provide an error report, the range should be [ { ofs : 31, row : 3, col : 0 }, { ofs : 46, row : 3, col : 15 } ],
because the evidence begins from col 0 and ends in col 15.
Activity
spacewander commentedon Dec 26, 2014
Hey, I have played with aether recently.
And I find out that, if the code in
aether/src/problems.coffee#extractTranspileErrorDetailschanges fromto
This test can pass.
It looks like that this test is written according to the report of jshint.
The default reporter of jshint use
characterattribute to locate error.Will anyone tell me what
error.evidenceis used for?nwinter commentedon Dec 27, 2014
Hi @spacewander! I think
error.evidenceis supposed to be a substring of the code that triggered the error; I see it here:https://github.com/jshint/jshint/blob/ffe087c07d601228e95afa701a33a25675142566/src/jshint.js#L372
It's been a while, though, and maybe that's not as useful, and
error.charactercould be more useful, or at least useful whenerror.evidenceisn't useful? It would be good if JSHint ranges could be more than one column wide so that we can highlight the whole problem.Would love to see any pull request on this, especially if it works with error ranges that are more than one character wide.
spacewander commentedon Dec 28, 2014
So, it is the problem with test case.
If
error.evidenceis used to provide an error report, the range should be[ { ofs : 31, row : 3, col : 0 }, { ofs : 46, row : 3, col : 15 } ],because the
evidencebegins from col 0 and ends in col 15.nwinter commentedon Dec 28, 2014
Ah, that makes sense, then! Do you want to submit a pull request with a fixed version of this test, or should I take care of it?
Merge pull request #130 from spacewander/master