Home liberachat/#xmonad: Logs Calendar

Logs on 2023-09-23 (liberachat/#xmonad)

00:41:02 × hrberg quits (~quassel@171.79-160-161.customer.lyse.net) (Ping timeout: 255 seconds)
00:41:31 hrberg joins (~quassel@171.79-160-161.customer.lyse.net)
00:55:40 × mvk quits (~mvk@2607:fea8:5c9a:a600::848d) (Quit: Going elsewhere)
01:27:49 × tremon quits (~tremon@83.80.159.219) (Quit: getting boxed in)
02:02:35 hightower3 joins (~hightower@141-136-211-208.dsl.iskon.hr)
02:05:07 × hightower2 quits (~hightower@141-136-157-135.dsl.iskon.hr) (Ping timeout: 260 seconds)
02:15:18 × td_ quits (~td@i5387090B.versanet.de) (Ping timeout: 252 seconds)
02:16:50 td_ joins (~td@i5387093D.versanet.de)
10:02:43 × hightower3 quits (~hightower@141-136-211-208.dsl.iskon.hr) (Ping timeout: 264 seconds)
10:09:30 <haskellbridge> <s​cholablade> Hello
10:10:32 <haskellbridge> <s​cholablade> Am following the install XMonad tutorial and got a problem, it won't let me install GHC dedicated to XMonad saying:
10:10:33 <haskellbridge> <s​cholablade> ```
10:10:34 <haskellbridge> <s​cholablade> No compiler found, expected minor version match with ghc-9.4.7 (x86_64-tinfo6-libc6-pre232) (based on resolver setting in /home/rextheman/.config/xmonad/stack.yaml).
10:10:36 <haskellbridge> <s​cholablade> ```
10:28:00 hightower2 joins (~hightower@85.94.71.188)
12:11:30 <haskellbridge> <S​olid> scholablade What distro are you running? How did you install GHC?
12:11:53 <haskellbridge> <s​cholablade> Ubuntu 20.04, GHCup
12:12:45 <haskellbridge> <S​olid> I suppose you enabled GHCs "stack integration"? This basically keeps stack from installing new GHC versions, and you'll either have to adjust the stackage resolver, or install the relevant GHC version via ghcup yourself
12:13:13 <haskellbridge> <S​olid> However, I guess we can also update our resolver, since Stackage has one for 9.4.7 now :)
12:14:44 <haskellbridge> <s​cholablade> I think so since, I have in .stack/config.yaml ```system-ghc: true
12:14:45 <haskellbridge> <s​cholablade> install-ghc: false ```
12:15:05 <haskellbridge> <S​olid> Yeah, this is what keeps stack from installing its own GHC version(s)
12:15:50 <haskellbridge> <s​cholablade> Am gonna download GHC 9.4.7 from GHCup and report back if it works
12:15:55 × todi quits (~todi@pd957150f.dip0.t-ipconnect.de) (Ping timeout: 264 seconds)
12:16:13 <haskellbridge> <S​olid> I think that you have 9.4.7, but our lts resolver is 21.6, which is on 9.4.6
12:17:04 <haskellbridge> <s​cholablade> In GHCup i have 9.2.8
12:17:10 <haskellbridge> <s​cholablade> In GHCup i have 9.2.8 downloaded
12:17:20 <haskellbridge> <S​olid> ah, fair enough
12:17:53 <haskellbridge> <S​olid> (though this reminds me that I wanted to bump the resolver to 21.12 anyways, since that uses 9.4.7 proper)
12:20:48 <xmonadtrack> xmonad Tony Zorman * v0.17.2-89-g327c2cf: stack: Bump resolver to lts-21.12 (7 minutes ago, 1 file, 1+ 1-) https://github.com/xmonad/xmonad/commit/327c2cf0c14f
12:20:50 <xmonadtrack> xmonad-contrib Tony Zorman * v0.17.1-182-g7bb1f0b8: stack: Bump resolver to lts-21.12 (6 minutes ago, 1 file, 1+ 1-) https://github.com/xmonad/xmonad-contrib/commit/7bb1f0b8876b
12:32:09 todi joins (~todi@pd957150f.dip0.t-ipconnect.de)
14:04:09 × ectospasm quits (~ectospasm@user/ectospasm) (Quit: WeeChat 4.0.4)
14:19:13 × geekosaur quits (~geekosaur@xmonad/geekosaur) (Quit: Leaving)
14:20:14 × xmonadtrack quits (~xmonadtra@user/geekosaur/bot/xmonadtrack) (Remote host closed the connection)
14:20:26 × haskellbridge quits (~haskellbr@069-135-003-034.biz.spectrum.com) (Remote host closed the connection)
14:21:13 ectospasm joins (~ectospasm@user/ectospasm)
14:22:16 geekosaur joins (~geekosaur@xmonad/geekosaur)
14:23:29 haskellbridge joins (~haskellbr@069-135-003-034.biz.spectrum.com)
14:23:29 × haskellbridge quits (~haskellbr@069-135-003-034.biz.spectrum.com) (Read error: Connection reset by peer)
14:23:39 xmonadtrack joins (~xmonadtra@069-135-003-034.biz.spectrum.com)
14:23:39 × xmonadtrack quits (~xmonadtra@069-135-003-034.biz.spectrum.com) (Changing host)
14:23:39 xmonadtrack joins (~xmonadtra@user/geekosaur/bot/xmonadtrack)
14:23:57 haskellbridge joins (~haskellbr@069-135-003-034.biz.spectrum.com)
15:25:18 chomwitt joins (~chomwitt@2a02:587:7a2f:d000:1ac0:4dff:fedb:a3f1)
15:42:36 tremon joins (~tremon@83.80.159.219)
16:58:14 × todi quits (~todi@pd957150f.dip0.t-ipconnect.de) (Quit: ZNC - https://znc.in)
18:02:05 Guest14 joins (~Guest14@net-93-70-100-69.cust.vodafonedsl.it)
18:02:16 × Guest14 quits (~Guest14@net-93-70-100-69.cust.vodafonedsl.it) (Client Quit)
18:45:21 <haskellbridge> <s​cholablade> Solid: I have downloaded in GHCup, GHC 9.4.7, yet i still get the same error.
18:54:31 <geekosaur> modern stack (2.9.3 and later at least) should use ghcup to install ghc, aiui, rather than requiring the `system-ghc: true` hack
18:56:25 <geekosaur> that said, I don't use stack so I doubt I can help much
18:57:11 <haskellbridge> <s​cholablade> I have version 2.11.1
18:57:25 × td_ quits (~td@i5387093D.versanet.de) (Quit: waking up from the american dream ...)
18:59:47 <geekosaur> if you are using `system-ghc: true` then you need to make sure ~/.ghcup/bin is in your `$PATH`; if you just installed ghcup without opening a new terminal or logging out/back in then you need `source ~/.ghcup/env` iirc
19:00:00 td_ joins (~td@i5387093D.versanet.de)
19:09:49 <geekosaur> mm, I just followed the stack INSTALL instructions in my sandbox and it's installing ghc correctly. what's your stack.yaml look like?
19:09:53 <geekosaur> @where paste
19:09:53 <lambdabot> Help us help you: please paste full code, input and/or output at e.g. https://paste.tomsmeding.com
19:10:16 <geekosaur> (please don't just blat it into matrix, irc can't handle it)
19:10:22 <haskellbridge> <s​cholablade> Okay
19:11:33 <haskellbridge> <s​cholablade> https://paste.tomsmeding.com/hNb5EqBM
19:12:59 <geekosaur> okay, same as I'm using. it should work
19:14:51 <haskellbridge> <s​cholablade> Full error message: https://paste.tomsmeding.com/IZheZ6eM
19:17:37 <geekosaur> odd. it should have simply installed a ghc, via ghcup if you told it to install the stack hook
19:17:53 <geekosaur> that error should only happen with `system-ghc: true`
19:20:58 <geekosaur> I'm tempted to ask what ~/.stack/config.yaml has in it, but I'd be surprised if you had touched it
19:21:04 <haskellbridge> <s​cholablade> I do have system:ghc true
19:21:18 <haskellbridge> <s​cholablade> https://paste.tomsmeding.com/lZRjNuOw
19:21:41 <haskellbridge> <s​cholablade> Stack downloading ghc every time is something i didn't want to happen
19:21:42 <geekosaur> huh
19:21:54 <geekosaur> https://www.haskell.org/ghcup/guide/#stack-integration
19:22:25 <geekosaur> how to tell stack to use ghcup, in which case it should use the ghc you have already installed that way
19:22:38 <geekosaur> meanwhile, what does `which ghc` say?
19:23:07 <haskellbridge> <s​cholablade> It says
19:23:08 <haskellbridge> <s​cholablade> ```
19:23:09 <haskellbridge> <s​cholablade> /usr/bin/ghc
19:23:10 <haskellbridge> <s​cholablade> ```
19:23:22 <geekosaur> uh
19:23:41 <geekosaur> remove the ubuntu ghc package, it's hiding the one you want
19:23:46 <geekosaur> and is version 8.l6.5
19:23:50 <geekosaur> 8.6.5
19:26:19 <haskellbridge> <s​cholablade> The same issue
19:26:39 <geekosaur> run `hash -r`, then `which ghc` again
19:26:42 <haskellbridge> <s​cholablade> I have delete the ghc package provided by Ubuntu but still
19:27:07 <haskellbridge> <s​cholablade> which ghc doesn't output anything
19:27:30 <haskellbridge> <s​cholablade> though
19:27:38 <geekosaur> okay,k did you source the env file like ghcup should have told you to do?
19:27:46 <haskellbridge> <s​cholablade> when i set GHCup, it gives me: /home/rextheman/.ghcup/bin/ghc
19:28:25 <geekosaur> `source ~/.ghcup/env`
19:29:25 <geekosaur> (I hope you're not running fish as your shell, I have no idea how you convince it to set `$PATH` properly)
19:29:39 <haskellbridge> <s​cholablade> It's Bash
19:29:54 <haskellbridge> <s​cholablade> It's sourced
19:30:05 <geekosaur> now do `which ghc` again
19:30:21 <haskellbridge> <s​cholablade> '/home/rextheman/.ghcup/bin/ghc'
19:30:32 <geekosaur> okay. you should be set now
19:31:08 <haskellbridge> <s​cholablade> I still get the same error
19:31:23 <geekosaur> are you doing that in the same or a different window?
19:31:32 <haskellbridge> <s​cholablade> Same
19:31:53 <geekosaur> what does `ghc --numeric-version` say?
19:33:36 <haskellbridge> <s​cholablade> Error and telling me to install ghc
19:34:07 <geekosaur> did you `hash -r`?
19:34:12 <haskellbridge> <s​cholablade> which ghc only works if i do "set" in ghcup
19:34:23 <geekosaur> yes
19:37:19 <haskellbridge> <s​cholablade> hash -r doesn't change anything
19:38:07 <haskellbridge> <s​cholablade> stack install, still the same error
19:39:14 <geekosaur> this is … strange
19:39:29 <haskellbridge> <s​cholablade> Yeah
19:44:36 <haskellbridge> <s​cholablade> ghcup is 0.1.19.2 if that matters
19:45:14 <geekosaur> I have 0.1.19.4, you can use `ghcup upgrade` or `ghcup tui` to update it
19:45:23 <geekosaur> I don't think this should matter though
20:43:04 <geekosaur> mm, my sandbox no longer sandboxes properly because I switched to XDG dirs outside the sandbox. need to rework it I guess
20:49:51 <haskellbridge> <s​cholablade> Maybe this is irelavent but I have XMonad from ubuntu packages
20:49:57 <haskellbridge> <s​cholablade> Maybe this is irrelavent but I have XMonad from ubuntu packages
21:06:31 <geekosaur> that shouldn't be relevant unless removing ghc also removed the xmonad and xmonad-contrib libraries, in which case either you have to use the ubuntu ghc (and no stack) or you need to start over with xmonad and xmonad-contrib from hackage or git
21:06:43 <geekosaur> but that wouldn't show up until you get past the ghc error
21:07:01 <geekosaur> stack won't work until `ghc --numeric-version` works from the command linbe
21:11:40 <haskellbridge> <s​cholablade> Interesting, I commented out ```https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/12.yaml
21:11:41 <haskellbridge> <s​cholablade> ``` and wrote ``` resolver: lts-20.26```
21:11:50 <haskellbridge> <s​cholablade> And it's compiling
21:13:09 <geekosaur> that sounds like you had the wrong ghc version installed. 9.2.x?
21:13:29 <haskellbridge> <s​cholablade> I have both 9.2.8 and 9.4.7
21:13:41 <geekosaur> yeh, but 9.2.8 is `set` apparently
21:13:52 <geekosaur> because that's what lts-20.26 wants
21:15:26 <haskellbridge> <s​cholablade> Seems to work!
21:15:42 <haskellbridge> <s​cholablade> Thanks for the help
21:16:01 <geekosaur> I have a bunch of ghc versions installed including a 9.8 prerelease, but 9.6.2 is default / "set"
21:16:38 <haskellbridge> <s​cholablade> I have made it so that 9.2.8 is "set"
21:39:16 sagax joins (~sagax_nb@user/sagax)
22:26:07 × chomwitt quits (~chomwitt@2a02:587:7a2f:d000:1ac0:4dff:fedb:a3f1) (Ping timeout: 264 seconds)

All times are in UTC on 2023-09-23.