-
-
Notifications
You must be signed in to change notification settings - Fork 389
ghcup integration #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I kind of like the idea of option number two, which we could either integrate with the VS Code extension or the wrapper. |
I do not think we should call ghcup from the wrapper or hls directly. Automagically installing everything could be very annoying for power users. Besides, it does not feel to me like the unix philosophy, too many responsibilties for HLS. Also, does the LSP protocol support such a workflow? |
I think it is inevitable that we will have to add vscode config options to tuning auto download: disable it entirely, customize the path where executables lives, etc |
@jneira jneira we could check if chocolatey is installed and offer to install it. But I think the ideal scenario would be that GHC/cabal/stack gets installed somewhere in the vscode extension's globalStorage directory so it doesn't mess with the global install at all |
Does someone have information on my questions regarding ghcup installing hls? |
I can give some answers:
|
Ok, so my take is:
Can anyone do the tarball part? (3.) |
I have implemented this here: https://gitlab.haskell.org/haskell/ghcup-hs/-/merge_requests/35 The file structure is as follows, please confirm this is correct:
I uploaded preliminary tarballs here: https://files.hasufell.de/hls/ The contents of the per-platform tarballs must be as follows:
If this is all correct, someone should upload said tarballs to the release page, for Linux and mac. |
Done and released, thanks all! |
GHCup integration open questions
Scope
There are two main scopes afais:
GHCup installing hls
There are a number of unanswered questions:
hlswrapper-<hlsver>
would usehls-<ghcver>-<hlsver>
)Outstanding issues that need to be solved:
hls --version
does not work #238HLS calling/using ghcup
My opinion on 1. is: rather not. It would be disruptive, but could be guarded with a config/cli switch. It could also be done in a different directory than
~/.ghcup
to not collide.The text was updated successfully, but these errors were encountered: