From 3d614690cd825ac5580074ecdc22f660455204f1 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 4 Aug 2023 23:11:50 -0700 Subject: fix: :bug: ebusy and logging bug fixes --- extension/src/activation/environmentSetup.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extension') diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 32dfa52f..d41cb289 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -237,9 +237,11 @@ export async function startContinuePythonServer() { }); child.on("error", (err: any) => { - if (err.code === "EBUSY" && attempts < maxAttempts) { + if (attempts < maxAttempts) { attempts++; - console.log(`EBUSY error caught. Retrying attempt ${attempts}...`); + console.log( + `Error caught (likely EBUSY). Retrying attempt ${attempts}...` + ); setTimeout(spawnChild, delay); } else { console.error("Failed to start subprocess.", err); -- cgit v1.2.3-70-g09d2