summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-04 23:11:50 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-04 23:11:50 -0700
commit3d614690cd825ac5580074ecdc22f660455204f1 (patch)
tree93ace95120a7f1b8e127c7e02ebae5ed05a3a8d5
parent67ed7e33543896147b03b28f50bfbd3fac65b030 (diff)
downloadsncontinue-3d614690cd825ac5580074ecdc22f660455204f1.tar.gz
sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.tar.bz2
sncontinue-3d614690cd825ac5580074ecdc22f660455204f1.zip
fix: :bug: ebusy and logging bug fixes
-rw-r--r--continuedev/src/continuedev/libs/llm/proxy_server.py2
-rw-r--r--extension/src/activation/environmentSetup.ts6
2 files changed, 5 insertions, 3 deletions
diff --git a/continuedev/src/continuedev/libs/llm/proxy_server.py b/continuedev/src/continuedev/libs/llm/proxy_server.py
index 1a48f213..fd8210e9 100644
--- a/continuedev/src/continuedev/libs/llm/proxy_server.py
+++ b/continuedev/src/continuedev/libs/llm/proxy_server.py
@@ -109,7 +109,7 @@ class ProxyServer(LLM):
if "content" in loaded_chunk:
completion += loaded_chunk["content"]
except Exception as e:
- posthog_logger.capture_event(self.unique_id, "proxy_server_parse_error", {
+ posthog_logger.capture_event("proxy_server_parse_error", {
"error_title": "Proxy server stream_chat parsing failed", "error_message": '\n'.join(traceback.format_exception(e))})
else:
break
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);