I'm relatively new to Javascript programming. I am attempting to spawn dos2unix
to get around this problem. My understanding is that in order for spawn
to work you must ignore IO or it will hang while waiting for said IO to be handled. However, I have tried ignoring stdio, stderr, and stdout and now all three but my spawned process still hangs immediately.
let df = spawn('dos2unix', [path.join(repo_path, xmlFile.name)], {stdio: 'ignore', stdout: 'ignore', stderr: 'ignore'});
That line never returns. Am I missing something?
Edit: I am running this in the vscode debugger.