Repository navigation
Description
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:
(done in fix: install perl-dap, erlang-ls and the Vue.js language server into the folders of their templates #2054: it installs intoperl-dapinstalls into~/.lsp4ij/dap/perl-lsp. The folder is named after the archive it downloads (perllsp-*from EffortlessMetrics/perl-lsp, which has bothperllspandperl-dap), not after the template. Every other installer names its folder after the template id, not after the repository:harper-ls(repositoryAutomattic/harper),sysml-lsp(Open-MBEE/OpenSysML),jdt-ls. Sincedap/andlsp/are separate folders anyway, it doesn't overwrite theperl-lsptemplate's~/.lsp4ij/lsp/perl-lsp, so it should simply be~/.lsp4ij/dap/perl-dap. (The same archive is downloaded twice that way, which is fine for two templates that can be used on their own.)~/.lsp4ij/dap/perl-dap)clangdunpacks into~/.lsp4ij/lspitself, not into a folder of its own. Its command needs a check that finds the folder named after its version, as Installers: a server created when its binary is already installed keeps the template's command (and three test gaps from CodeRabbit) #2011 proposes, so fix: install perl-dap, erlang-ls and the Vue.js language server into the folders of their templates #2054 left it.(done in fix: install perl-dap, erlang-ls and the Vue.js language server into the folders of their templates #2054: it installs intoerlang-lsunpacks into~/.lsp4ij/lsp/erlang.~/.lsp4ij/lsp/erlang-ls)vue-js-language-serveruses(done in fix: install perl-dap, erlang-ls and the Vue.js language server into the folders of their templates #2054: it installs into~/.lsp4ij/lsp/vue-js-language-server-ls, with an extra-ls~/.lsp4ij/lsp/vue-js-language-server), and still has nonode_modulesin itsworkingDir, as the other npm installers have.sdl-lspdownloads into the project,$PROJECT_DIR$/.sdlb, and thejdtlsinstaller's command puts its data into$PROJECT_DIR$/jdtls-data. If that's meant, the user might want to know before files show up in the project (see Installer: ask before installing, and say what goes where #1958).The example of the download task in the template docs and in the Javadoc of(done in docs: take the examples of the download task from the camel-lsp-server and perl-lsp installers #2050)DownloadTaskwas a copy of thesdl-lspinstaller from before cbe50d3: it downloaded a snapshot fromoss.sonatype.orginto~/.lsp4ij/lsp/sdl-lsp, setjava -jar ${output.dir}/${output.file.name}without quotes, and used the old asset patternsdl-lsp-*-jar-with-dependencies.jar. The examples now come from thecamel-lsp-serverandperl-lspinstallers.(done in fix: install the CSS and ESLint language servers into one copy of their npm package #2052)vscode-css-language-serverandvscode-eslint-language-servereach install the wholevscode-langservers-extractedpackage into their own folder, so it's there twice.(done in docs: say that the CSS language server template installs the server, instead of asking for VS Code #2051)vscode-css-language-server: its README and docs page still ask to install VS Code, while its template has started the copy that its installer puts in~/.lsp4ij/lsp/vscode-css-language-serversince d5942bf.(no installer needed: since feat: set vscode html ls as dev #1147 its template is shown only when LSP4IJ runs in a development sandbox,vscode-html-language-serverhas no installer and points to VS Code's own copy instead, although the same package has the HTML server too."dev": true, as IntelliJ has HTML support of its own)
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 |
clangd |
~/.lsp4ij/lsp itself (with clangd*/ in it) |
~/.lsp4ij/lsp/clangd |
erlang-ls |
~/.lsp4ij/lsp, the archive unpacks into erlang/ |
~/.lsp4ij/lsp/erlang-ls |
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 |
vscode-langservers-extracted each |
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)
(done in fix: small template and installer bugs from #1959, #1960, #1961 and #1947 #1981)erlang-ls: the template startsescript $PROJECT_DIR$/erlang_ls, from the project, the installerescript ~/.lsp4ij/lsp/erlang/erlang_ls.(done in fix: small template and installer bugs from #1959, #1960, #1961 and #1947 #1981)jdtls: the template uses-configuration "~/.cache/jdtls" -data "$DATA_DIR", the installer-configuration "$USER_HOME$/.cache/jdtls" -data "$PROJECT_DIR$/jdtls-data". (The~without a shell is in Templates:sh -cdrops arguments, andsh -sbreaks Ruby #1954.)
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-lshasastro,python-debugpyhasdebugpy; - 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
jdtlsis namedjdtls, its template id isjdt-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
fix: small template and installer bugs from #1959, #1960, #1961 and #…
lagergren commentedon Nov 13, 2026
0.30.0 fixes the section Template and installer disagree, in #1981:
erlang_lsfrom~/.lsp4ij/lsp/erlang, where its installer puts it, with the path in quotes. The installer's check also looks forescriptnow, instead of anerlangprogram, which Erlang doesn't have.-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.muescha commentedon Nov 20, 2026
One more on(done in #2050)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 ofDownloadTask. Besides the folder, both are out of date in:the URL, a snapshot on(done in docs: take the examples of the download task from the camel-lsp-server and perl-lsp installers #2050)oss.sonatype.org, which most likely no longer works since OSSRH was shut down in 2025 (not checked);the command(done in docs: take the examples of the download task from the camel-lsp-server and perl-lsp installers #2050)java -jar ${output.dir}/${output.file.name}, without the quotes around the path that the templates got in fix: small template and installer bugs from #1959, #1960, #1961 and #1947 #1981;the asset pattern(done in docs: take the examples of the download task from the camel-lsp-server and perl-lsp installers #2050)sdl-lsp-*-jar-with-dependencies.jarin thegithubexample, while the release asset is nowsdl-lsp.jar.Since(done in #2050)sdl-lspis 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 docs: take the examples of the download task from the camel-lsp-server and perl-lsp installers #2050)camel-lsp-serverfor downloading a JAR: it downloads into$USER_HOME$/.lsp4ij/lsp/camel-lsp-serverand setsjava -jar "${output.dir}/${output.file.name}", with the quotes;(done in docs: take the examples of the download task from the camel-lsp-server and perl-lsp installers #2050)perl-lspfor an asset with*, asperllsp-*-x86_64-unknown-linux-gnu.tar.gz.lagergren commentedon Nov 20, 2026
An update on this list:
DownloadTask, from the camel-lsp-server and perl-lsp installers, as suggested above."dev": true), as IntelliJ has HTML support of its own. So it needs no installer.~/.lsp4ij/lsp/vscode-css-language-serversince d5942bf. docs: say that the CSS language server template installs the server, instead of asking for VS Code #2051 updates them.fix: install perl-dap, erlang-ls and the Vue.js language server into …
docs: say that the CSS language server template installs the server, …
fix: install perl-lsp and perl-dap where their checks and commands lo…
fix: install the CSS and ESLint language servers into one copy of the…
fix: run the npm install of the Vue.js language server in its node_mo…
chore: the installers of the Python Debugpy and VSCode JS Debug templ…
feat: the macro $ProjectLocationHash$, the name of the project follow…
fix: the JDT Language Server template keeps the data of each project …
chore: the installers of the Python Debugpy and VSCode JS Debug templ…
chore: the installers of the Python Debugpy and VSCode JS Debug templ…
fix: the clangd installer extracts clangd into ~/.lsp4ij/lsp/clangd, …
fix: the sdl-lsp installer downloads sdl-lsp into ~/.lsp4ij/lsp/sdl-l…
chore: each installer has the id of its template, and the name of its…
chore: the folder of the JDT Language Server template is named after …
chore: the id of the Julia debug adapter template is julia-debugadapt…
feat: the macro $ProjectLocationHash$, the name of the project follow…
fix: the JDT Language Server template keeps the data of each project …