vscode-haskell icon indicating copy to clipboard operation
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

Open AlijonovMukhammaddiyor opened this issue 3 years ago • 5 comments

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?

AlijonovMukhammaddiyor avatar Aug 31 '21 01:08 AlijonovMukhammaddiyor

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

jneira avatar Aug 31 '21 14:08 jneira

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

hasufell avatar Aug 31 '21 19:08 hasufell

Anyways, if the appropiate haskell-language-server executable is in PATH there is no need to set haskell.serverExecutablePath

jneira avatar Aug 31 '21 20:08 jneira

Issue transferred to the vscode extension repo

jneira avatar Nov 22 '21 07:11 jneira

@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

jneira avatar Nov 22 '21 07:11 jneira

Probably not relevant any more, re-open if you feel there is something we can do.

fendor avatar Dec 05 '22 09:12 fendor