ghcup-hs icon indicating copy to clipboard operation
ghcup-hs copied to clipboard

HLS 2.12.0.0 not working with GHC 9.12.2

Open Raveline opened this issue 2 weeks ago • 6 comments

I have a ghcup with only the following installed:

  • GHC 9.12.2
  • Cabal 3.12.1.0
  • HLS 2.12.0.0

GHC and Cabal work as expected. When running haskell-language-server-wrapper to check that everything is properly setup, I get:

GHC ABIs don't match!

Expected: Cabal-3.14.1.0:4d6d11f65b1877459a8acc14ab9a6a11 Cabal-syntax-3.14.1.0:ebb1013975112a39306c9718e7c080a0 array-0.5.8.0:ebf88dc9f690338d1c5e9d44e41cf63b base-4.21.0.0:646dd32ab223b3363f4d89ca5207df33 binary-0.8.9.3:f430eff1acc4fcefca1f58545e3388dc bytestring-0.12.2.0:20c6ea9f25a0735634930c91ea4147b1 containers-0.7:313e6670bc5d717f0c2573d211fff955 deepseq-1.5.1.0:2631c38c11ae9e66b24bddda019e85dd directory-1.3.9.0:729bdd774d5780da39beef3100fd5ce7 exceptions-0.10.9:6b239abb5b526869a80457d46aa62155 file-io-0.1.5:9fc440c801f197348eadc555a0cc57e3 filepath-1.5.4.0:a980d821489d56b811cc784265b8f2f0 ghc-9.12.2:84553dd92e6162e57dddb815ce2e0509 ghc-bignum-1.3:c87624bfd6455e5f7b0ab61a674f8989 ghc-boot-9.12.2:c08f8bc80a619a45fa73d40c15fdc3f3 ghc-boot-th-9.12.2:ee419a5d75a9288f457b1dac07685806 ghc-compact-0.1.0.0:d5c0cfbdaa0e0ebc67a64dc16603e47a ghc-experimental-9.1202.0:e7e98515423becbacfaef2ef01d1ec27 ghc-heap-9.12.2:4eb8211cabb020769877789f49da3867 ghc-internal-9.1202.0:a3cf2106449c2f9763280455e50387e0 ghc-platform-0.1.0.0:2d36a5b8bfc7c495180dd78cb3f5507b ghc-prim-0.13.0:35d391abfe7a99129134ea399ea4ee02 ghc-toolchain-0.1.0.0:4062531730b697f220e248ead0638b60 ghci-9.12.2:84d423fe3665705a0d654abaa2e82b34 haddock-api-2.30.0:67a7a8aef0ac17186656b0b242732779 haddock-library-1.11.0:ebfa5d3896ac3671306919e57a616d17 haskeline-0.8.2.1:c331467c6aa6cde262b180d8618b56be hpc-0.7.0.2:d86eda56a2ea2ba3dc2df4b138b0146c integer-gmp-1.1:ae72e0adf087bcb309b4949b01027e8b mtl-2.3.1:7d2dc422877b8d72c0f4d50279e25ee7 os-string-2.0.7:b639dff9bc5183eb3b97ab2baed6ffa9 parsec-3.1.18.0:32181ab933c342d0e75b23f67662eff8 pretty-1.1.3.6:00b5a3437106c61266ce5da7196ccaa0 process-1.6.25.0:8bfbdf933e6028f7e850fecb4342905a rts-1.0.2:f1c6d8ec5f245fb25a4c98a26aaeb8c2 semaphore-compat-1.0.0:d8dc6e2872e4753eb1db8783ac4b3947 stm-2.5.3.1:ada9bbc369669e16170588e45e3b2ef1 system-cxx-std-lib-1.0:00000000000000000000000000000000 template-haskell-2.23.0.0:35f84a7ae34ba54d00da9c621a50a2af terminfo-0.4.1.7:c2a646768aad979c41bc2d3879cc2089 text-2.1.2:e1435b9bda3f78c273b965efa987ff6b time-1.14:0ca6ee1dba0f2f767f6602193a1f9a8f transformers-0.6.1.2:d60e41caccca25398f4078a6a096bb7e unix-2.8.6.0:e343fd77d468d4a9f6ad1cc95c08fbac xhtml-3000.2.2.1:359b6308744f591ab88597fec395d6f5
Got:      Cabal-3.14.1.0:a255e8390df3b549811e3e8618c53df0 Cabal-syntax-3.14.1.0:4e47dce01ec53a15eb8b20c6fa065c53 array-0.5.8.0:1b5ec37dd9ab6ec0832ec6fafd36e7f3 base-4.21.0.0:3a91f2ba59b874017c5859c1c46e8daf binary-0.8.9.3:94432b947f9247d585448a50a0628e74 bytestring-0.12.2.0:dbda1d3f801555e28cb0c496ccd724cb containers-0.7:b3f321013cb8935256a95961dee627c2 deepseq-1.5.1.0:c62a017e75683d51fca98637a66416b3 directory-1.3.9.0:052419e661010a0474e81246a8a1d57d exceptions-0.10.9:e4e2896cf21f458952926d0727a080fe file-io-0.1.5:64f79d858c9e6ca94d1b31c19aed059d filepath-1.5.4.0:6f5e94af984b591f2f81e2784f6ade0c ghc-9.12.2:ca72ed143d7244d06957ff1763b1cfe0 ghc-bignum-1.3:c87624bfd6455e5f7b0ab61a674f8989 ghc-boot-9.12.2:cbae8b2616b8278595d928d6c18bc03e ghc-boot-th-9.12.2:5f16eb62f762a295c31aad248286ad10 ghc-compact-0.1.0.0:c11d95a7b40da1a2d0f6d5a5c2d8c2f0 ghc-experimental-9.1202.0:049fe3ed96193a14d378bbc2e26a8516 ghc-heap-9.12.2:1dc96669fca2aab7dbed7387dc36f521 ghc-internal-9.1202.0:a3cf2106449c2f9763280455e50387e0 ghc-platform-0.1.0.0:b4622a6aeb86ac0c7615338175a4f548 ghc-prim-0.13.0:35d391abfe7a99129134ea399ea4ee02 ghc-toolchain-0.1.0.0:c1f1eeaebb9b49bc2a6431b94513907a ghci-9.12.2:bb8937fcb8ffc2fe07bf9ddca08ece53 haddock-api-2.30.0:d9b8375a7586bf2130b84319b858dbb6 haddock-library-1.11.0:7ce013a5e0b59d1b5c31955a486151ca haskeline-0.8.2.1:97408aeca8431861aabacbc10528a765 hpc-0.7.0.2:52c04aac149f6a4373ab459ce446f6ff integer-gmp-1.1:c9124fb416911496e7a4fb962b6ddb70 mtl-2.3.1:908602beb0c3a5b74af5c509822787e5 os-string-2.0.7:7677bb9b842d6fc25b027ddc95e99bb3 parsec-3.1.18.0:49dde4dabbe6fd1d54b5503e2b123ccf pretty-1.1.3.6:a1d31debd4bf0459b8e5cfce2c2c5cb9 process-1.6.25.0:c4cffd747325a9d836f2a096da48e991 rts-1.0.2:f1c6d8ec5f245fb25a4c98a26aaeb8c2 semaphore-compat-1.0.0:e3b1927ca1cd1bad191b1ce358acc826 stm-2.5.3.1:b5c0ad9e5c8f12482f4e1c5e7327d16c system-cxx-std-lib-1.0:00000000000000000000000000000000 template-haskell-2.23.0.0:1e9375cbf013e74c46e3cfb565c357f0 terminfo-0.4.1.7:32a70434ee88440135115ab50242aabc text-2.1.2:7dfd9a7e981db898643f4ac205e962ba time-1.14:78261ee9c7e4f696803db2b499793791 transformers-0.6.1.2:1f02b2427f508123accff3f741e890db unix-2.8.6.0:07feb8c8993942f523f2b796dabbee56 xhtml-3000.2.2.1:bed2da4249e801430069832c9175cb69
Content-Length: 203

{"jsonrpc":"2.0", "method":"window/showMessage", "params": {"type": 1, "message": "Couldn't find a working/matching GHC installation. Consider installing ghc-9.12.2 via ghcup or build HLS from source."}}

I'll try to build hls from source to fix this, but in the meantime, it seems worth reporting that the installation from binaries don't seem to cooperate nicely.

Raveline avatar Dec 18 '25 14:12 Raveline