Skip to content

[Bug]: marksman unavailable in tool LSP session when config is JSONC-only #1763

@COLDTURNIP

Description

@COLDTURNIP

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

The LSP tools report that .md has no configured server, even though marksman is configured in user config and is loaded in the UI/sidebar.

Observed behavior suggests the LSP tool runtime resolves config file paths using .json filenames only for server loading, while the environment uses .jsonc files.

$ which marksman

${HOME}/bin/marksman

Steps to Reproduce

  1. Ensure user config exists only as JSONC:
    • ~/.config/opencode/opencode.jsonc
    • ~/.config/opencode/oh-my-opencode.jsonc
    • no same-name .json files
  2. Configure marksman in JSONC config under lsp with .md extension.
  3. Call lsp_diagnostics on a Markdown file (example: README.md).

Expected Behavior

LSP tools should discover marksman for .md and run diagnostics/symbol operations.

Actual Behavior

lsp_diagnostics returns:

No LSP server configured for extension: .md

and lists available servers without marksman.

Doctor Output

Installation
────────────────────────────────────────
  ✓ OpenCode Installation → 1.1.56
  ✓ Plugin Registration → Registered

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSONC config
  ✓ Model Resolution → 10 agents, 8 categories (15 overrides), 2521 available

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ○ OpenAI (ChatGPT) Auth → Auth plugin not installed
  ○ Google (Gemini) Auth → Auth plugin not installed

Dependencies
────────────────────────────────────────
  ✓ AST-Grep CLI → installed
  ✓ AST-Grep NAPI → installed
  ✓ Comment Checker

Tools & Servers
────────────────────────────────────────
  ✓ GitHub CLI → 2.86.0 - authenticated as COLDTURNIP
  ✓ LSP Servers → 2/4 servers available
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found
  ○ MCP OAuth Tokens → No OAuth tokens configured

Updates
────────────────────────────────────────
  ✓ Version Status → Up to date (3.5.2)

Summary
────────────────────────────────────────

  12 passed, 0 failed, 0 warnings, 4 skipped
  Total: 16 checks in 1568ms

✓ All systems operational!

Error Logs

No LSP server configured for extension: .md

Available servers: typescript, deno, vue, eslint, oxlint, biome, gopls, ruby-lsp, basedpyright, pyright...

To add a custom server, configure 'lsp' in oh-my-opencode.json:

Configuration

{
  "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
  "agents": {
    ...
  },
  "categories": {
    ...
  },
  "disabled_skills": ["playwright", "frontend-ui-ux"],
  "git_master": {
    "commit_footer": false,
    "include_co_authored_by": false,
  },
}

Additional Context

No response

Operating System

Linux

OpenCode Version

1.1.56

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions