Closed dreamsmasher closed 10 months ago
Putting this in settings.json as suggested by @hasufell worked for me:
"haskell.serverEnvironment": { "PATH": "${HOME}/.ghcup/bin:${PATH}" }
Thank you for adding this setting! I'm also on Arch Linux with Xfce and VSCodium, installed from the curl script.
Tentatively closing since it seems there's an appropriate setting for this in the extension now
We could add some logic in HLS, so it searches for a ghcup binary via:
~/.ghcup
)And then possibly ask the user if they want to augment their PATH via vscode settings.
I do think this is a client (extension) issue though. I think HLS itself should just expect to be launched with the correct PATH set.
Yes
I'm having some issues with getting the extension to work right - currently, my Cabal installation is from ghcup, and Stack is built from Cabal (GHC 8.8.3). When loading projects in VSCode, I keep getting the error
Project requires Cabal but it isn't installed
. Stack projects give me the same error but with Stack, and the installation link just takes me to the ghcup page.I've tried downloading the binary from the releases page and manually adding it to my configuration, as well as building it from source. No luck whatsoever, and using ghcide with the haskell-language-server-wrapper doesn't work either.
System: Arch Linux, i5-7600k, 16GB RAM, GHC 8.8.3
hie.yaml:
settings.json:
Any help would be appreciated, I'm currently doing fine with ALE/neovim but I'd like to be able to use an IDE for larger projects. Thanks!