From 658344ca8e638c3f475da54cd5800ed999fc8f3e Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Wed, 26 Feb 2025 18:53:02 +0200 Subject: [PATCH] fix: re-apply again my hotfix for the hanging process i managed two apply it in the wrong place two times. sorry! i can't code --- src/frontend/lib.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/lib.nim b/src/frontend/lib.nim index 51a72db87..205805892 100644 --- a/src/frontend/lib.nim +++ b/src/frontend/lib.nim @@ -466,13 +466,13 @@ when defined(ctIndex) or defined(ctTest): # debugPrint "WITH ARGS: ", args # debugPrint "OPTIONS: ", $(options.to(cstring)) - let process = nodeStartProcess.spawn(path, args, options) - var processOptions = options # important to ignore stderr, as otherwise too much of it can lead to # the spawned process hanging: this is a bugfix for such a situation processOptions.stdio = cstring"ignore" + let process = nodeStartProcess.spawn(path, args, processOptions) + process.toJs.on("spawn", proc() = resolve(Result[NodeSubProcess, JsObject].ok(process)))