Skip to content

fix: Opencode fails with ENOENT posix_spawn '/usr/bin/rg'#3396

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
veracioux:fix/bun-enoent-posix_spawn
Oct 23, 2025
Merged

fix: Opencode fails with ENOENT posix_spawn '/usr/bin/rg'#3396
rekram1-node merged 1 commit intoanomalyco:devfrom
veracioux:fix/bun-enoent-posix_spawn

Conversation

@veracioux
Copy link
Contributor

@veracioux veracioux commented Oct 23, 2025

When cwd does not exist, Bun.spawn throws saying that the executable ("rg") does not exist.

I reported this as an issue to bun oven-sh/bun#24012, but for now, I added a workaround to throw the correct error message so the user is not misled.

Closes #3158.

@veracioux veracioux changed the title When the cwd does not exist, Bun.spawn incorrectly reports that the rg fix: Opencode fails with ENOENT posix_spawn '/usr/bin/rg' Oct 23, 2025
@rekram1-node rekram1-node merged commit 50cc641 into anomalyco:dev Oct 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug Report: Opencode Server Fails with ENOENT posix_spawn '/usr/bin/rg' When Directory Parameter is Provided

2 participants