Skip to content

Templates: install folders and commands don't always match #1960

Done

Description

@muescha

Found while going through all templates for #1954; collected in #1943. None of this breaks much on its own; it's a list to tidy up, maybe in one PR.

Install folders

The rule the installers follow: the server goes into ~/.lsp4ij/lsp/<template id> or ~/.lsp4ij/dap/<template id>, named after the template id, not after the repository. These don't:

Overview of the folders that are still open, at b982bd4, updated at 8b83e2d for #2054 and #2057:

Template Installer puts it in By the rule it would be
perl-dap ~/.lsp4ij/dap/perl-lsp ~/.lsp4ij/dap/perl-dap (done in #2054)
clangd ~/.lsp4ij/lsp itself (with clangd*/ in it) ~/.lsp4ij/lsp/clangd
erlang-ls ~/.lsp4ij/lsp, the archive unpacks into erlang/ ~/.lsp4ij/lsp/erlang-ls (done in #2054)
vue-js-language-server ~/.lsp4ij/lsp/vue-js-language-server (since #2054), without node_modules ~/.lsp4ij/lsp/vue-js-language-server/node_modules
sdl-lsp $PROJECT_DIR$/.sdlb, in the project ~/.lsp4ij/lsp/sdl-lsp
jdtls its data in $PROJECT_DIR$/jdtls-data, in the project –
vscode-css-language-server, vscode-eslint-language-server one copy of vscode-langservers-extracted each one shared copy (done in #2052)

Template and installer disagree (done in #1981)

The template's command and the command the installer sets afterwards should start the same server; for two templates they point to different places: (done in #1981)

Versions

Fixed versions, fallbacks that go stale and clangd's snapshots are in #1961.

Ids and names

As far as seen, these are only cosmetic:

  • installer ids differ from their template ids: nine end in -installer (clangd-installer, clojure-lsp-installer, erlang-ls-installer, harper-ls-installer, perl-lsp-installer, rust-analyzer-installer, wgsl-analyzer-installer, perl-dap-installer, vscode-js-debug-installer), astro-ls has astro, python-debugpy has debugpy;
  • four installer names start with "Install and verify …" (gopls, sysml-lsp, go-delve, python-debugpy), the others use the server's name;
  • the language server and the debug adapter for Julia both have the id julia;
  • the template folder of jdtls is named jdtls, its template id is jdt-ls; its installer follows the id and uses ~/.lsp4ij/lsp/jdt-ls.

How this was checked

Claude Code compared the template.json and installer.json of all templates at 42b4e25; nothing was installed. Re-checked at b982bd4: the install folders above are still as described; #2041 changed only the commands of harper-ls, perl-lsp, clojure-lsp and jdtls, not their folders. That perl-dap and perl-lsp download the same archive comes from their github and asset entries, which are the same. Updated at 8b83e2d: #2054 moved perl-dap, erlang-ls and the Vue.js language server into the folders of their templates, and #2057 makes the perl-lsp and perl-dap installers put their servers where their checks and commands look for them.

Activity

  1. lagergren commented on Nov 13, 2026

    @lagergren
    Collaborator

    0.30.0 fixes the section Template and installer disagree, in #1981:

    • erlang-ls: the template starts erlang_ls from ~/.lsp4ij/lsp/erlang, where its installer puts it, with the path in quotes. The installer's check also looks for escript now, instead of an erlang program, which Erlang doesn't have.
    • jdtls: the template uses -configuration "$USER_HOME$/.cache/jdtls" -data "$PROJECT_DIR$/jdtls-data", as its installer does.

    The install folders, the two copies of vscode-langservers-extracted, and the ids and names are as they were.

  2. muescha commented on Nov 20, 2026

    @muescha
    ContributorAuthor

    One more on sdl-lsp: the example in the docs is a copy of its installer from before cbe50d3d, which moved the download to the latest GitHub release and into $PROJECT_DIR$/.sdlb. The same copy is in the Javadoc of DownloadTask. Besides the folder, both are out of date in: (done in #2050)

    Since sdl-lsp is now the only installer that downloads into the project instead of ~/.lsp4ij, it may be better to take the examples from another template, in the docs and in the Javadoc: (done in #2050)

  3. lagergren commented on Nov 20, 2026

    @lagergren
    Collaborator

    An update on this list:

  4. added
    bug
    on Nov 21, 2026
  5. added this to the 0.30.3 milestone on Nov 30, 2026
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

    buginstalltemplate-ls

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions