[PR #7088] fix(lsp): fix bun-based LSP server auto-installation #12239

Open
opened 2026-02-16 18:17:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7088

State: open
Merged: No


Summary

Fixes auto-installation of bun-based LSP servers (Svelte, Astro, Vue, Pyright, etc.) that were failing silently.

Issues

  1. Using bun install <pkg> instead of bun add <pkg> - install doesn't add new packages
  2. Using stdout: "pipe" without reading output caused buffer deadlock
  3. Missing package.json in ~/.local/share/opencode/bin/ caused bun to walk up and use a parent package.json

Changes

  • Change bun installbun add for all 8 LSP installers
  • Change stdout/stderr/stdin: "pipe""ignore" to prevent deadlock
  • Create empty package.json in bin directory on startup to anchor bun installs

Fixes #9404

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7088 **State:** open **Merged:** No --- ## Summary Fixes auto-installation of bun-based LSP servers (Svelte, Astro, Vue, Pyright, etc.) that were failing silently. ## Issues 1. Using `bun install <pkg>` instead of `bun add <pkg>` - install doesn't add new packages 2. Using `stdout: "pipe"` without reading output caused buffer deadlock 3. Missing `package.json` in `~/.local/share/opencode/bin/` caused bun to walk up and use a parent `package.json` ## Changes - Change `bun install` → `bun add` for all 8 LSP installers - Change `stdout/stderr/stdin: "pipe"` → `"ignore"` to prevent deadlock - Create empty `package.json` in bin directory on startup to anchor bun installs Fixes #9404
yindo added the pull-request label 2026-02-16 18:17:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12239