LSP server not working in Docker? #4372

Open
opened 2026-02-16 17:43:36 -05:00 by yindo · 1 comment
Owner

Originally created by @SpectoIT on GitHub (Jan 7, 2026).

Originally assigned to: @jayair on GitHub.

Question

Using docker run -it --rm ghcr.io/anomalyco/opencode, I can't get LSP to work... in the Opencode docs it doesn't state anything about installing additional tools like node/npm/PHP/Python.

Image
Originally created by @SpectoIT on GitHub (Jan 7, 2026). Originally assigned to: @jayair on GitHub. ### Question Using `docker run -it --rm ghcr.io/anomalyco/opencode`, I can't get LSP to work... in the Opencode docs it doesn't state anything about installing additional tools like node/npm/PHP/Python. <img width="411" height="131" alt="Image" src="https://github.com/user-attachments/assets/c9474408-5af7-4ebe-a95a-3eff9545b188" />
yindo added the docs label 2026-02-16 17:43:36 -05:00
Author
Owner

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

This issue might be a duplicate of or related to:

  • #6104: Issues with MCP server configuration in Docker environments (similar Docker setup problems)
  • #5535: F# LSP not installed by default - highlights the broader issue that language servers require additional tool installation
  • #2182: Support for LSP configuration beyond file extensions - relates to LSP setup complexity

The root issue is that OpenCode Docker image lacks language server dependencies. LSP servers like Node.js, Python interpreters, PHP, etc. need to be installed in the image for LSP functionality to work. The docs don't clearly state this requirement.

Suggested solutions:

  1. Update documentation to clearly list LSP tool dependencies required in Docker
  2. Create a comprehensive Docker image with popular LSP tools pre-installed
  3. Add setup documentation for configuring LSPs in containerized environments

Feel free to check those issues to see if any address your specific language server needs.

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of or related to: - #6104: Issues with MCP server configuration in Docker environments (similar Docker setup problems) - #5535: F# LSP not installed by default - highlights the broader issue that language servers require additional tool installation - #2182: Support for LSP configuration beyond file extensions - relates to LSP setup complexity The root issue is that OpenCode Docker image lacks language server dependencies. LSP servers like Node.js, Python interpreters, PHP, etc. need to be installed in the image for LSP functionality to work. The docs don't clearly state this requirement. Suggested solutions: 1. Update documentation to clearly list LSP tool dependencies required in Docker 2. Create a comprehensive Docker image with popular LSP tools pre-installed 3. Add setup documentation for configuring LSPs in containerized environments Feel free to check those issues to see if any address your specific language server needs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4372