Logs on 2024-02-22 (liberachat/#xmonad)
| 03:20:59 | × | td_ quits (~td@i53870902.versanet.de) (Ping timeout: 264 seconds) |
| 03:22:23 | → | td_ joins (~td@i53870910.versanet.de) |
| 05:54:13 | → | down200 joins (~down200@shell.lug.mtu.edu) |
| 07:45:11 | → | hightower3 joins (~hightower@dh207-114-78.xnet.hr) |
| 07:48:29 | × | hightower2 quits (~hightower@dh207-80-183.xnet.hr) (Ping timeout: 272 seconds) |
| 08:36:49 | × | Miroboru quits (~myrvoll@178-164-114.82.3p.ntebredband.no) (Remote host closed the connection) |
| 09:08:17 | → | julie_pilgrim joins (~julie_pil@user/julie-pilgrim/x-1240752) |
| 09:22:08 | → | Miroboru joins (~myrvoll@178-164-114.82.3p.ntebredband.no) |
| 09:23:42 | × | ft quits (~ft@p508db2e6.dip0.t-ipconnect.de) (Quit: leaving) |
| 09:25:16 | → | cfricke joins (~cfricke@user/cfricke) |
| 09:39:10 | × | julie_pilgrim quits (~julie_pil@user/julie-pilgrim/x-1240752) (Remote host closed the connection) |
| 09:49:26 | → | julie_pilgrim joins (~julie_pil@user/julie-pilgrim/x-1240752) |
| 09:53:48 | × | julie_pilgrim quits (~julie_pil@user/julie-pilgrim/x-1240752) (Ping timeout: 250 seconds) |
| 10:55:11 | × | Miroboru quits (~myrvoll@178-164-114.82.3p.ntebredband.no) (Ping timeout: 264 seconds) |
| 11:50:58 | → | Miroboru joins (~myrvoll@178-164-114.82.3p.ntebredband.no) |
| 13:10:41 | → | lampilelo joins (~user@178.216.137.1) |
| 15:32:14 | × | vanvik quits (~vanvik@78.156.10.140) (Quit: Ping timeout (120 seconds)) |
| 15:32:35 | → | vanvik joins (~vanvik@78.156.10.140) |
| 15:43:47 | → | beastwick joins (~brian@user/beastwick) |
| 16:03:52 | <beastwick> | So, I am really into xmonad now, are there future plans for a wayland port or rewrite? |
| 16:04:09 | <L29Ah> | no |
| 16:04:23 | <L29Ah> | but you can join waymonad if you feel like it's the way to go |
| 16:05:09 | <beastwick> | I am fine with X for the foreseeable future, but I feel like wayland is eventually going to be the target platform in a few years |
| 16:05:50 | <vrs> | it's a bit like fusion except it's five years instead of 20 |
| 16:06:04 | <beastwick> | fusion? |
| 16:06:31 | <vrs> | the joke goes that fusion power is the energy of the future, it was 20 years away in 1970 and it is 20 years away in 2020 |
| 16:06:45 | <beastwick> | that's an apt joke |
| 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. |
| 16:07:44 | <beastwick> | and some of the out of box de's like kde/gnome just fail for me on something like debian |
| 16:07:56 | <beastwick> | with wayland, which I thought was really surprising |
| 16:08:35 | <liskin> | vrs: lol indeed :-) |
| 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 |
| 16:09:31 | <geekosaur> | although I haven't seen any updates in a while |
| 16:54:08 | × | L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 256 seconds) |
| 17:01:42 | × | cfricke quits (~cfricke@user/cfricke) (Quit: WeeChat 4.1.2) |
| 19:34:42 | → | L29Ah joins (~L29Ah@wikipedia/L29Ah) |
| 20:17:30 | → | Guest47 joins (~Guest47@231.11.11.93.rev.sfr.net) |
| 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 |
| 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. |
| 20:24:54 | <Guest47> | XMonad recompiling (forced). |
| 20:24:54 | <Guest47> | Errors detected while compiling xmonad config: /home/sla/.xmonad/xmonad.hs |
| 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 |
| 20:24:55 | <Guest47> | xmonad.hs:3:1: error: |
| 20:24:56 | <Guest47> | Could not find module ‘XMonad’ |
| 20:24:56 | <Guest47> | Use -v (or `:set -v` in ghci) to see a list of the files searched for. |
| 20:24:57 | <Guest47> | | |
| 20:24:57 | <Guest47> | 3 | import XMonad |
| 20:24:58 | <Guest47> | | ^^^^^^^^^^^^^ |
| 20:24:58 | <Guest47> | xmonad.hs:4:1: error: |
| 20:24:59 | <Guest47> | Could not find module ‘XMonad.Util.EZConfig’ |
| 20:24:59 | <Guest47> | Use -v (or `:set -v` in ghci) to see a list of the files searched for. |
| 20:25:00 | <Guest47> | | |
| 20:25:00 | <Guest47> | 4 | import XMonad.Util.EZConfig (additionalKeysP) |
| 20:25:01 | <Guest47> | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20:25:01 | <Guest47> | xmonad.hs:5:1: error: |
| 20:25:14 | <Guest47> | These file exist though |
| 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 |
| 20:26:35 | <Guest47> | I mean the file "/home/sla/.xmonad/stack.yaml" exists |
| 20:27:44 | <Guest47> | building from source is not sufficient ? |
| 20:27:58 | → | ft joins (~ft@p508db2e6.dip0.t-ipconnect.de) |
| 20:27:59 | <geekosaur> | building from source will depend on how you do it |
| 20:28:31 | <Guest47> | I followed the instructions on the website's pages… |
| 20:29:08 | <geekosaur> | I meant cabal vs. stack vs. nix |
| 20:29:19 | <Guest47> | I used stack |
| 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 |
| 20:29:47 | → | hightower4 joins (~hightower@dh207-80-70.xnet.hr) |
| 20:30:21 | <geekosaur> | that said this sounds, hm. lemme check |
| 20:31:43 | <geekosaur> | okahy, yes, looks like you have 0.18.0 |
| 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 |
| 20:32:15 | × | hightower3 quits (~hightower@dh207-114-78.xnet.hr) (Ping timeout: 256 seconds) |
| 20:32:23 | <Guest47> | Yes, 0.18 |
| 20:32:51 | <Guest47> | xmonad --version |
| 20:32:51 | <Guest47> | xmonad 0.18.0.9 |
| 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 |
| 20:35:23 | <Guest47> | I merely followed the instructions there : https://xmonad.org/INSTALL.html#build-using-stack |
| 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 |
| 20:36:48 | <Guest47> | Just before that part, they tell you to git clone the xmonad and xmonad-contrib |
| 20:37:24 | <geekosaur> | oh, I see, `stack init` sees the checkouts and does the extra setup, sorry |
| 20:37:28 | <geekosaur> | I'm not a stack user |
| 20:37:50 | <Guest47> | Nor am I, it seems ;) |
| 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 |
| 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… |
| 20:40:47 | <geekosaur> | stack isn't even becoming involved, since xmonad isn't seeing your stack.yaml |
| 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) |
| 20:42:00 | <Guest47> | I used ghcup to install ghc |
| 20:42:56 | <Guest47> | I tried to start from a blank state, removing first all the apt stuff |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 ! |
| 20:52:24 | <Guest47> | so the path is indeed wrong |
| 20:52:55 | <geekosaur> | ok, only partially converted to XDG |
| 20:53:05 | <geekosaur> | Solid ^^ |
| 20:53:43 | <geekosaur> | (if you put your config in ~/.config/xmonad instead of ~/.xmonad then xmonad uses XDG paths) |
| 20:59:23 | <Guest47> | Yes!!! I had a conflicting version under ~/.xmonad ! Thank you VERY VERY much !!! |
| 21:21:04 | × | Guest47 quits (~Guest47@231.11.11.93.rev.sfr.net) (Ping timeout: 250 seconds) |
| 22:09:05 | → | bwolf joins (c3bc363dd1@2a03:6000:1812:100::180) |
| 22:37:56 | × | down200 quits (~down200@shell.lug.mtu.edu) (Quit: ZNC - https://znc.in) |
| 22:39:56 | → | down200 joins (~down200@shell.lug.mtu.edu) |
| 23:03:07 | × | L29Ah quits (~L29Ah@wikipedia/L29Ah) (Ping timeout: 256 seconds) |
| 23:24:46 | → | hightower3 joins (~hightower@cpe-94-253-189-162.zg.cable.xnet.hr) |
| 23:27:32 | × | hightower4 quits (~hightower@dh207-80-70.xnet.hr) (Ping timeout: 268 seconds) |
| 23:31:17 | × | lampilelo quits (~user@178.216.137.1) (Ping timeout: 240 seconds) |
| 23:59:30 | → | L29Ah joins (~L29Ah@wikipedia/L29Ah) |
All times are in UTC on 2024-02-22.