You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment by trotterdylan Thursday Apr 06, 2017 at 14:40 GMT
I worked on this for a little while but haven't yet figured out the problem. I was able to reproduce it more reliably if my machine was under load, e.g. by running tests in parallel.
There's two issues. The first is that these lines need to handle EOF explicitly:
line, err := Stdin.reader.ReadString('\n')
if err != nil {
return nil, f.RaiseType(EOFErrorType, "EOF when reading a line")
}
Should be something like:
line, err := Stdin.reader.ReadString('\n')
if err != nil && err != io.EOF {
return nil, f.RaiseType(IOErrorType, err.Error())
}
if line == "" {
return nil, f.RaiseType(EOFErrorType, "EOF when reading a line")
}
When you do this you find that the error is actually "bad file". So Stdin is getting closed or something in the mean time. But I couldn't figure out why.
TestRawInput
looks like have a significant issue.Sometimes I can reproduce on my local environment.
The text was updated successfully, but these errors were encountered: