You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Impossible: `spawnSync` child process neither exited nor was killed.
Looks quite possible… Further digging shows that this is due ChildProcess logic not accounting for both status and signal to be null for valid reasons (which may also be some system error, not just "command not found").
Steps to reproduce
Execute this code:
moduleMainwhereimportPreludeimportEffect (Effect)
importEffect.Console (logShow)
importNode.ChildProcess (spawnSync') asProcmain::EffectUnit
main =do
ret <-Proc.spawnSync' "non-existing-cmd"[] identity
logShow ret.error
Expected
(Just Error: spawnSync non-existing-cmd ENOENT)
Actual
A crash with Impossible: spawnSync child process neither exited nor was killed.