Closed juandopazo closed 10 years ago
what exactly is the problem with the noise? I mean what sort of messages do you see
Notmally it wouldn't be a problem, but our team has developers using both OSX and Windows so every time a Windows developers builds YUI it adds a lot of noise to the diffs.
The fix seems to be just splitting lines with /\r?\n/ in the instrumenter part that creates the lines array. I'll send a pull request once I'm sure that's the correct fix.
Juan
Thank you!!!
Available in v0.1.46
@gotwarlost,
It appears this fix didn't actually fix the problem. I still see a lot of \r
noise in the coverage files. I'm using yogi to help generate these coverage files.
However, I reverted back to istanbul v0.1.37, applied the fix seen here: https://github.com/gotwarlost/istanbul/blob/bec0e4b2cce51c75043e6a95c0151dc253894636/lib/instrumenter.js#L497 and the problem magically fixed itself.
It's possible yogi is reintroducing the new \r
s for v0.1.46, but that doesn't seem to be the case for v0.1.37.
Hi,
Istanbul is introducing a
\r
string in the resulting coverage files on Windows. This is making YUI users on Windows introduce noise during builds.Steps to reproduce this:
source-file.js
Intrumenter/build-file.js
windows-result.js
/cc @davglass @reid