-
Notifications
You must be signed in to change notification settings - Fork 247
HLS is broken on 9.4 with a recent stack; passing flags while configuring tools #1816
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
Just for reference this is what the problem looks like when you run
|
I have a similar looking error with HLS 1.9 for GHC 9.2.5
|
Upstream issue, recently resolved: haskell/haskell-language-server#3427 |
This specific issue was, but the problem of how to pass flags to tools hasn't been resolved. The old solution of doing:
No longer works. The flag is ignored now. @sekunho This works for me now
Although note that you will want to add reinstallableLibGhc and nonReinstallablePkgs to the tools modules and modules for your project as in #1809 After that HLS works with 9.4. |
For now we have given up on making HLS compile from hackage. Instead we are now building it from the GitHub repo. To help with this we have added a pin for the current version to
It works better because there is a It should be in cache.zw3rk.com for the most recent GHC releases (8.10.7, 9.0.2, 9.2.8, 9.4.5). The code that includes it in the cache is Lines 58 to 63 in 4835f2b
|
We've had to do the same, so it's nice to see that we can replace our hacky version with yours. Thanks! |
HLS has build problems because of a version bump in
some
without coordination withdependent-sum
: haskell/haskell-language-server#2969This results in a build failure with the latest stackage nightly on GHC 9.4.
To reproduce:
Init a new repo
nix flake init --template templates#haskell-nix --impure
Replace flake.nix with the file below
Add stack.yaml
I can see 3 solutions but I can't seem to get any of them to work:
some
to the oldersome-1.0.3
instead ofsome-1.0.4.1
. I tried to do this butstack.yaml
doesn't seem to affect the tools.-allow-newer
when building HLS. Doesn't seem like anything I try ends up affecting the configureFlags while building HLS.some-1.0.3
is available, likenightly-2022-11-11
, this doesn't seem to affect how HLS is built.How can I build HLS against 9.4? Preferably with option 1?
The text was updated successfully, but these errors were encountered: