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

cargo run no longer passes a stdin handle to child. #2530

Closed
brson opened this issue Mar 30, 2016 · 3 comments
Closed

cargo run no longer passes a stdin handle to child. #2530

brson opened this issue Mar 30, 2016 · 3 comments

Comments

@brson
Copy link
Contributor

brson commented Mar 30, 2016

Until today I could run cargo run --release against rustup to kick off the interactive installer, which reads a byte from stdin for confirmation. As of today when I do this rustup exits with an error. Calling std::stdin().lock().lines().next() returns None where it used to return Some.

Working rustc / cargo:

rustc 1.9.0-nightly (98f0a9128 2016-03-23)
cargo 0.10.0-nightly (61ad6a0 2016-03-22)

Failing rustc / cargo:

rustc 1.9.0-nightly (d7a71687e 2016-03-24)
cargo 0.10.0-nightly (4e6434d 2016-03-24)
@brson brson changed the title cargo run no longer passes a stdin handle. cargo run no longer passes a stdin handle to child. Mar 30, 2016
@steveklabnik
Copy link
Member

I believe I saw another thing about this today; but I can't find it. Something about Rust 1.6 bs 1.9. I thought it was on users, but maybe not...

To be clear, it was someone else surprised by this behavior.

On Mar 29, 2016, 17:11 -0700, Brian Andersonnotifications@github.com, wrote:

Until today I could runcargo run --releaseagainst rustup to kick off the interactive installer, which reads a byte from stdin for confirmation. As of today when I do this rustup exits with an error. Callingstd::stdin().lock().lines().next()returnsNonewhere it used to returnSome.

Working rustc / cargo:

rustc 1.9.0-nightly (98f0a9128 2016-03-23) cargo 0.10.0-nightly (61ad6a0 2016-03-22)

Failing rustc / cargo:

rustc 1.9.0-nightly (d7a71687e 2016-03-24) cargo 0.10.0-nightly (4e6434d 2016-03-24)


You are receiving this because you are subscribed to this thread.
Reply to this email directly orview it on GitHub(#2530)

@steveklabnik
Copy link
Member

Found it!http://stackoverflow.com/q/36295576/24817

On Mar 29, 2016, 17:11 -0700, Brian Andersonnotifications@github.com, wrote:

Until today I could runcargo run --releaseagainst rustup to kick off the interactive installer, which reads a byte from stdin for confirmation. As of today when I do this rustup exits with an error. Callingstd::stdin().lock().lines().next()returnsNonewhere it used to returnSome.

Working rustc / cargo:

rustc 1.9.0-nightly (98f0a9128 2016-03-23) cargo 0.10.0-nightly (61ad6a0 2016-03-22)

Failing rustc / cargo:

rustc 1.9.0-nightly (d7a71687e 2016-03-24) cargo 0.10.0-nightly (4e6434d 2016-03-24)


You are receiving this because you are subscribed to this thread.
Reply to this email directly orview it on GitHub(#2530)

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Mar 30, 2016
bors added a commit that referenced this issue Mar 30, 2016
@alexcrichton
Copy link
Member

Yeah this is an instance of rust-lang/rust#32254 which was introduced by rust-lang/rust#31618 and fixed in rust-lang/rust#32257. Cargo upgraded to a "broken rustc" in #2510 and I hope to fix this in #2531

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

No branches or pull requests

3 participants