-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
haskell-language-server: GHC ABIs don't match! #321569
Comments
Thanks for reporting this. That ABI mismatch detection is sadly a bit brittle. I will investigate. |
Okay, as step 1 I can offer a workaround: |
Okay, after further investigation: This is not a regression but a case which I think never worked. The haskell-language-server shell wrapper which detects mismatches in core dependencies will fail if you have multiple versions of a ghc boot package present at runtime. For the time being my above mentioned workaround should alleviate this problem, but this is of course annoying. I will need to confer with HLS upstream about this as that wrapper script is directly out of the hls repo. Thanks again for the report. |
I have figured out two fixes for your problem:
|
Great, it works as you described. I did work at some point at 23.11, but from what I understand this might have been a happy coincidence. |
…ches for Inspired by: haskell/haskell-language-server#3214 (comment) It should be enough to check only for ghc and template-haskell Fixes NixOS#321569
…ches for Inspired by: haskell/haskell-language-server#3214 (comment) It should be enough to check only for ghc and template-haskell Fixes NixOS#321569
Describe the bug
When trying to start the haskell-language-server (
haskell.packages.ghc965.ghcWithHoogle (hpkgs: with hpkgs; [cabal-install stack haskell-language-server ])
it gives an ABI error because of version hash differences:
When comparing the versions it shows that the command adds some version hashes without package names.
Seems related to #199834, but I don't understand the problem well enough to be certain.
Notify maintainers
@maralorn
Metadata
(flake-based: github:nixos/nixpkgs/dd457de7e08c6d06789b1f5b88fc9327f4d96309)
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: