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
[SR-13806] Incorrect I/O on Windows when using swift run #4480
Comments
+@abertelrud @neonichu @tomerd Anders or Boris may have an idea of the top of their heads where this might be going awry. |
Looks like it calls `execve`, but it does something to combine stdout and stderr first. We'd need to step through the code here (it's new to me). |
Comment by Steven Van Impe (JIRA) @egorzhdan The Swift plugin for CLion seems to have the same problem. I see this issue when running a package with the Play button, but not when running the executable directly from the command line |
I think that I might have an idea of what is going on here. The ultimate issue is that use of |
apple/swift-tools-support-core#283 should address the issue, even though it does not match the |
That is now merged, will need to wait for a new snapshot to pick it up. |
Environment
29/10 snapshot on Windows
Additional Detail from JIRA
md5: 2ad6ec2ac664ac4812b9f111d7f68e2f
Issue Description:
When I run a Swift package with
swift run
, the I/O behaves weird. There can be shell prompts mixed in with the output, the input is sometimes parsed by the shell and not sent to the application, and the cursor can jump to different positions on the screen.Here is a sample
main.swift
you can try:Note that the application behaves correctly when I run the executable directly. It is only when I use
swift run
that I see these issues.The text was updated successfully, but these errors were encountered: