Solargraph Plugin does not work - errors in plugin.json (fixes provided)
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:
- 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.
- Invalid loggingConfig field: The .lsp.json file contains a loggingConfig field that fails Claude Code's LSP config schema validation.
Steps to Reproduce
- Install solargraph plugin: /plugin install solargraph@claude-code-lsps
- Restart Claude Code
- Open a .rb file
- Try to use any LSP feature (e.g., documentSymbol)
- 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" -
} } }}
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.