summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-10 10:13:57 -0400
committerDax Raad <[email protected]>2025-06-10 10:14:03 -0400
commitbb60aa3060d4ae8c870286a7070eab968277d07a (patch)
tree7903b32f5a21ead18ad65d77037b951262848cd5 /packages
parent34fa8cadd6318f606d676dc7476bee1c97c40be2 (diff)
downloadopencode-bb60aa3060d4ae8c870286a7070eab968277d07a.tar.gz
opencode-bb60aa3060d4ae8c870286a7070eab968277d07a.zip
sync
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/ripgrep/index.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/opencode/src/ripgrep/index.ts b/packages/opencode/src/ripgrep/index.ts
index 9c0646976..9e42262b8 100644
--- a/packages/opencode/src/ripgrep/index.ts
+++ b/packages/opencode/src/ripgrep/index.ts
@@ -73,13 +73,16 @@ export namespace Ripgrep {
],
{
cwd: Global.Path.bin,
- stderr: "ignore",
- stdout: "ignore",
+ stderr: "pipe",
+ stdout: "pipe",
},
)
await proc.exited
if (proc.exitCode !== 0)
- throw new ExtractionFailedError({ filepath, stderr: proc.stderr })
+ throw new ExtractionFailedError({
+ filepath,
+ stderr: await Bun.readableStreamToText(proc.stderr),
+ })
}
if (config.extension === "zip") {
const proc = Bun.spawn(
@@ -94,7 +97,7 @@ export namespace Ripgrep {
if (proc.exitCode !== 0)
throw new ExtractionFailedError({
filepath: archivePath,
- stderr: proc.stderr,
+ stderr: await Bun.readableStreamToText(proc.stderr),
})
}
await fs.unlink(archivePath)