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
Setting the problem matcher with fileLocation: absolute works, but imo this should not be needed. I have the latest eslint version installed so $eslint-stylish should set this automatically.
The text was updated successfully, but these errors were encountered:
The default of the eslint-stylish matcher is fileLocation: "relative" since eslint stylish usually reports relative paths. @felixfbecker: could it be that you configured eslint to report absolute paths.
I don't know how and where I could have set that, but eslint has been reporting absolute paths for me as far as I can remember. What I don't get is why you don't just call path.resolve() on it. That would work with both.
I restested it and interestingly paths are now reported as absolute paths. I digged around a little and the reason is as follows: in the past the eslint-stylish reporter was optional (see https://github.com/sindresorhus/eslint-stylish) and reported relative paths. It is now part of eslint and reports paths absolute. I will keep the issue open to adopt that.
Regarding your suggestion: because we say output (not eslint) having a leading slash but not being absolute :-). The issue we have open is to have a setting automatic (using path.resolve) which would be the default. But it will not make it for Jan.
dbaeumer
changed the title
Cannot navigate to error from eslint error
ESLint - Stylish reporter now reports absolute paths.
Jan 25, 2016
dbaeumer
added
bug
Issue identified by VS Code Team member as probable bug
and removed
info-needed
Issue requires more information from poster
labels
Jan 25, 2016
Extracted from comment from @felixfbecker in issue #1420.
I have the exact same problem with eslint:
tasks.json:
Setting the problem matcher with fileLocation: absolute works, but imo this should not be needed. I have the latest eslint version installed so $eslint-stylish should set this automatically.
The text was updated successfully, but these errors were encountered: