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
[Bug]: Hangs on windows? #141
Comments
Okay I got the windows machine working and can reproduce the hang. |
Running swc.exe directly is fine:
Under Bazel the same command hangs forever:
I'm not much good at debugging on Windows. In the Task manager I was able to dump the swc.exe process to the attached .DMP file |
@realtimetodie the most obvious explanation is that it's still waiting for input on stdin, perhaps there's a portability problem with your fix in swc-project/swc#6714 - do you have a way to test that change on Windows? |
I need some time to setup Bazel on Windows and compile the Rust binary to see what is going on. I found a note for std::io on Windows in non-tty environments. I'm looking into this. https://doc.rust-lang.org/std/io/fn.stdin.html#note-windows-portability-considerations |
Is there a reason why the matrix test only runs on ubuntu-latest? Can this not be expanded? I think this limitation originated from the bazel-contrib template |
Hm last time we thought about this, it seemed like our GH Actions setup would need us to self-host runners for Mac/Windows. Do you know if GitHub has one or both of those "out of the box"? |
I think the CI workflow can be expanded to macos-latest. I used the ci.yaml from the bazel-contrib template recently for an example repository and expanded the workflow's matrix. It worked for the macos-latest default runner out of the box |
Windows falls over pretty early:
https://github.com/aspect-build/rules_swc/actions/runs/3863790892/jobs/6586193651 |
the workflows for macos-latest passed at least. I think for Windows, the path to the ci.bazelrc file needs to be updated in the ci.yaml and the MSYS2 package needs to be installed. |
I can reproduce this locally |
…the stream to finish Fixes aspect-build#141
Prevents the stdin handle from waiting infinitively for the read stream to finish Fixes aspect-build#141
Prevents the stdin handle from waiting in an infinite loop for the read stream to finish Fixes aspect-build#141
The problem is that the stdin handle waits for the read stream to finish. But in a non-tty environment on Windows, this never happens when the read stream is empty. I think this is a bug in the std::io module. |
Prevents the stdin handle from waiting in an infinite loop for the read stream to finish Fixes #141
What happened?
https://buildkite.com/bazel/bcr-presubmit/builds/839
is stuck at
Running the swc.exe command line manually on windows 10 seems to work fine. My windows machine isn't able to run Bazel 6 due to some dll problem.
Version
HEAD
The text was updated successfully, but these errors were encountered: