claude-code-lsps icon indicating copy to clipboard operation
claude-code-lsps copied to clipboard

Solargraph Plugin does not work - errors in plugin.json (fixes provided)

Open dchersey opened this issue 10 months ago • 1 comments

Plugin Information

Plugin name: solargraph Plugin version: 1.0.0

Environment

Claude Code version: 2.1.1 Operating System: macOS 15.6.1 LSP server version: solargraph 0.58.1

Checklist

  • I am using Claude Code v2.1.0 or later
  • I checked the Plugins tab in Claude Code (/plugin) for errors
  • I verified the LSP server is installed according to Manual Installation instructions
  • I verified the LSP binary is in my PATH (which solargraph)
  • I checked Claude Code logs at ~/.claude/debug/

Description

Two issues prevent solargraph from loading:

  1. Duplicate hooks reference: plugin.json explicitly references "hooks": "./hooks/hooks.json" but Claude Code automatically loads hooks/hooks.json from the standard location, causing a duplicate detection error.
  2. Invalid loggingConfig field: The .lsp.json file contains a loggingConfig field that fails Claude Code's LSP config schema validation.

Steps to Reproduce

  1. Install solargraph plugin: /plugin install solargraph@claude-code-lsps
  2. Restart Claude Code
  3. Open a .rb file
  4. Try to use any LSP feature (e.g., documentSymbol)
  5. See "No LSP server available for file type .rb"

Expected Behavior

LSP operations should work on Ruby files.

Actual Behavior

Solargraph LSP server fails to load due to config validation errors.

Error Messages

2026-01-08T19:10:53.195Z [DEBUG] Loaded hooks from standard location for plugin solargraph: ~/.claude/plugins/cache/claude-code-lsps/solargraph/1.0.0/hooks/hooks.json 2026-01-08T19:10:53.196Z [ERROR] Error: Duplicate hooks file detected: ./hooks/hooks.json resolves to already-loaded file. The standard hooks/hooks.json is loaded automatically, so manifest.hooks should only reference additional hook files.

2026-01-08T19:10:53.349Z [ERROR] Error: LSP config validation failed for .lsp.json in plugin solargraph 2026-01-08T19:10:53.349Z [DEBUG] 2 error(s) loading LSP servers from plugin: solargraph

Additional Context

Fix for issue 1: Remove "hooks": "./hooks/hooks.json" from .claude-plugin/plugin.json

Fix for issue 2: Remove loggingConfig block from .lsp.json: { "ruby": { "command": "solargraph", "args": ["stdio"], "extensionToLanguage": { ".rb": "ruby", ".rake": "ruby", ".gemspec": "ruby"

  • },
  • "loggingConfig": {
  • "env": {
    
  •   "SOLARGRAPH_LOG": "debug"
    
  • }
    
    } } }

dchersey avatar Jan 08 '26 19:01 dchersey

Fixed in #27.

loggingConfig is documented but not yet implemented in Claude Code 2.1.1. Removed to fix validation errors. Will reintroduce once supported.

boostvolt avatar Jan 08 '26 20:01 boostvolt