Logs: liberachat/#xmonad
| 2021-10-15 20:35:48 | <kdecay> | I'll try to debug my config and see if I can find something interesting. Could also very well be a user error by me. Is anyone of you using the TQueue for their xmobar? |
| 2021-10-15 20:36:12 | <liskin> | (like e.g. a separate thread with a timer or something, which is what my setup would probably do if I was a Haskell programmer rather than a bash programmer, lol) |
| 2021-10-15 20:37:21 | <geekosaur> | logHook should already be wrapped in userCode, I think; I'm suspecting some other path, possibly in the xmobar part, that needs to trap and recover from STM exceptions |
| 2021-10-15 20:39:37 | <liskin> | xmobar quite likely just ignores any exceptions |
| 2021-10-15 20:40:18 | <liskin> | everything runs in its own thread, started via https://hackage.haskell.org/package/async-2.2.4/docs/Control-Concurrent-Async.html#v:async, but not waited on, so exceptions aren't re-raised in the main thread |
| 2021-10-15 20:40:38 | <liskin> | plugins like StdinReader explicitly exit(0) |
| 2021-10-15 20:41:58 | <liskin> | (I'm not entirely sure the exception handling in the timer coalescing code I wrote is correct, though; it's a complicated mess; probably irrelevant though) |
| 2021-10-15 20:46:40 | <liskin> | mc47[m]: do you (or anyone else) use haskell-language-server when hacking on xmonad(-contrib)? how do you deal with the library vs. test-suite ambiguity? |
| 2021-10-15 20:48:22 | <liskin> | I use implicit-hie to generate the hie.yaml here and sometimes HLS thinks one module is part of the test suite and another is part of the library, so I need to reload the whole thing for it to pick up changes :-/ |
| 2021-10-15 21:00:26 | <mc47> | liskin it just works, without hie.yaml |
| 2021-10-15 21:00:50 | <mc47> | I get a warning that I should consider creating a hie.yaml file if I get a Multi Cradle error |
| 2021-10-15 21:01:39 | <mc47> | oh and I have a very weird error when I launch it the first time from emacs, and I need to restart emacs, then it works fine |
| 2021-10-15 21:01:52 | <mc47> | haven't had the time to debug it properly |
| 2021-10-15 21:02:51 | <mc47> | Not that happy with HLS if I'm being honest, but that's the option with the least overhead right now (dante.el isn't maintained anymore, and it was great) |
| 2021-10-15 21:05:04 | <liskin> | hm, I wonder what happens behind the scenes without a hie.yaml |
| 2021-10-15 21:05:23 | <liskin> | unfortunately it's not really an option for me as I don't use the stack.yaml from the repos |
| 2021-10-15 21:05:46 | <liskin> | mc47: so when you're editing the tests, does hls still work for you? |
| 2021-10-15 21:06:19 | <geekosaur> | I thought it used some hie-boot thing to generate an internal default one |
| 2021-10-15 21:06:28 | <geekosaur> | but I'm not much for IDEs |
| 2021-10-15 21:06:48 | <mc47> | liskin: yep, tried completion and jumping to definitions |
| 2021-10-15 21:07:40 | <liskin> | geekosaur: it probably does, yeah |
| 2021-10-15 21:08:55 | <liskin> | I'd be surprised if the autogenerated cradles were that much different than the ones I have here |
| 2021-10-15 21:09:22 | <liskin> | we do have overlapping source paths, there's no going around that |
| 2021-10-15 21:09:34 | × | rundown quits (~eb0t@90.213.43.87) (Ping timeout: 252 seconds) |
| 2021-10-15 21:15:50 | × | kdecay quits (~user@2a02:8070:9991:bb00:1229:c2c4:1938:701a) (Remote host closed the connection) |
| 2021-10-15 21:40:19 | × | cfricke quits (~cfricke@user/cfricke) (Ping timeout: 252 seconds) |
| 2021-10-15 21:46:34 | → | Guest41 joins (~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) |
| 2021-10-15 21:47:00 | <Guest41> | Hi there! |
| 2021-10-15 21:47:21 | <Guest41> | I'm having issues getting xmonad to recompile on arch |
| 2021-10-15 21:48:14 | <alternateved> | Are you using package from AUR? |
| 2021-10-15 21:49:01 | <Guest41> | I've installed it with ghcup / cabal |
| 2021-10-15 21:49:36 | <alternateved> | What do you mean by issues? |
| 2021-10-15 21:50:00 | <Guest41> | xmonad.hs:1:1: error: |
| 2021-10-15 21:50:00 | <Guest41> | Could not find module ‘XMonad’ |
| 2021-10-15 21:50:01 | <Guest41> | Perhaps you meant DsMonad (needs flag -package-key ghc-8.10.4) |
| 2021-10-15 21:50:01 | <Guest41> | Use -v (or `:set -v` in ghci) to see a list of the files searched for. |
| 2021-10-15 21:50:02 | <Guest41> | | |
| 2021-10-15 21:50:02 | <Guest41> | 1 | import XMonad |
| 2021-10-15 21:50:03 | <Guest41> | | ^^^^^^^^^^^^^ |
| 2021-10-15 21:51:11 | <FOSSHuman[m]> | Guest41 You should read: https://github.com/xmonad/xmonad/blob/master/INSTALL.md |
| 2021-10-15 21:52:10 | <FOSSHuman[m]> | Specifically: https://github.com/xmonad/xmonad/blob/master/INSTALL.md#build-xmonad |
| 2021-10-15 21:55:02 | <FOSSHuman[m]> | There's also a TUTORIAL.md in the same repo |
| 2021-10-15 21:55:18 | <Guest41> | i've tried to follow that, and it seemed to work for a while. But broke down somehow :/ |
| 2021-10-15 21:56:00 | <FOSSHuman[m]> | * same repo: https://github.com/xmonad/xmonad/blob/master/TUTORIAL.md |
| 2021-10-15 21:58:23 | <Guest41> | does xmonad depend on specific versions of ghc? I've installed haskell for cardano (8.10.4), and wanted to also try out xmonad. |
| 2021-10-15 22:03:23 | <geekosaur> | we test it with a number of ghc versions, should include 8.10.4 |
| 2021-10-15 22:04:02 | <mc47> | Guest41 it's generally not a good idea to manage project dependencies globally |
| 2021-10-15 22:04:13 | <mc47> | (and not just with Haskell) |
| 2021-10-15 22:04:16 | <geekosaur> | if you install using cabal, you either need to use a cabal-based build script or `cabal install --lib xmonad xmonad-contrib` |
| 2021-10-15 22:05:27 | <geekosaur> | I prefer the former, there's a suitable buildscript (which you may need to edit) at https://github.com/xmonad/xmonad-testing/blob/master/build-scripts/build-with-cabal.sh |
| 2021-10-15 22:07:57 | <geekosaur> | the buildscript expects an xmonad.project file in the same directory and the xmonad and xmonad-contrib checkouts beside it if you're running from git; also a cabal file for your xmonad.hs |
| 2021-10-15 22:09:23 | × | wonko quits (~wjc@62.115.229.50) (Ping timeout: 264 seconds) |
| 2021-10-15 22:09:27 | <liskin> | I think what Guest41 is experiencing can actually happen with the instructions we have in INSTALL.md |
| 2021-10-15 22:10:08 | <liskin> | cabal install --lib might break when the deps are updated, even with --package-env |
| 2021-10-15 22:10:36 | <liskin> | and the solution, if I remember correctly, is to delete the package env files |
| 2021-10-15 22:10:48 | <liskin> | which I don't remember the names of |
| 2021-10-15 22:11:15 | <liskin> | something like ~/.xmonad/.ghc.environment.x86_64-linux-8.8.3 |
| 2021-10-15 22:11:39 | <geekosaur> | I thought they went under ~/.ghc |
| 2021-10-15 22:11:43 | <liskin> | Guest41: can you give that a try? if it works, we absolutely need to document that |
| 2021-10-15 22:11:53 | <liskin> | geekosaur: they go wherever --package-env says they should |
| 2021-10-15 22:11:57 | <geekosaur> | and if there are updates you need to delete the earlier lines or it will use those |
| 2021-10-15 22:12:22 | <liskin> | and we recommend using --package-env so that ghc invoked from ~/.xmonad will pick it up automatically |
| 2021-10-15 22:12:29 | <liskin> | (because xmonad --recompile invokes ghc from there) |
| 2021-10-15 22:12:35 | <geekosaur> | sorry, missed that |
| 2021-10-15 22:14:00 | <Guest41> | i have no .ghc.environments in .xmonad, and x86_64-linux-8.10.7 in .ghc |
| 2021-10-15 22:15:30 | <liskin> | Guest41: did you use --package-env when installing xmonad for the first time or just --lib? |
| 2021-10-15 22:16:13 | × | humky quits (~humky@user/humky) (Quit: Leaving) |
| 2021-10-15 22:16:36 | <Guest41> | just --lib i think |
| 2021-10-15 22:17:06 | <liskin> | in that case you might need to delete that stuff from ~/.ghc |
| 2021-10-15 22:17:20 | <liskin> | or perhaps cabal has some uninstall subcommand? |
| 2021-10-15 22:17:36 | <liskin> | probably not |
| 2021-10-15 22:18:03 | <Guest41> | would rebuilding it with cabal help? |
| 2021-10-15 22:18:44 | <liskin> | oh yes, that will certianly be necessary either way |
| 2021-10-15 22:19:01 | <liskin> | (we should've started with that actually :-)) |
| 2021-10-15 22:21:06 | → | humky joins (~humky@user/humky) |
| 2021-10-15 22:21:59 | <Guest41> | and should mod+q do the same as running xmonad --recompile? |
| 2021-10-15 22:22:50 | <Guest41> | because that does nothing, and running --recompile in terminal shows the error |
| 2021-10-15 22:23:48 | <liskin> | well it should do the same, but it uses xmessage to show the error, which you possibly don't have? |
| 2021-10-15 22:24:13 | <liskin> | the error from mod+q should also be logged somewhere |
| 2021-10-15 22:24:34 | <liskin> | like .xsession-errors or systemd journal or wherever your session's stderr goes |
| 2021-10-15 22:27:01 | × | seschwar quits (~seschwar@user/seschwar) (Quit: :wq) |
| 2021-10-15 22:28:50 | <Guest41> | what would be the easiest way to see if it works? :) |
| 2021-10-15 22:29:01 | <Guest41> | this is my current config |
| 2021-10-15 22:29:02 | <Guest41> | import XMonad |
| 2021-10-15 22:29:03 | <Guest41> | main = xmonad defaultConfig |
| 2021-10-15 22:29:03 | <Guest41> | { modMask = mod4Mask -- Use Super instead of Alt |
| 2021-10-15 22:29:04 | <Guest41> | , terminal = "alacritty" |
| 2021-10-15 22:29:04 | <Guest41> | } |
| 2021-10-15 22:29:48 | <liskin> | changing the terminal, probably :-) |
| 2021-10-15 22:29:52 | <Guest41> | reinstalling with cabal seemed to help |
| 2021-10-15 22:29:53 | <liskin> | or the modmask |
| 2021-10-15 22:32:27 | × | alternateved quits (~user@staticline-31-183-147-179.toya.net.pl) (Remote host closed the connection) |
| 2021-10-15 22:33:59 | × | Guest41 quits (~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) (Quit: Client closed) |
| 2021-10-15 22:34:48 | → | Guest41 joins (~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) |
| 2021-10-15 22:35:54 | × | Guest41 quits (~Guest41@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) (Client Quit) |
| 2021-10-15 22:37:00 | → | Guest31 joins (~Guest31@2001:16b8:5cf5:d900:2a39:26ff:fe02:85bb) |
| 2021-10-15 22:37:18 | → | rundown joins (~eb0t@2a02:c7d:f20e:ed00:216:44ff:fe6a:c888) |
| 2021-10-15 22:41:17 | <Guest31> | hello again :) |
| 2021-10-15 22:42:17 | <Guest31> | tried to recompile, and it seems to work after reinstalling, but it doesnt change the config |
| 2021-10-15 22:43:23 | <Guest31> | XMonad will use ghc to recompile, because "/home/ranmacar/.xmonad/build" does not exist. , |
All times are in UTC.