-
Notifications
You must be signed in to change notification settings - Fork 80
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 windows support #91
fix windows support #91
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, fix merge conflict then tag me and I'll merge it
@haydenmeade done, thanks. |
this is very relevant and necessary. How are things progressing on this issue? |
@bad4iz Thanks for the report, i updated my dependencies and it seems that the second point was fixed in another place (probably in the neotest repo) and now the original test id respects the drive case, so the windows specific hack is no longer needed. I removed it and everything seems to be working as expected again. |
@haydenmeade this is very relevant and necessary. How are things progressing on this issue? |
This plugin in windows has 2 issues:
\
instead of/
in the file path. #422) After solving the first issue i noticed that neotest doesn't update the sign for each test making every test appear with an X even if the test passed. This is caused due to the test having an id likeIt seems that neotest now respects the case of the test id so this is no longer an issue.c:\\path\file::test_name
and the Jest output reports the path likeC:\\path\file::test_name
(notice the capital drive)This PR attemps to solve both issues.
First issue was solved using
vim.fs.normalize
as recommended in #44 (comment).Second issue was solved adding a windows only validation that changes the case of the drive.Tested in windows everything works as expected. Should not cause any issue in other platforms.
Fixes #42
Supersedes #44