vscode-haskell
vscode-haskell copied to clipboard
Error getting the server executable: serverExecutablePath is set to "haskell.serverExecutablePath": "/Users/mukhammaddiyor/.local/bin/haskell-language-server-macOS-8.10.5" but it doesn't exist and it is not on the PATH
Hello!
I am using macOS m1 chip
I have been trying to install Haskell for two days and have not succeeded. I am running the terminal using Rosetta and could install GHCUP with HSL and stack.
However, when I install Haskell (Haskell language support powered by the Haskell Language Server) plugin on vscode and change settings to "haskell.serverExecutablePath": "/Users/mukhammaddiyor/.local/bin/haskell-language-server-macOS-8.10.5", I am constantly getting the above error.
Can someone help me?
hi, thanks for reporting the issue
I think that if you installed hls with ghcup the executable usually is under the .ghcup
folder (you could run which haskell-language-server-8.10.5
to confirm it)
otoh hls does not support M1 arch with prebuilt binaries, not sure if the ghcup version will do (see haskell/haskell-language-server#2008 and linked issues for more context)
//cc @hasufell
ghcup works natively on M1, but will not be able to install HLS there. I'm assuming the user runs ghcup under rosetta x86_64 compat.
To find the correct location of HLS, type:
ghcup whereis hls
Anyways, if the appropiate haskell-language-server executable is in PATH there is no need to set haskell.serverExecutablePath
Issue transferred to the vscode extension repo
@AlijonovMukhammaddiyor did you get to make hls working? afaik nowadays ghcup is able to download a hls version which works in arm based chips on macos
Probably not relevant any more, re-open if you feel there is something we can do.