vscode-haskell
vscode-haskell copied to clipboard
Error al descargar extensión Haskell
Type: Bug
He intentado instalar la extensión de Haskell y me aparece el siguiente error: HLS does not support GHC 9.2.5 yet. Espero que me podais ayudar, muchas gracias.
Extension version: 2.2.1 VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z) OS version: Windows_NT x64 10.0.19043 Modes: Sandboxed: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 1992) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 7.85GB (1.84GB free) |
| Process Argv | --crash-reporter-id 95113654-105f-41d8-84b6-7ed012bd7562 --crash-reporter-id 95113654-105f-41d8-84b6-7ed012bd7562 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyonecf:30548226
pyindex848cf:30577861
nodejswelcome1cf:30587006
fc301958:30595537
3biah626:30602489
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
89544117:30613380
HLS does not support GHC 9.2.5 yet.
That sounds like you try to use this extension with an unsupported GHC version, in particular 9.2.5. Be sure to consult the docs to see which ghc version are currently supported: https://haskell-language-server.readthedocs.io/en/latest/support/ghc-version-support.html
Switch to an older ghc version, for example via ghcup in powershell:
> ghcup install ghc 9.2.4
> ghcup set ghc 9.2.4
Ideally, then the extension should work out of the box.
HLS does not support GHC 9.2.5 yet.
That sounds like you try to use this extension with an unsupported GHC version, in particular 9.2.5. Be sure to consult the docs to see which ghc version are currently supported: https://haskell-language-server.readthedocs.io/en/latest/support/ghc-version-support.html
Switch to an older ghc version, for example via ghcup in powershell:
> ghcup install ghc 9.2.4 > ghcup set ghc 9.2.4Ideally, then the extension should work out of the box.
Unfortunately, it still doesn't. Personally, HLS Extension in VS Code returns "Failed to find a HLS version for GHC 9.2.5 Executable names we failed to find: haskell-language-server-9.2.5,haskell-language-server" Do you know, how to fix this problem?
Please follow the instructions here: https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems
and provide the logs, so we can take a look.
Should I include the whole output? I figured till here is the actual interesting part. I'm not quite sure why it is still looking for an executable 9.2.5, when I've already globally set to 9.2.4
Tool versions found on the $PATH cabal: 3.6.2.0 stack: 2.9.1 ghc: 9.2.4
Consulting the cradle to get project GHC version... Project GHC version: 9.2.5 haskell-language-server exe candidates: ["haskell-language-server-9.2.5","haskell-language-server"] Failed to find a HLS version for GHC 9.2.5 Executable names we failed to find: haskell-language-server-9.2.5,haskell-language-server 2022-11-20T20:50:34.850752Z | Info | Starting server [Trace - 9:50:34 PM] Received request 'window/showMessageRequest - (0)'. [Trace - 9:50:34 PM] Received response 'initialize - (0)' in 980ms. [Trace - 9:50:34 PM] Sending notification 'initialized'. [Trace - 9:50:34 PM] Sending notification 'workspace/didChangeConfiguration'. [Trace - 9:50:34 PM] Sending notification 'textDocument/didOpen'. 2022-11-20T20:50:34.856103Z | Error | LSP: no handler for: SInitialized 2022-11-20T20:50:34.856569Z | Error | LSP: no handler for: SWorkspaceDidChangeConfiguration 2022-11-20T20:50:34.856947Z | Error | LSP: no handler for: STextDocumentDidOpen [Trace - 9:53:27 PM] Sending response 'window/showMessageRequest - (0)'. Processing request took 172653ms [Trace - 9:50:34 PM] Received request 'window/showMessageRequest - (0)'. [Trace - 9:50:34 PM] Received response 'initialize - (0)' in 980ms. [Trace - 9:50:34 PM] Sending notification 'initialized'. [Trace - 9:50:34 PM] Sending notification 'workspace/didChangeConfiguration'. [Trace - 9:50:34 PM] Sending notification 'textDocument/didOpen'. 2022-11-20T20:50:34.856103Z | Error | LSP: no handler for: SInitialized 2022-11-20T20:50:34.856569Z | Error | LSP: no handler for: SWorkspaceDidChangeConfiguration 2022-11-20T20:50:34.856947Z | Error | LSP: no handler for: STextDocumentDidOpen [Trace - 9:53:27 PM] Sending response 'window/showMessageRequest - (0)'. Processing request took 172653ms
Maybe this is a stack project? Like, is there a stack.yaml in your project?
Yes there is. I create projects with stack new
Yes there is. I create projects with stack new
and stack build in the folder. Before HLS worked perfectly in VS Code, when i opened the folder. After using "stack init" once it automatically updated to ghc 9.2.5 and led to this issue, unfortunately. I orginally installed all with GHCup.
Re-run the GHCup bootstrap script. It will ask you if you want to enable better stack integration. Answer with YES. Then make sure your stack config does NOT say system-ghc: true.
@hasufell So I just re-run the bootstrap where I agreed to all the questions. In my project I run the command "stack config set system-ghc false", but in VS Code is still tells me that it failed to find a HLS Version for GHC 9.2.5.
Share your entire project and your ~/.stack/config.yaml and your ~/.stack/hooks/ghc-install.sh.
@hasufell hi! i haven't changed any of them manually before files.zip
@sburan Still an issue? I just noticed, we haven't come back to you.
Closing due to inactivity