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

Abierto
#1,402 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
haskell, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
TypeScript
Estrellas
594
Forks
99
Merge medio
18 h 19 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de haskell/vscode-haskell

Todos los issues de haskell/vscode-haskell

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.