zwilias / elm-coverage

Explorations
BSD 3-Clause "New" or "Revised" License
59 stars 13 forks source link

Fix spawn hang while instrumenting many files #30

Closed grrinchas closed 2 years ago

grrinchas commented 3 years ago

I had this problem when instrumenting a huge amount of files, the script hangs on Instrumenting sources....

I believe is due to the fact, that parent process is not handling stdout from the child process. So if you have lots of files, this just fills up the buffer, and eventually, parent process stops accepting it, therefore hangs.

Not an expert on the node, tho :).

Adding this line seems it fixes the problem.

zwilias commented 2 years ago

Handled in a92e19f