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

ribosome (.js?) buffers all of stdout #59

Open
norswap opened this issue Aug 26, 2018 · 1 comment · May be fixed by #62
Open

ribosome (.js?) buffers all of stdout #59

norswap opened this issue Aug 26, 2018 · 1 comment · May be fixed by #62

Comments

@norswap
Copy link
Contributor

norswap commented Aug 26, 2018

ribosome.js uses exec to run the rna file, and patches stdout and stderr in the callback, hence preventing "live" update of stdout and stderr.

The fix is to use spawn instead of exec: https://stackoverflow.com/questions/10232192/exec-display-stdout-live

A simple workaround is to first generate the rna file, then run that. Still, having the same semantics for both methods would be preferable.

I'll gladly provide a patch for the JS version, but I won't bother with the others (if they do suffer from the same issue, which is not sure).

@sustrik
Copy link
Owner

sustrik commented Aug 27, 2018

Sure. Do send a JS patch. Thanks!

norswap added a commit to norswap/ribosome that referenced this issue Sep 3, 2018
norswap added a commit to norswap/ribosome that referenced this issue Sep 3, 2018
@gtnoble gtnoble linked a pull request Mar 11, 2024 that will close this 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

Successfully merging a pull request may close this issue.

2 participants