-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
no-unused-modules
appveyor tests failing
#1317
Comments
I will look into this the next 2-3 days. |
I was able to identify the problem for the failing tests. In line 465 I'm using On macOS, the values in this field are looking like this: instead of Printing |
I wonder if that reflects an issue in the code setting the value then - not sure whether that’s ours or eslint itself. |
I could imagine that this is just the normal behavior on Windows systems, as all these systems are using the backslash instead the slash in the file path. So the value itself is a valid file path on Windows systems. Only JS doesn't like the backslashes in it when passing around the value. A solution for this problem could be to use the |
@rfermann thanks for the fix; it'd be great tho to try to track down why there's a difference and fix that - possibly in eslint itself. |
I digged into that a bit. It seems, that this behavior is coming from the parser, not eslint itself. Babel-eslint is giving back the path in the same format on macOS and Windows (with slashes instead of backslashes), while espree is giving back different formats. I haven't yet found the code causing this behavior, but I will stay on it. |
Thanks, that’s great - filing an espree issue once you can repro it would be awesome. |
cc @rfermann
There's some appveyor tests failing due to #1142: https://ci.appveyor.com/project/benmosher/eslint-plugin-import/builds/23488849
What's particularly confusing is that a) they pass on travis and locally; b) one of the test cases is listed, identically, as both valid and invalid, so it shouldn't pass at all; there shouldn't be any filesystem impact, which means it shouldn't be failing on windows.
We need to get this fixed ASAP.
The text was updated successfully, but these errors were encountered: