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

Multiple "waiting for unsupported file type" when compiled with go1.9beta2 #384

Closed
xiaq opened this issue Jul 5, 2017 · 3 comments
Closed
Labels

Comments

@xiaq
Copy link
Member

xiaq commented Jul 5, 2017

When compiled with go1.9beta2, typing any character in Elvish will cause a lot of these errors to be printed:

reader error: read /dev/stdin: waiting for unsupported file type
@tw4452852
Copy link
Contributor

This issue due to golang/go#18507, after this, reading on a nonblocking file won't return EAGAIN any more. There are two ways to fix this issue:

  1. use syscall.Read to read file directly instead of *File.Read
  2. I have just propose a patch in os: reading on nonblocking stdin causes "waiting for unsupported file type" error golang/go#20915, it will keep the compatibility.

@xiaq
Copy link
Member Author

xiaq commented Jul 6, 2017

@tw4452852 Thank you! :) For now let's wait a while and hope your patch gets accepted.

@tw4452852
Copy link
Contributor

This issue should be fixed by golang/go@26f0a7a

@xiaq xiaq closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants