Logs: liberachat/#xmonad
| 2024-02-22 16:07:21 | <beastwick> | I tried using wayland a couple of days ago, but it seems like there are some extra things I have to do with a current nvidia gpu, it wasn't as easy as a startx. |
| 2024-02-22 16:07:44 | <beastwick> | and some of the out of box de's like kde/gnome just fail for me on something like debian |
| 2024-02-22 16:07:56 | <beastwick> | with wayland, which I thought was really surprising |
| 2024-02-22 16:08:35 | <liskin> | vrs: lol indeed :-) |
| 2024-02-22 16:08:43 | <geekosaur> | there aren't concrete plans, but see https://discourse.haskell.org/t/haskell-wlroots-bindings/8426/47 where the community has been updating wlroots as a first step toward a wayland rewrite |
| 2024-02-22 16:09:31 | <geekosaur> | although I haven't seen any updates in a while |
| 2024-02-22 16:54:08 | × | L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 256 seconds) |
| 2024-02-22 17:01:42 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.1.2) |
| 2024-02-22 19:34:42 | → | L29Ah joins (~L29Ah@wikipedia/L29Ah) |
| 2024-02-22 20:17:30 | → | Guest47 joins (~Guest47@231.11.11.93.rev.sfr.net) |
| 2024-02-22 20:24:53 | <Guest47> | Hi, I feel a bit stupid… I thought I knew haskell, but I am now completely at lost trying to install/recompile xmonad on ubuntu 22.04. I tried using the apt packages, I tried to compile xmonad from source : it seems to work (I have an xmonad executable) but the "xmonad --recompile" invariably fails with the following message |
| 2024-02-22 20:24:53 | <Guest47> | Monad will use ghc to recompile, because none of "/home/sla/.xmonad/build", "/home/sla/.xmonad/stack.yaml", "/home/sla/.xmonad/flake.nix", "/home/sla/.xmonad/default.nix" exist. |
| 2024-02-22 20:24:54 | <Guest47> | XMonad recompiling (forced). |
| 2024-02-22 20:24:54 | <Guest47> | Errors detected while compiling xmonad config: /home/sla/.xmonad/xmonad.hs |
| 2024-02-22 20:24:55 | <Guest47> | $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/sla/.xmonad/build-x86_64-linux -o /home/sla/.xmonad/xmonad-x86_64-linux |
| 2024-02-22 20:24:55 | <Guest47> | xmonad.hs:3:1: error: |
| 2024-02-22 20:24:56 | <Guest47> | Could not find module ‘XMonad’ |
| 2024-02-22 20:24:56 | <Guest47> | Use -v (or `:set -v` in ghci) to see a list of the files searched for. |
| 2024-02-22 20:24:57 | <Guest47> | | |
| 2024-02-22 20:24:57 | <Guest47> | 3 | import XMonad |
| 2024-02-22 20:24:58 | <Guest47> | | ^^^^^^^^^^^^^ |
| 2024-02-22 20:24:58 | <Guest47> | xmonad.hs:4:1: error: |
| 2024-02-22 20:24:59 | <Guest47> | Could not find module ‘XMonad.Util.EZConfig’ |
| 2024-02-22 20:24:59 | <Guest47> | Use -v (or `:set -v` in ghci) to see a list of the files searched for. |
| 2024-02-22 20:25:00 | <Guest47> | | |
| 2024-02-22 20:25:00 | <Guest47> | 4 | import XMonad.Util.EZConfig (additionalKeysP) |
| 2024-02-22 20:25:01 | <Guest47> | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 2024-02-22 20:25:01 | <Guest47> | xmonad.hs:5:1: error: |
| 2024-02-22 20:25:14 | <Guest47> | These file exist though |
| 2024-02-22 20:26:27 | <geekosaur> | if using apt, it is not enough to install the xmonad package; you also need libghc-xmonad-dev and libghc-xmonad-contrib-dev |
| 2024-02-22 20:26:35 | <Guest47> | I mean the file "/home/sla/.xmonad/stack.yaml" exists |
| 2024-02-22 20:27:44 | <Guest47> | building from source is not sufficient ? |
| 2024-02-22 20:27:58 | → | ft joins (~ft@p508db2e6.dip0.t-ipconnect.de) |
| 2024-02-22 20:27:59 | <geekosaur> | building from source will depend on how you do it |
| 2024-02-22 20:28:31 | <Guest47> | I followed the instructions on the website's pages… |
| 2024-02-22 20:29:08 | <geekosaur> | I meant cabal vs. stack vs. nix |
| 2024-02-22 20:29:19 | <Guest47> | I used stack |
| 2024-02-22 20:29:39 | <geekosaur> | if you used stack then you need to make sure the stack.yaml is found so --recompile will use stack's build |
| 2024-02-22 20:29:47 | → | hightower4 joins (~hightower@dh207-80-70.xnet.hr) |
| 2024-02-22 20:30:21 | <geekosaur> | that said this sounds, hm. lemme check |
| 2024-02-22 20:31:43 | <geekosaur> | okahy, yes, looks like you have 0.18.0 |
| 2024-02-22 20:32:02 | <Guest47> | OK… I get the message telling me that the "/home/sla/.xmonad/stack.yaml" does not exists while, to me, it is the one that I used when compiling |
| 2024-02-22 20:32:15 | × | hightower3 quits (~hightower@dh207-114-78.xnet.hr) (Ping timeout: 256 seconds) |
| 2024-02-22 20:32:23 | <Guest47> | Yes, 0.18 |
| 2024-02-22 20:32:51 | <Guest47> | xmonad --version |
| 2024-02-22 20:32:51 | <Guest47> | xmonad 0.18.0.9 |
| 2024-02-22 20:33:33 | <geekosaur> | huh, build from git? that wouldn't use stack unless you've done some custom setup; stack would use the xmonad version from the resolver you specified |
| 2024-02-22 20:35:23 | <Guest47> | I merely followed the instructions there : https://xmonad.org/INSTALL.html#build-using-stack |
| 2024-02-22 20:36:47 | <geekosaur> | right, I just went through that and it would use a version from a resolver, which would not have a .9 suffix |
| 2024-02-22 20:36:48 | <Guest47> | Just before that part, they tell you to git clone the xmonad and xmonad-contrib |
| 2024-02-22 20:37:24 | <geekosaur> | oh, I see, `stack init` sees the checkouts and does the extra setup, sorry |
| 2024-02-22 20:37:28 | <geekosaur> | I'm not a stack user |
| 2024-02-22 20:37:50 | <Guest47> | Nor am I, it seems ;) |
| 2024-02-22 20:38:45 | <geekosaur> | still, the message says it isn't seeing the stack.yaml. the code to check for it looked correct to me though |
| 2024-02-22 20:40:20 | <Guest47> | I indeed feel it’s an issue between stack and the ghc version installed on my system ? it is where my understanding of the stack/ghc system fails… |
| 2024-02-22 20:40:47 | <geekosaur> | stack isn't even becoming involved, since xmonad isn't seeing your stack.yaml |
| 2024-02-22 20:41:17 | <geekosaur> | so it's probably running the ghc installed via apt, which won't be able to see anything installed via stack (this is deliberate) |
| 2024-02-22 20:42:00 | <Guest47> | I used ghcup to install ghc |
| 2024-02-22 20:42:56 | <Guest47> | I tried to start from a blank state, removing first all the apt stuff |
| 2024-02-22 20:43:24 | <geekosaur> | stack won't use that one either unless you installed the stack hook, and it won't see anything installed via stack |
| 2024-02-22 20:46:49 | <Guest47> | OK, I think I understand what you’re saying. Building from source using stack uses a separate installation of the ghc toolchain (that’s the point of stack, to allow repeatable builds), but xmonad --recompile uses another |
| 2024-02-22 20:48:26 | <geekosaur> | if xmonad sees stack.yaml then it should use stack to do the rebuild, which will use the correct stack toolchain |
| 2024-02-22 20:48:49 | <geekosaur> | so the root problem is it's not seeing your stack.yaml for some reason and then using the wrong ghc as a result |
| 2024-02-22 20:49:50 | <geekosaur> | did you symlink your stack.yaml into your xmonad directory by any chance? you might make sure the symlink is correct in that case |
| 2024-02-22 20:51:53 | <Guest47> | I found the issue : that is a very stupid one indeed. The https://xmonad.org/INSTALL.html#build-using-stack instructions tell you to git clone and build in .config/xmonad, not .xmonad ! |
| 2024-02-22 20:52:24 | <Guest47> | so the path is indeed wrong |
| 2024-02-22 20:52:55 | <geekosaur> | ok, only partially converted to XDG |
| 2024-02-22 20:53:05 | <geekosaur> | Solid ^^ |
| 2024-02-22 20:53:43 | <geekosaur> | (if you put your config in ~/.config/xmonad instead of ~/.xmonad then xmonad uses XDG paths) |
| 2024-02-22 20:59:23 | <Guest47> | Yes!!! I had a conflicting version under ~/.xmonad ! Thank you VERY VERY much !!! |
| 2024-02-22 21:21:04 | × | Guest47 quits (~Guest47@231.11.11.93.rev.sfr.net) (Ping timeout: 250 seconds) |
| 2024-02-22 22:09:05 | → | bwolf joins (c3bc363dd1@2a03:6000:1812:100::180) |
| 2024-02-22 22:37:56 | × | down200 quits (~down200@shell.lug.mtu.edu) (Quit: ZNC - https://znc.in) |
| 2024-02-22 22:39:56 | → | down200 joins (~down200@shell.lug.mtu.edu) |
| 2024-02-22 23:03:07 | × | L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 256 seconds) |
| 2024-02-22 23:24:46 | → | hightower3 joins (~hightower@cpe-94-253-189-162.zg.cable.xnet.hr) |
| 2024-02-22 23:27:32 | × | hightower4 quits (~hightower@dh207-80-70.xnet.hr) (Ping timeout: 268 seconds) |
| 2024-02-22 23:31:17 | × | lampilelo quits (~user@178.216.137.1) (Ping timeout: 240 seconds) |
| 2024-02-22 23:59:30 | → | L29Ah joins (~L29Ah@wikipedia/L29Ah) |
| 2024-02-23 00:29:48 | → | hightower4 joins (~hightower@dh207-113-76.xnet.hr) |
| 2024-02-23 00:32:57 | × | hightower3 quits (~hightower@cpe-94-253-189-162.zg.cable.xnet.hr) (Ping timeout: 272 seconds) |
| 2024-02-23 03:19:22 | × | td_ quits (~td@i53870910.versanet.de) (Ping timeout: 255 seconds) |
| 2024-02-23 03:21:06 | → | td_ joins (~td@i5387091A.versanet.de) |
| 2024-02-23 06:19:47 | → | hightower3 joins (~hightower@dh207-113-121.xnet.hr) |
| 2024-02-23 06:22:31 | × | hightower4 quits (~hightower@dh207-113-76.xnet.hr) (Ping timeout: 255 seconds) |
| 2024-02-23 07:26:49 | → | Guest47 joins (~Guest47@231.11.11.93.rev.sfr.net) |
| 2024-02-23 07:46:22 | × | Guest47 quits (~Guest47@231.11.11.93.rev.sfr.net) (Ping timeout: 250 seconds) |
| 2024-02-23 08:35:54 | × | eso quits (a0662dfd5e@2a03:6000:1812:100::1266) (Remote host closed the connection) |
| 2024-02-23 08:35:54 | × | alethkit quits (23bd17ddc6@sourcehut/user/alethkit) (Remote host closed the connection) |
| 2024-02-23 08:35:54 | × | samhh quits (7569f027cf@2a03:6000:1812:100::e4) (Remote host closed the connection) |
| 2024-02-23 08:35:54 | × | bwolf quits (c3bc363dd1@2a03:6000:1812:100::180) (Remote host closed the connection) |
| 2024-02-23 08:35:55 | × | raghavgururajan quits (ea769b8000@user/raghavgururajan) (Remote host closed the connection) |
| 2024-02-23 08:36:10 | → | raghavgururajan joins (ea769b8000@2a03:6000:1812:100::242) |
| 2024-02-23 08:36:11 | → | eso joins (a0662dfd5e@2a03:6000:1812:100::1266) |
| 2024-02-23 08:36:12 | → | bwolf joins (c3bc363dd1@2a03:6000:1812:100::180) |
| 2024-02-23 08:36:19 | × | raghavgururajan quits (ea769b8000@2a03:6000:1812:100::242) (Changing host) |
| 2024-02-23 08:36:19 | → | raghavgururajan joins (ea769b8000@user/raghavgururajan) |
| 2024-02-23 08:36:40 | → | samhh joins (7569f027cf@2a03:6000:1812:100::e4) |
| 2024-02-23 08:36:40 | → | alethkit joins (23bd17ddc6@sourcehut/user/alethkit) |
| 2024-02-23 08:41:11 | × | ft quits (~ft@p508db2e6.dip0.t-ipconnect.de) (Quit: leaving) |
All times are in UTC.