Custom-compiled HLS does not start if the version is not yet available from GHCup

Aperta
#1,402 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
haskell, typescript

Direzione di ricerca

Start at the HLS discovery flow shown in the extension log, especially the whereis hls 2.15.0.0 and ghcup run --hls 2.15.0.0 entry points. Trace how a custom-installed HLS version is handled when GHCup has no download for it. Done means the server starts and the HLS start, restart, and stop commands work without requiring the vanilla channel.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status: needs triage
Your environment

Which OS do you use: Fedora Linux 44 Workstation

Steps to reproduce

Compile hls by running the following:

$ ghcup compile hls -g 2.15.0.0 --ghc 9.14.1

The version 2.15.0.0 is not available yet from GHCup main release channel, but the extension still tries to run the following an fails:

$ ghcup --no-verbose run --hls 2.15.0.0 --cabal 3.18.1.0 --stack 3.11.1 --install
[ Error ] Unable to find a download for Tool "hls" version '2.15.0.0' on detected platform x86_64-linux-fedora-44

And the server does not start.

I can workaround the problem by enabling the vanilla channel.
It provides the 2.15.0.0 version of HLS, but I believe the extension still runs the custom-compiled HLS.

Expected behaviour

HLS should start normally even if the version is not available from GHCup yet.

Actual behaviour

The server does not start. The commands "start HLS/restart HLS/stop HLS" do not work.

Include debug information

Paste the contents of extension specific log, you can check instructions about how to find it here

Extension log:
2026-09-21 02:21:36.2040000 [client] INFO Finding haskell-language-server
2026-09-21 02:21:36.2040000 [client] INFO Checking for ghcup installation
2026-09-21 02:21:36.2140000 [client] INFO found ghcup at ghcup
2026-09-21 02:21:36.2150000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd '/home/ruifengx'
2026-09-21 02:21:36.9580000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd '/home/ruifengx'
2026-09-21 02:21:37.0410000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c set -r' in cwd '/home/ruifengx'
2026-09-21 02:21:37.1090000 [client] INFO Executing 'ghcup --no-verbose list -t stack -c set -r' in cwd '/home/ruifengx'
2026-09-21 02:21:37.1840000 [client] INFO Executing 'ghcup --no-verbose whereis hls 2.15.0.0' in cwd '/home/ruifengx'
2026-09-21 02:21:37.2010000 [client] INFO Executing 'ghcup --no-verbose whereis cabal 3.18.1.0' in cwd '/home/ruifengx'
2026-09-21 02:21:37.2230000 [client] INFO Executing 'ghcup --no-verbose whereis stack 3.11.1' in cwd '/home/ruifengx'
2026-09-21 02:21:37.2590000 [client] INFO Executing 'ghc --numeric-version' in cwd '/home/ruifengx'
2026-09-21 02:21:37.3040000 [client] INFO Executing 'ghcup --no-verbose run --hls 2.15.0.0 --cabal 3.18.1.0 --stack 3.11.1 --install' in cwd '/home/ruifengx'
2026-09-21 02:21:37.3820000 [client] ERROR Error executing 'ghcup --no-verbose run --hls 2.15.0.0 --cabal 3.18.1.0 --stack 3.11.1 --install' with error code 27
2026-09-21 02:21:37.3820000 [client] ERROR stderr: [ Error ] []8;;https://errors.haskell.org/messages/GHCup-00010\GHCup-00010]8;;\] Unable to find a download for Tool "hls" version '2.15.0.0' on detected platform x86_64-linux-fedora-44
Lingua principale
TypeScript
Stelle
594
Fork
99
Merge medio
18h 19m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/vscode-haskell

Tutte le issue di haskell/vscode-haskell

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.