Repository navigation
Description
Found while going through all templates for #1954; collected in #1943.
Summary
Most download installers look up the latest release, with "github" or "maven" in their installer.json, and have a fixed "url" next to it. DownloadTask.getDownloadUrl uses that url only when the lookup finds nothing:
if (downloadUrl == null) {
context.print("Cannot retrieve url from 'github/asset', 'maven', fallback to the 'url' JSON property");
}So normally the latest version is installed. But the lookup finds nothing more often than one would think, and then an old version gets installed, with only that line in the installer's output:
- The GitHub API's rate limit:
GitHubAssetFetcherasksapi.github.comwithout a token, which allows 60 requests an hour per IP address; behind a company proxy, that's soon used up. - No access to the API, behind a proxy or firewall that lets
github.com/…/releases/downloadthrough. - A renamed asset: the lookup only looks at the latest matching release; if a project renames its assets, the pattern stops matching, and every install falls back.
Where the versions are fixed
| Template | Lookup | Fixed version |
|---|---|---|
perl-lsp, perl-dap |
GitHub, latest release | fallback v0.15.0 |
rust-analyzer |
GitHub, latest release | fallback 2025-05-12 |
sysml-lsp |
GitHub, latest release | fallback v0.9.1 |
vscode-js-debug |
GitHub, latest release | fallback v1.100.1 |
camel-lsp-server |
Maven Central, latestVersion |
fallback 1.31.0 |
clangd |
GitHub, prereleases ("prerelease": true), i.e. the snapshots |
fallback snapshot_20250518; " https://…"), so it fails when it's needed |
terraform-ls |
none | always 0.36.5, from releases.hashicorp.com |
jdtls |
none | jdt-language-server-latest.tar.gz, a snapshot |
sdl-lsp |
none | releases/latest/download/sdl-lsp.jar, always the latest without the API |
The fallbacks were current when they were written, and get older with every release.
Ideas
- Let Renovate update the versions. LSP4IJ doesn't use Renovate or Dependabot yet. Renovate's regex managers can find versions in any file, such as
v0.15.0in a URL ininstaller.json, check them against GitHub releases or Maven Central, and open a PR when there's a newer one. Dependabot can't read versions from arbitrary JSON. - A scheduled check, e.g. next to the existing
nightly.yml: for each template, run the lookup and check that there's a matching asset for every system and architecture, that the fallbackurlstill answers, and how far it's behind. That catches a renamed asset before users silently fall back. - Say when the fallback is used, as a warning, not only a line in the output: "Couldn't look up the latest release of perl-lsp (GitHub's rate limit?), installed the fallback v0.15.0."
- A policy per template: "latest" (as most do today) or a tested, fixed version that Renovate keeps current. "Latest" can also break things when a server changes; a fixed version that's updated by PR is reproducible and still current. clangd's snapshots and terraform-ls's fixed version would then be choices that are written down.
- Show the installed version and when there's a newer one, e.g. "Update available" in the LSP Consoles. Today a newer version is only installed with Reinstall, and nothing says there is one. (The installed version could come from the download, or from
serverInfoin theinitializeresponse.) - Avoid the API where possible: a project that publishes its assets without the version in the name can be downloaded from
…/releases/latest/download/<asset>, without the API and its rate limit, assdl-lspdoes. Forperl-lspthat doesn't work, since its asset names have the version.
Folders, ids and the other mismatches between templates are in #1960.
How this was checked
Claude Code read DownloadTask, GitHubAssetFetcher, MavenArtifactFetcher and all installer.json files at 42b4e25, and looked for a Renovate or Dependabot configuration in the repository (there's none). Nothing was downloaded, and the rate limit wasn't hit on purpose.
Activity
fix: small template and installer bugs from #1959, #1960, #1961 and #…
lagergren commentedon Nov 13, 2026
0.30.0 fixes clangd's macOS fallback URL, which started with a space, in #1981. The fallback versions are as old as they were, and the ideas above are still open.
muescha commentedon Nov 13, 2026
Two more installers whose GitHub downloads don't match the releases any more, found while going through #1981. The erlang-ls installer has the same problem, see #1991.
For a
githubdownload, LSP4IJ looks only at the first 30 releases, takes the first one that matches"prerelease", and in it the first asset whose name contains the installer'sassetname (GitHubAssetFetcher). If none matches, it falls back to the installer'surl(DownloadTask).luau-lsp: the Linux x86_64 asset was renamed
luau-lsp-linux.zipon Linuxamd64(installer.json L27)luau-lsp-linux.zipluau-lsp-linux-x86_64.zipluau-lsp-linux.zipisn't part ofluau-lsp-linux-x86_64.zip, so nothing matches, and the installer has no fallbackurl. So on Linux x86_64, it can't download luau-lsp at all. Linux arm64 (luau-lsp-linux-arm64.zip), macOS (luau-lsp-macos.zip) and Windows (luau-lsp-win64.zip) still match. The keyamd64is fine: LSP4IJ falls back toos.arch, which isamd64there.sysml-lsp: works today, but only just
sysml-lsp-linux-amd64.tar.gz(L19-L31)sysml-lsp-linux-amd64.tar.gzOpen-MBEE/OpenSysML publishes a nightly prerelease almost every day. If there's no new release for about a month, the latest one drops off the first page, and the installer finds none. It then falls back to its
url, which is v0.9.1 from September (L33-L45), so it installs an old version without saying so. Asking for/releases/latestwhen prereleases aren't wanted, or loading more releases per page, would avoid that for any repository with many prereleases.Since the name is matched as part of the asset name,
sysml-lsp-linux-amd64.tar.gzalso matchessysml-lsp-linux-amd64.tar.gz.spdx.json, which v0.12.1 has next to each archive. The archive comes first in the list, so it's the one downloaded. clojure-lsp's.zip.sha256files are the same.How this was checked
Claude Code matched the asset names of all installers that download from GitHub against the releases LSP4IJ loads, with the GitHub API and the same rules as
GitHubAssetFetcher. Nothing was installed.fix: look up the latest GitHub release among the 100 newest releases,…
muescha commentedon Nov 21, 2026
An update on the table above, as of today:
lemminx(new since #1962)terraform-lsperl-lsp,perl-dapSo
lemminxis now a second template, next toterraform-ls, that always installs a fixed version, up to date today, but it will get older the same way. That makes ideas 1 and 2 above a bit more useful: for these two, the fixed version is all users ever get, not just a fallback.The perl-lsp v0.17.0 archives still have both
perllspandperl-dap, so updating the two fallbacks would only be the version number.Claude Code checked the
installer.jsonfiles onmainat b982bd4, the releases on releases.hashicorp.com, download.eclipse.org and GitHub, and the contents of the v0.17.0 archive for macOS arm64. Nothing was installed.chore: install terraform-ls 0.39.1 and fall back to perl-lsp v0.17.0 (#…
lagergren commentedon Nov 24, 2026
mainnow has all three updates from the table above: luau-lsp downloadsluau-lsp-linux-x86_64.zipon Linux x86_64 (#1993), terraform-ls installs 0.39.1, and perl-lsp and perl-dap fall back to v0.17.0 (#2083). lemminx is still fixed at 0.31.2, which is the latest today. Ideas 1 and 2 above are still open.