2025/09/07

Newest at the top

2025-09-07 19:38:22 +0200 <slondr> https://paste.tomsmeding.com/IZI6qrQg
2025-09-07 19:38:08 +0200 <geekosaur> yeh, because I'm ancient
2025-09-07 19:37:59 +0200 <tomsmeding> you have ctrl on capslock?
2025-09-07 19:37:51 +0200 <geekosaur> (I got up unusually early this morning and it shows)
2025-09-07 19:37:36 +0200 <geekosaur> I keep fatfingering ctrl and a
2025-09-07 19:37:34 +0200 <int-e> no clue how it got cut off like that though
2025-09-07 19:37:29 +0200 <geekosaur> whoops, yes
2025-09-07 19:37:14 +0200 <int-e> I'd guess "what exactly"
2025-09-07 19:36:35 +0200tomsmeding. o O ( "ctly"? )
2025-09-07 19:36:17 +0200 <geekosaur> ctly is it printing? (use paste.tomsmeding.com)
2025-09-07 19:36:06 +0200 <tomsmeding> what ghc version does it select? And is that the same version as you get reported in your editor?
2025-09-07 19:35:47 +0200 <slondr> Running h-l-s-wrapper doesn't report any obvious errors, it prints a bunch of stuff but looks fine?
2025-09-07 19:35:45 +0200 <tomsmeding> if you're not sure whether that outputs something relevant, paste the output in a pastebin (see /topic)
2025-09-07 19:35:30 +0200tv(~tv@user/tv) (Read error: Connection reset by peer)
2025-09-07 19:35:30 +0200 <tomsmeding> then the first thing I said
2025-09-07 19:35:12 +0200 <tomsmeding> ah
2025-09-07 19:34:47 +0200 <slondr> I'm just in a directory with a single .hs file nothing else
2025-09-07 19:34:34 +0200 <tomsmeding> Do you perhaps have a stack.yaml in the directory too but want to use cabal, and the stack.yaml specifies a different GHC version (via the snapshot) than your cabal project?
2025-09-07 19:33:59 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-09-07 19:33:55 +0200 <tomsmeding> slondr: have you tried running 'haskell-language-server-wrapper' in a terminal and seeing what it prints?
2025-09-07 19:32:04 +0200Lord_of_Life(~Lord@user/lord-of-life/x-2819915) Lord_of_Life
2025-09-07 19:31:08 +0200 <geekosaur> I think at this point you need to ask over in #haskell-language-server
2025-09-07 19:30:53 +0200 <geekosaur> (not the ~)
2025-09-07 19:30:50 +0200 <geekosaur> weird
2025-09-07 19:27:14 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2025-09-07 19:26:54 +0200 <slondr> yes (it's a ~ not a - but otherwise yes)
2025-09-07 19:25:45 +0200 <geekosaur> do you have ~/.ghcup/bin/haskell-language-server-9.6.7-2.10.0.0?
2025-09-07 19:24:46 +0200 <geekosaur> so I have no idea why the wrapper isn't selecting it
2025-09-07 19:24:36 +0200 <geekosaur> wait, I keep forgetting 2.10 does support 9.6.7
2025-09-07 19:23:41 +0200 <slondr> I was just on all the "recommended" versions of everything in GHCup, if I switch to "latest" everything should I expect that to work?
2025-09-07 19:21:23 +0200 <geekosaur> the right way to do it is to switch to HLS 2.11, which supports ghc 9.6.7. but I thought HLS-=wrapper just faield to start if it didn't find a matching binary, here it sounds like it's just trying the newest HLS binary present which is just wrong
2025-09-07 19:20:38 +0200MelodyOwO(~MelodyOwO@user/MelodyOwO) (Quit: Leaving.)
2025-09-07 19:20:23 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-09-07 19:18:40 +0200 <slondr> I agree; is there a way to change which HLS is picked by HLS-wrapper?
2025-09-07 19:18:17 +0200 <geekosaur> that sounds like haskell-language-server-wrapper is picking the wrong HLS (ghc-ide is a component of HLS)
2025-09-07 19:17:43 +0200 <slondr> So maybe my problem is that GHCup compiled hls using a ghc version that isn't the version on my path/set in GHCup?
2025-09-07 19:16:58 +0200 <geekosaur> also, hls doesn't pick a ghc, it tries to use whichever one your project uses by figuring out if you're using cabal or stack and asking that, otherwise using whatever it finds first in $PATH
2025-09-07 19:16:39 +0200 <slondr> yeah I'm just getting "ghcide compiled against GHC 9.10.1 but currently using 9.6.7 This is unsupported, ghcide must be compiled with the same GHC version as the project." when I try to run it
2025-09-07 19:15:25 +0200 <geekosaur> that's not precise enough: minor versions matter. 2.10 supports 9.6.1-6 but not 9.6.7 because the ghc-api changed (as yet, it's not stable even across major versions)
2025-09-07 19:13:44 +0200Lord_of_Life(~Lord@user/lord-of-life/x-2819915) (Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine)
2025-09-07 19:13:10 +0200 <slondr> actually, what version of hls should I even be using? I tried reinstalling 2.10 using ghcup but I still ended up with it compiled using ghc 9.10 even though my ghc is 9.6
2025-09-07 19:12:02 +0200zzz(~zero@user/zero) zero
2025-09-07 19:11:08 +0200divya(divya@140.238.251.170) divya
2025-09-07 19:09:15 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2025-09-07 19:06:05 +0200tv(~tv@user/tv) tv
2025-09-07 19:05:53 +0200Raito_Bezarius(~Raito@libera/contributor/wireguard.tunneler.raito-bezarius) Raito_Bezarius
2025-09-07 19:05:37 +0200 <slondr> is there a way to tell hls-wrapper to use a specific hls version?
2025-09-07 19:05:06 +0200Raito_Bezarius(~Raito@libera/contributor/wireguard.tunneler.raito-bezarius) (Max SendQ exceeded)
2025-09-07 19:05:06 +0200divya(divya@140.238.251.170) (Max SendQ exceeded)
2025-09-07 19:04:36 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn