Skip to content
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 parsing failures for diagnostics #19

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

igillis
Copy link
Contributor

@igillis igillis commented Apr 16, 2024

For whatever reason, the outputs neotest gives us are in DOS format (\r\n line endings). This is why failures don't show up in diagnostics even though we set errors in the results and tests are passing.

Luckily, it seems we don't need the newlines in failure_pattern.

Added a test with a file in DOS format to cover this going forward.

Before
CleanShot 2024-04-15 at 22 24 18@2x

After
CleanShot 2024-04-15 at 22 24 49@2x
CleanShot 2024-04-15 at 23 36 21@2x

For whatever reason, the outputs neotest gives us are in DOS format
(\r\n line endings). This is why failures don't show up in diagnostics
even though we set errors in the results and tests are passing.

Luckily, it seems we don't need the newlines in `failure_test`
@zidhuss
Copy link
Owner

zidhuss commented Apr 16, 2024

Nice one 🚀

@zidhuss zidhuss merged commit 714abf8 into zidhuss:main Apr 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants