-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix some issues with newlines in fixes on Windows #315
Conversation
For the Mac problem, perhaps it's this line: fortitude/fortitude/tests/check.rs Line 699 in ea2d6b8
We're using |
Nice, good catch! Failures on Windows now are due to line-ending handling -- I think these are actual bugs, not just issues in the tests |
Hopefully fixes issue on Windows
Hmm remaining failure is this:
and I cannot see anything obvious. I would've guessed that this could happen if we were writing a newline, but I'm reasonably sure we're explicitly not. It might be quite tricky to debug this without a Windows env! |
That's really strange. Am I reading it correctly in that it it's adding an extra newline in Windows? |
Sort of -- it's changing the existing line ending from My understanding is that we're replacing the comment node upto but not including the line ending, so we shouldn't be writing one back out. I don't think we explicitly write new lines anywhere? |
I think this might be similar to an issue we saw with |
Nice, thanks for the extra fixes! The insertion is much simpler. I've investigated further, and the tree-sitter grammar consumes the |
When I deduplicated building the binaries, it also stopped us building on different platforms.
And it looks like we were never actually testing on those platforms!
Windows failures seem pretty simple: paths are using
\
instead of/
as expected in the snapshots. Can probably do something simple to fix those in the tests.Mac failures more puzzling, looks like
per-file-ignores
not working quite as expected?