Open Tyriar opened 6 years ago
@Tyriar:
Hard to say, this error will be thrown whenever the file descriptor fd
is invalid: https://github.com/Microsoft/node-pty/blob/1c3cd4710c48ad45615da562d10d76162ad43c39/src/unix/pty.cc#L368
Possible reasons:
Any more info when this exactly happens?
Might be useful to output errno
to see the actual error.
No more info unfortunately, these are just errors that we're seeing in the wild.
I don't see how this could happen atm as this._fd is synchronously in the ctor and resize must have been called after it, but the repro in https://github.com/Microsoft/vscode/issues/71078 seems to indicate that resizing again will fix it.
Adding a better error that should reveal why the call failed in https://github.com/Microsoft/node-pty/pull/285
Maybe the pty has already been destroyed?
VS Code issue: https://github.com/Microsoft/vscode/issues/57976