-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Files reported twice with different case #269
Comments
Any insight as to where to begin? Is this a bug with |
Hm. Does this still happen with nyc 7.x.x? What Node.js version are you using? (If v6: does this happen with pre-v6 versions, too?) |
Let me update |
I just tried with both inlineSourceMaps and individual sourcemaps. Both display the same result. And the sourcemaps use relative paths. |
It’s a long shot, but it really might be worth trying this out with Node v4. There have been changes to |
I'll test it out with older versions of node and report back. Thanks for the tip! |
Well, I have no idea what was causing that:
It was probably just I'll re-open if it occurs again. Thanks for your suggestions! |
Well, it just re-appeared. First within the terminal of Visual Studio Code, and now also appearing in the regular |
From @JaKXz, on jimbuck/bio-sim#2:
Nope, that did not seem to help. |
So after trying a few different tricks, I think I've found a working solution after updating to the latest version of In the end: did the trick for me. Closing this once and for all. If the issue happens again I will dig deeper first. |
I've done some research, and this is definitely a bug, but where the bug exists depends on your perspective. Summary of the Issue: On Windows files are being reported twice, with duplicates having zero coverage. This only occurs when the Within If you do specify the Within external dependencies: The first is The second possible offender is Within Node.js
The basic gist is that things aren't consistent with Node.js on Windows. Conclusion: I will create the PR and we can discuss it's validity further. |
Aaaah, right, nodejs/node#6624 was what I had in mind… thanks for the digging! |
@JimmyBoh great digging! sounds like something that would be worth patching in Node itself potentially -- the danger with istanbul getting overly creative, e.g., down-casing, is that it could break case-sensitive file-systems. Let's keep this open and track nodejs/node#6624 |
@bcoe Thanks! I agree that this should be patched on Node itself, but it seems like they are hesitant to change it for backwards compat. My change doesn't force any particular case, just overrides the provided absolute path to use the internally specified path ( Either way, I'm just glad I figured it out. The only "downside" to not using |
I created a yeoman generator that creates Typescript projects with support for
nyc
andava
out of the box. Below is the output I am receiving when trying to get the coverage results (runnpm test
orgulp coverage
):The same thing also happens when opening an lcov report in the browser. See this project as the current example. It is currently reporting a lowercase
c:\
path and an uppercaseC:\
path.You can install the template with
npm i -g generator-jb-module
.The text was updated successfully, but these errors were encountered: