Home liberachat/#xmonad: Logs Calendar

Logs on 2022-12-22 (liberachat/#xmonad)

00:03:04 × [Leary] quits (~Leary]@user/Leary/x-0910699) (Remote host closed the connection)
00:04:21 [Leary] joins (~Leary]@user/Leary/x-0910699)
00:17:08 jabuxas joins (~jabuxas@user/jabuxas)
00:24:11 × jludwig quits (~justin@li657-110.members.linode.com) (Remote host closed the connection)
00:24:25 jludwig joins (~justin@li657-110.members.linode.com)
00:28:15 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
00:56:20 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 272 seconds)
01:49:16 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
02:39:28 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Remote host closed the connection)
02:49:30 × jabuxas quits (~jabuxas@user/jabuxas) (Quit: WeeChat 3.6)
03:04:23 × banc- quits (banc@gateway/vpn/protonvpn/banc) (Ping timeout: 246 seconds)
03:26:22 banc joins (banc@gateway/vpn/protonvpn/banc)
03:28:08 × td_ quits (~td@83.135.9.45) (Ping timeout: 252 seconds)
03:30:06 td_ joins (~td@83.135.9.52)
03:33:59 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
03:38:43 sogens_ joins (sogens@gateway/vpn/protonvpn/sogens)
03:39:11 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 264 seconds)
05:34:28 × sogens_ quits (sogens@gateway/vpn/protonvpn/sogens) (Quit: WeeChat 3.7.1)
05:35:57 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
06:28:34 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 260 seconds)
07:35:07 mncheckm joins (~mncheck@193.224.205.254)
07:41:42 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
07:55:07 × redgloboli quits (~redglobol@user/redgloboli) (Quit: ...enter the matrix...)
07:57:19 redgloboli joins (~redglobol@user/redgloboli)
08:12:38 × mncheckm quits (~mncheck@193.224.205.254) (Remote host closed the connection)
08:12:57 mncheck joins (~mncheck@193.224.205.254)
08:55:23 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 264 seconds)
09:49:31 × banc quits (banc@gateway/vpn/protonvpn/banc) (Quit: Bye, bye)
09:49:50 banc joins (banc@gateway/vpn/protonvpn/banc)
09:52:46 × thunderrd_ quits (~thunderrd@183.182.111.27) (Ping timeout: 272 seconds)
09:53:39 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
09:55:59 Teachmehow joins (~Teachmeho@2400:1a00:b060:8381:ce36:e8c8:544a:b190)
09:56:40 × Teachmehow quits (~Teachmeho@2400:1a00:b060:8381:ce36:e8c8:544a:b190) (Client Quit)
09:57:19 Teachmehow joins (~Teachmeho@2400:1a00:b060:8381:ce36:e8c8:544a:b190)
10:05:17 thunderrd_ joins (~thunderrd@183.182.115.209)
10:42:38 ask-yourself[m] joins (~ask-yours@2001:470:69fc:105::2:e38d)
10:51:53 × Teachmehow quits (~Teachmeho@2400:1a00:b060:8381:ce36:e8c8:544a:b190) (Ping timeout: 260 seconds)
11:14:59 AskYourself[m] parts (~ask-yours@2001:470:69fc:105::2:9793) ()
14:55:52 × thunderrd_ quits (~thunderrd@183.182.115.209) (Ping timeout: 252 seconds)
15:09:08 thunderrd_ joins (~thunderrd@183.182.115.204)
15:34:15 mvk joins (~mvk@2607:fea8:5ce3:8500::6126)
15:34:46 × mvk quits (~mvk@2607:fea8:5ce3:8500::6126) (Client Quit)
15:38:41 × mncheck quits (~mncheck@193.224.205.254) (Ping timeout: 246 seconds)
15:47:12 mncheckm joins (~mncheck@193.224.205.254)
16:01:28 × sagax quits (~sagax_nb@user/sagax) (Remote host closed the connection)
18:33:33 landakram joins (~landakram@75.111.85.210)
18:39:00 <landakram> Hi there, I just switched to xmonad. Things are working well, but I'm having a problem with recompile. Recompiling with "M-q" does not work. When I look at `xsession-errors`, I see the following:
18:39:00 <landakram> ```
18:39:01 <landakram> XMonad will use stack ghc --stack-yaml "/home/user/.config/xmonad/stack.yaml" to recompile.
18:39:01 <landakram> XMonad recompiling (forced).
18:39:02 <landakram> xmonad: /home/user/.local/share/xmonad/xmonad.errors: withFile: does not exist (No such file or directory)
18:39:02 <landakram> ```
18:39:03 <landakram> I've tracked the error down to this line in the `compile` function in xmonad: https://github.com/xmonad/xmonad/blob/master/src/XMonad/Core.hs#L653-L663
18:39:03 <landakram> The errFileName "xmonad.errors" *does* exist and in fact has the first build command written to it. It appears to fail when writing the second build command (`stack gch stack.yaml ...`)
18:39:04 <landakram> Strangely, running `xmonad --recompile` in a shell works fine.
18:39:04 <landakram> Does anyone have any ideas about what might be happening?
18:53:25 <geekosaur> hm. looks fine to me. liskin? git blame says you last touched that code
18:59:15 × landakram quits (~landakram@75.111.85.210) (Quit: Client closed)
18:59:20 Guest91 joins (~Guest91@staticline-31-183-95-59.toya.net.pl)
18:59:28 × Guest91 quits (~Guest91@staticline-31-183-95-59.toya.net.pl) (Client Quit)
19:01:20 landakram joins (~landakram@75.111.85.210)
19:02:47 <liskin> landakram: but that withFile is around both commands, how can it fail in the middle?
19:03:30 <landakram> I'm not sure... maybe on the hFlush?
19:07:46 <geekosaur> I don't think that would have the filename; the original withFile would have to be what was failing
19:08:08 <geekosaur> note that the "XMonad recompiling (forced) is form tracem not withFile
19:08:14 <geekosaur> *from trace, not
19:09:13 <geekosaur> the handle opened by withFile is only used for the `ghc`/`stack ghc`/`build` actions
19:10:26 <geekosaur> oh, I see, right, two actions there
19:11:54 <geekosaur> the other oddity is that it should create xmonad.errors if it doesn't exist, so the error implies the directory containing it doesn't exist
19:24:59 <geekosaur> landakram, are you looking at the beginning or the end of .xsession-errors? That file usually gets appended to, whereas xmonad.errors is recreated each time
19:38:25 <landakram> I'm tailing xsession-errors, so it's the output that is appended when I run "M-q". I even tried removing xmonad.errors before running, and I observed that the file gets recreated and the first command is written to it
19:53:37 × landakram quits (~landakram@75.111.85.210) (Quit: Client closed)
19:57:11 ask-yourself[m] parts (~ask-yours@2001:470:69fc:105::2:e38d) ()
20:08:24 landakram joins (~landakram@75.111.85.210)
20:09:22 <landakram> I'm running on HEAD of master btw. Let me try the latest tagged version and report back
20:09:56 AskYourself[m]1 joins (~askyourse@2001:470:69fc:105::2:e3ed)
20:10:01 <geekosaur> pretty sure there are no changes in master
20:10:13 <geekosaur> the core doesn't change very often
20:28:48 × landakram quits (~landakram@75.111.85.210) (Ping timeout: 260 seconds)
20:35:58 mc47 joins (~mc47@xmonad/TheMC47)
20:47:52 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 252 seconds)
21:18:59 × mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection)
21:19:11 mc47 joins (~mc47@xmonad/TheMC47)
21:20:39 × mc47 quits (~mc47@xmonad/TheMC47) (Client Quit)
21:45:03 landakram joins (~landakram@75.111.85.210)
22:02:15 × landakram quits (~landakram@75.111.85.210) (Quit: Client closed)
22:04:51 landakram joins (~landakram@75.111.85.210)
22:05:31 <landakram> unfortunately, as expected, using the tagged version 0.17.1 makes no difference. So strange...
22:16:24 <geekosaur> hm. so it might actually be the hFlush after all: withFile gets recorded as the origin of the Handle
22:16:40 <geekosaur> wish it'd actually say it's the flush in that case though
22:16:46 geekosaur still digging
22:18:21 <geekosaur> but hFlush can't throw that error. it can throw a permission error but not DoesNotExistError
22:22:30 <geekosaur> and withFile can't throw after outputting that first line
22:45:43 <landakram> I added in some calls to `hPutStrLn` and `hFlush` to try and debug further (recompiled using a shell). It looks like my logs after `createProcess_` don't get flushed, but the ones before that do. This makes me think the handle is being closed with that call, but the docs explicitly state that it shouldn't be...  perhaps the `stack build --silent
22:45:43 <landakram> ...` command is failing for some reason, and so the handle is being closed prematurely
22:48:01 sogens joins (sogens@gateway/vpn/protonvpn/sogens)
22:54:45 <geekosaur> but if it were, why would it work from a shell?
22:58:19 <landakram> haha i dunno :P
23:00:45 <geekosaur> code matches the description, but we're using createProcess_ so it should be fine
23:01:10 <geekosaur> also, handle closed throws a different error
23:02:22 <geekosaur> also note that anything written after createProcess_ but before waitForProcess will be overwritten by the child
23:05:14 × sogens quits (sogens@gateway/vpn/protonvpn/sogens) (Ping timeout: 246 seconds)
23:37:57 mvk joins (~mvk@2607:fea8:5ce3:8500::6126)
23:38:18 × mvk quits (~mvk@2607:fea8:5ce3:8500::6126) (Client Quit)

All times are in UTC on 2022-12-22.