-
Notifications
You must be signed in to change notification settings - Fork 7
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
Neotest-zig does not function in a native windows environment #29
Comments
Hi, Yes, Windows is not currently supported. As you've found out There were some issues in the past with Windows that I managed to resolve, but I don't think I can support that platform alone as I don't use/have a Windows system readily available. If you, or someone else, manages to bring Windows support, then a PR would be appreciated. I can hopefully help with some questions if there are any. |
Hey thanks for the quick response. Unfortunately, do to the nature of the work I want to do(game dev, computer graphics) a windows environment would be better suited. I would not mind looking into bringing windows support. Would you object to have Thanks for your time. |
I don't mind linking against |
Is this now solved by #30, or is there more work needed to have Windows working? |
To my knowledge and testing that should be it for now. Depending on what #9 does, it may need more support but everything else should be good. |
I'm closing this issue then. Thanks for the PR! |
Describe the bug
Currently
neotest-zig
is not supported/does not work on windows. It seems that from reading previous issues that there was some compatibility in previous versions? I don't know under what circumstances it was compatible.Right now I am running neovim, neotest, neotest-zig on a native windows 11 x64 machine.
Steps To Reproduce
zig init
to initialize a new projectCurrent behavior
Running tests will give an error of
C:\ProgramData\chocolatey\lib\zig\tools\zig-windows-x86_64-0.13.0\lib\std\posix.zig:101:33: error: root struct of file 'c' has no member named 'STDERR_FILENO' pub const STDERR_FILENO = system.STDERR_FILENO; ~~~~~~^~~~~~~~~~~~~~ C:\ProgramData\chocolatey\lib\zig\tools\zig-windows-x86_64-0.13.0\lib\std\c.zig:1:1: note: struct declared here const std = @import("std");
Expected behavior
I expect the test runner to run the tests in a windows environment without test runner errors.
Environment
Additional context
I looked into the error myself and have started an attempt to fix it. The current issue is because of the use of
try std.posix.dup2
methods calls. They zig posix API is not supported on windows (from I understand and what I have been reading).If you try to use
std.posix.dup2
in azig init
base project will generate the same error. as mentioned above.The text was updated successfully, but these errors were encountered: