-
Notifications
You must be signed in to change notification settings - Fork 70
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
Readline simply doesnt work with babel-watch #35
Comments
Given the following example
the output result would be:
But the result is:
Note that the readline funciton doesn't call the callback. So the Thank you for your valuable feedback: test is not printed on the screeen.. |
I did some research i think this is related to this issue: |
Looks like this code part causes the issue, since its switching the stdin input to the fork and then back to the main process. Also applications should not use babel-watch in production, so this should be removed from the code or the all stdin events should be passed to the fork. |
@azarus I think it would be the best to add a new flag that would disable stdin capturing. I know that the most frequent use case for babel watch is to use it with web-based application which does not require to read anything from STDIN, and then it's pretty handy to be able to restart the app from the command line (by typing |
I'm also developing a CLI app with a shell-like prompt, and this is currently not usable. The overhead of listening on Offering a As a temporary solution I have removed those lines from my local node_modules, and everything works fine. |
It still same problem exist :( |
+1 Still exists |
Since the watched app runs in a seperate process readline doesn't work, also no stdin is available for the process.
Would it be possible to forward the stdin to the sub process?
Thanks.
The text was updated successfully, but these errors were encountered: