Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Commit 42c1e61

Browse files
authored
fix: $ invocation not .quiet() (anomalyco#3449)
1 parent 795b845 commit 42c1e61

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/opencode/src/lsp/server.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,15 @@ export namespace LSPServer {
931931
await fs.mkdir(installDir, { recursive: true })
932932

933933
if (ext === "zip") {
934-
await $`unzip -o -q ${tempPath} -d ${installDir}`.quiet().nothrow()
934+
const ok = await $`unzip -o -q ${tempPath} -d ${installDir}`.quiet().catch((error) => {
935+
log.error("Failed to extract lua-language-server archive", { error })
936+
})
937+
if (!ok) return
935938
} else {
936-
await $`tar -xzf ${tempPath} -C ${installDir}`.nothrow()
939+
const ok = await $`tar -xzf ${tempPath} -C ${installDir}`.quiet().catch((error) => {
940+
log.error("Failed to extract lua-language-server archive", { error })
941+
})
942+
if (!ok) return
937943
}
938944

939945
await fs.rm(tempPath, { force: true })
@@ -947,7 +953,10 @@ export namespace LSPServer {
947953
}
948954

949955
if (platform !== "win32") {
950-
await $`chmod +x ${bin}`.nothrow()
956+
const ok = await $`chmod +x ${bin}`.quiet().catch((error) => {
957+
log.error("Failed to set executable permission for lua-language-server binary", { error })
958+
})
959+
if (!ok) return
951960
}
952961

953962
log.info(`installed lua-language-server`, { bin })

0 commit comments

Comments
 (0)