есть
установил в vscode extension, сделал cabal —init, но hsl не работает. Запускаю в wsl все
Это в workspace файле:
"settings": {
"haskell.trace.server": "verbose",
"haskell.trace.client": "debug",
"haskell.serverEnvironment": {
"PATH": "${HOME}/.ghcup/bin:$PATH"
},
}
постоянно пишет Couldn't start client Haskell (haskell)
выхлоп расширения
2023-09-14 19:24:40.3100000 [client] INFO Found server executable in $PATH: haskell-language-server-wrapper
2023-09-14 19:24:40.3110000 [client] INFO Activating the language server in working dir: /home/sergey/workspace/haskell (the workspace folder)
2023-09-14 19:24:40.3110000 [client] INFO run command: haskell-language-server-wrapper --lsp
2023-09-14 19:24:40.3110000 [client] INFO debug command: haskell-language-server-wrapper --lsp
2023-09-14 19:24:40.3110000 [client] INFO server environment variables:
2023-09-14 19:24:40.3110000 [client] INFO PATH=${HOME}/.ghcup/bin:$PATH
2023-09-14 19:24:40.3110000 [client] DEBUG document selector patten: /home/sergey/workspace/haskell/**/*
2023-09-14 19:24:40.3170000 [client] INFO Starting language server
[Error - 10:24:40 PM] Starting client failed
Launching server using command haskell-language-server-wrapper failed.
[Info - 10:25:26 PM] Stopping the server
[Info - 10:25:38 PM] Stopping the server
[Info - 10:28:52 PM] Stopping the server
[Info - 10:29:03 PM] Starting the server
[Info - 10:29:03 PM] Server started
[Error - 10:29:03 PM] Starting client failed
Launching server using command haskell-language-server-wrapper failed.
если запускать руками haskell-language-server-wrapper, то выхлоп такой:
Step 1/4: Finding files to test in /home/sergey/workspace/haskell
Found 2 files
Step 2/4: Looking for hie.yaml files that control setup
Found 1 cradle
()
Step 3/4: Initializing the IDE
Step 4/4: Type checking the files
2023-09-14T19:28:29.317373Z | Info | Cradle path: src/MyLib.hs
2023-09-14T19:28:29.317502Z | Warning | No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for src/MyLib.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2023-09-14T19:28:29.454751Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2023-09-14T19:28:32.194735Z | Info | Interface files cache directory: /home/sergey/.cache/ghcide/haskell-0.1.0.0-inplace-8cbafedf48b484d6e73138baaee5ed944943144e
2023-09-14T19:28:32.195225Z | Info | Making new HscEnv. In-place unit ids: [haskell-0.1.0.0-inplace]
2023-09-14T19:28:32.287742Z | Info | Cradle path: app/Main.hs
2023-09-14T19:28:32.287883Z | Warning | No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for app/Main.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2023-09-14T19:28:32.621737Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2023-09-14T19:28:35.800641Z | Info | Interface files cache directory: /home/sergey/.cache/ghcide/main-a9ac1e59270739aead3c12048fc93f231409a9c1
2023-09-14T19:28:35.800869Z | Info | Interface files cache directory: /home/sergey/.cache/ghcide/haskell-0.1.0.0-inplace-68a0ab4c4f9f52acb89a073ec6fd34844e206ac8
2023-09-14T19:28:35.800990Z | Info | Making new HscEnv. In-place unit ids: [main, haskell-0.1.0.0-inplace]
Completed (2 files worked, 0 files failed)
подскажите плз, в чем может быть проблема?
тонкости настройки и отладки инструментов будет эффективнее обсуждать в @haskellru, здесь новички язык изучают
Обсуждают сегодня