Skip to content

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

Merged
rekram1-node merged 1 commit into
anomalyco: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 into
anomalyco:devfrom
veracioux:fix/bun-enoent-posix_spawn

Conversation

@veracioux

@veracioux veracioux commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

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
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
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