Skip to content

jq-lsp template: the installer sets an option jq-lsp rejects #1956

Closed

Description

@muescha

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

  1. added this to the 0.30.0 milestone on Nov 11, 2026
  2. added a commit that references this issue on Nov 12, 2026
    da4b1d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions