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

node-supervisor not working on windows in multiview #23

Open
valyrie97 opened this issue May 23, 2021 · 0 comments
Open

node-supervisor not working on windows in multiview #23

valyrie97 opened this issue May 23, 2021 · 0 comments

Comments

@valyrie97
Copy link

valyrie97 commented May 23, 2021

For some reason, the output of supervisor's spawned processes doesnt make it to the multiview

an example of this can be seen here (marcus13345/vogue) by installing and running the dev script.

The process is spawned and runs (as can be seen by the files it generates, in /coverage), however only the output directly from the supervisor process is output.

this issue also is specific to windows. Tested and working on macos, and I dont have a linux machine to test there.

Edit: I am able to work around the issue by adding the -t flag. which disables interactivity.

in their source, this appears to be the only relevant code, however i am unable to create a small test case, revolving around it.

stdin.setEncoding( 'utf8' );
stdin.on('readable', function() {
    var chunk = process.stdin.read();
    //
    // Restart process when user inputs rs
    //
    if (chunk !== null && chunk === "rs\n" || chunk === "rs\r\n") {
        // process.stdout.write('data: ' + chunk);
        crash();
    }
});
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

1 participant