You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
jq-lsp template: the installer sets an option jq-lsp rejects #1956
A follow-up of #1954, found while going through all templates; collected in #1943.
Summary
The jq-lsp template starts jq-lsp, which is right. Its installer runs go install github.com/wader/jq-lsp@latest and then sets the command to jq-lsp -mode=stdio.
-mode=stdio is an option of gopls. The jq-lsp installer looks copied from the gopls one, which has gopls -mode=stdio on the same line; its hint text still says "Install Go to install the Go Language Server (gopls)" (line 28).
jq-lsp only knows --help, --version, --eval and --stdio (which it ignores, stdio being the default), and stops on anything else with "Unknown option". So after installing, the server exits right away, and LSP4IJ restarts it until it gives up and disables it (see #1944).
It came with the template in 44c1c42 ("feat: add JQ LSP").
Suggested fix
In templates/lsp/jq-lsp/installer.json:
set the command after install to jq-lsp (or jq-lsp --stdio);
say "jq-lsp" instead of "the Go Language Server (gopls)" in the hint.
How this was checked
Claude Code found this from the template files at 42b4e25 and from jq-lsp's source at accf4348; it hasn't been run, as jq-lsp isn't installed here.
Activity
fix: start the commands of the templates without sh -c or sh -s (redh…