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

Windows Error: Implement me. Unknown stdin file type! #58

Closed
jlvaquero opened this issue Apr 6, 2016 · 1 comment
Closed

Windows Error: Implement me. Unknown stdin file type! #58

jlvaquero opened this issue Apr 6, 2016 · 1 comment

Comments

@jlvaquero
Copy link

This is a continuation of #42. As pushing some code to ignore process.stdin on Windows allows to open devtool window there still is a problem with stdin.

This code reproduce the error:

//test.js
var readline = require('readline');
var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: true
});

rl.on('line', function(line){
    console.log(line);
})

devtool test.js < input.txt

Error: Implement me. Unknown stdin file type!

Windows 7 x64
S.O. Admin rights.
Node v5.10.0.
npm v3.8.3.
DevTool v1.9.1.

@mattdesl
Copy link
Contributor

mattdesl commented May 3, 2016

I have been looking into this, and unfortunately Electron dose not support stdin on Windows. I've fixed devtool so that it should not report this error anymore, but piping into devtool will still not work in Windows terminal.

More info:
electron/electron#4218

There may be a (much more complex) solution for Windows involving writing to a temporary file, I will file a new issue.

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