Bun-based LSP servers not auto-installing #6797

Open
opened 2026-02-16 18:05:18 -05:00 by yindo · 1 comment
Owner

Originally created by @AHaldner on GitHub (Jan 19, 2026).

Originally assigned to: @thdxr on GitHub.

Description

Bun fails to install the correct node modules if it can't find a package.json in the root of the ~/.local/share/opencode/bin folder. Also switch to using bun add instead of bun install, since bun install only reinstalls existing packages.

Plugins

No response

OpenCode version

1.1.25

Steps to reproduce

  1. Let the agent make any edits to an .astro file for example
  2. Astro LSP server does not show up in the sidebar
  3. Add a package.json to the ~/.local/share/opencode/bin folder
  4. The LSP server should install and show up in the sidebar

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Warp

Originally created by @AHaldner on GitHub (Jan 19, 2026). Originally assigned to: @thdxr on GitHub. ### Description Bun fails to install the correct node modules if it can't find a `package.json` in the root of the `~/.local/share/opencode/bin` folder. Also switch to using `bun add` instead of `bun install`, since `bun install` only reinstalls existing packages. ### Plugins _No response_ ### OpenCode version 1.1.25 ### Steps to reproduce 1. Let the agent make any edits to an `.astro` file for example 2. Astro LSP server does not show up in the sidebar 3. Add a `package.json` to the `~/.local/share/opencode/bin` folder 4. The LSP server should install and show up in the sidebar ### Screenshot and/or share link _No response_ ### Operating System macOS 26.2 ### Terminal Warp
yindo added the bug label 2026-02-16 18:05:18 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6365: ESLint LSP server fails to auto-install on Windows (similar Bun-based LSP auto-install issue with package.json)
  • #4703: LSP - Java - eclipse-jdt-ls won't appear in the right hand side of the CLI TUI when enabled (similar sidebar visibility issue)
  • #7435: When using the opencode CLI, the right-side modules for MCP and LSP disappear (related sidebar display issue)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #6365: ESLint LSP server fails to auto-install on Windows (similar Bun-based LSP auto-install issue with package.json) - #4703: LSP - Java - eclipse-jdt-ls won't appear in the right hand side of the CLI TUI when enabled (similar sidebar visibility issue) - #7435: When using the opencode CLI, the right-side modules for MCP and LSP disappear (related sidebar display issue) Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6797