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

EOF error on latest release #27

Closed
kkawakam opened this issue Mar 26, 2016 · 5 comments
Closed

EOF error on latest release #27

kkawakam opened this issue Mar 26, 2016 · 5 comments

Comments

@kkawakam
Copy link
Owner

Going to yank 0.2.2 after a fix is in place.

@saghm
Copy link
Contributor

saghm commented Mar 26, 2016

Weirdly, it seems to work fine if you run the binary in target manually

@saghm
Copy link
Contributor

saghm commented Mar 26, 2016

Okay, from what I can tell, when the binary is invoked with cargo run, then libc::isatty seems to return 0 rather than one; then, in readline_direct, io::stdin().read_line() seems to return 0. I'm not certain if it's an issue with libc or what, but it actually doesn't seem to stem from the updates in 0.2.2.

@saghm
Copy link
Contributor

saghm commented Mar 26, 2016

For reference, I opened an issue in the libc crate to find out whether this is expected behavior or not.

rust-lang/libc#239

@saghm
Copy link
Contributor

saghm commented Mar 30, 2016

It appears to have been fixed in 2016-03-29. It seems to have been an issue in rustc, which was fixed in rust-lang/rust#32257

@kkawakam
Copy link
Owner Author

Fixed in latest rust-nightly (b678600ac 2016-03-29)

gwenn pushed a commit to gwenn/rustyline that referenced this issue Nov 30, 2018
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

2 participants