[FIX] YAML LSP not working #4765

Open
opened 2026-02-16 17:45:21 -05:00 by yindo · 2 comments
Owner

Originally created by @processtrader on GitHub (Jan 11, 2026).

Originally assigned to: @thdxr on GitHub.

Description

Server failing to initialize due to incorrect executable paths and restrictive root detection.

PR open https://github.com/anomalyco/opencode/pull/6986

Plugins

No response

OpenCode version

1.1.13

Steps to reproduce

When opencode edits a YAML file which has a wrong format, like wrong indentation, etc, nothing is triggered due to the wrong setup for this LSP

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @processtrader on GitHub (Jan 11, 2026). Originally assigned to: @thdxr on GitHub. ### Description Server failing to initialize due to incorrect executable paths and restrictive root detection. PR open https://github.com/anomalyco/opencode/pull/6986 ### Plugins _No response_ ### OpenCode version 1.1.13 ### Steps to reproduce When opencode edits a YAML file which has a wrong format, like wrong indentation, etc, nothing is triggered due to the wrong setup for this LSP ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:45:21 -05:00
Author
Owner

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

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

  • #7022: opencode scans claude code's SKILL files and sometimes failed to parse YAML
  • #6858: YAML parser crashes on ": " pattern in skill description
  • #4507: [FEATURE]: yaml lsp & yaml treesitter support
  • #1343: Support YAML language server
  • #5991: Bug: SkillInvalidError during frontmatter parsing in SKILL.md
  • #7575: Crash on SKILL.md files with non-OpenCode frontmatter schema
  • #3537: Custom slash commands can crash opencode on startup (YAML parsing issue)
  • #7693: Adding a trailing comma to agents markdown freezes startup

These all relate to YAML handling and LSP configuration issues. The root cause appears to be that YAML validation is not properly integrated with the LSP system, preventing malformed YAML files from being caught early.

Feel free to ignore if your specific case differs from these issues.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7022: opencode scans claude code's SKILL files and sometimes failed to parse YAML - #6858: YAML parser crashes on ": " pattern in skill description - #4507: [FEATURE]: yaml lsp & yaml treesitter support - #1343: Support YAML language server - #5991: Bug: `SkillInvalidError` during frontmatter parsing in `SKILL.md` - #7575: Crash on SKILL.md files with non-OpenCode frontmatter schema - #3537: Custom slash commands can crash opencode on startup (YAML parsing issue) - #7693: Adding a trailing comma to agents markdown freezes startup These all relate to YAML handling and LSP configuration issues. The root cause appears to be that YAML validation is not properly integrated with the LSP system, preventing malformed YAML files from being caught early. Feel free to ignore if your specific case differs from these issues.
Author
Owner

@processtrader commented on GitHub (Jan 12, 2026):

@thdxr added screenshots to the PR, where you can easily see how this works, versus latest OC version 1.1.14. I know this is not a big improvement, but it is very useful for, at least, the Rails devs. Im working with a I18n application, in three languages, and LLMs are constantly making mistakes with the locales files, and it is a real pain to fix them, even to check them

@processtrader commented on GitHub (Jan 12, 2026): @thdxr added screenshots to the PR, where you can easily see how this works, versus latest OC version 1.1.14. I know this is not a _big_ improvement, but it is very useful for, at least, the Rails devs. Im working with a I18n application, in three languages, and LLMs are constantly making mistakes with the locales files, and it is a real pain to fix them, even to check them
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4765