IRC channel logs

2026-06-18.log

back to list of logs

<janneke>is there a way to debug recursive module imports, other than studying/guessing?
<janneke>ice-9/boot-9.scm:1685:16: In procedure raise-exception:
<janneke>Syntax error:
<janneke>edi/parse/session.scm:103:15: set-fields: unknown getter in subform file-tree of (set-field file (file-tree) tree)
<janneke>meaning, as i read it: you have a recursive module import, and thus srfi-9 gnu somehow breaks
<old>janneke: out of the box no. but you could hack boot-9 or modules.c to print module loading I think
<old>e.g., you can change the primite-load-path core binding
<old>from there you can print what's getting load. But that's pretty much it
<old>you can always catch exception while loading certain file and enter a REPL if you would like
<ekaitz>janneke: observers for the win?
<ekaitz>could you use that?
<mwette>janneke: maybe this (from guile-freezer) helps: https://paste.debian.net/hidden/a325cb2c ; try `guile paste.scm` to see what it generates
<mwette>: a dictionary of module to dependendies
<janneke>mwette: very nice, thanks!
<futurile>Q: hi hi does anyone know if you can use plain HTML in Haunt markdown posts?
<futurile>I can see that the Guix version of Haunt has a specific version of guile-commonmark, but I can't figure out if I should be able to intermingle markdown/html or whether I need to use sxml
<old>so, I wonder if we would like a helper like this: (debug-repl some-value)
<old>which launch a REPL with the value passed to debug-repl bind to some known name
<old>I often find myself wanting to debug some complex object and having a repl spawn at the right moment seems like a good way
<dthompson>futurile: yes you can use html in markdown but I haven't made a new haunt release that makes this automatic.
<dthompson>guix does indeed use a fork of guile-commonmark, spritely's fork. this has become the new official home of guile-commonmark because the original maintainer has not responded in years (hope they're okay)
<mwette>old: you mean you have (debug-repl value) in your code somewhere and when it hits that you enter the debug repl?
<old>mwette: yes
<old>just like pk or pke but repl smart
<mwette>old: see https://github.com/mwette/guile-jtd it's in guix I believe
<futurile>dthompson: OK, if I rebuild Haunt using the lastest guile-commonmark from spritely-fork will that automagically get it?
<dthompson>futurile: no, but if you build haunt from the latest commit in master that should do the trick.
<futurile>dthompson: OK, thanks, I'll try that out. You likely to do a new Haunt release soon (just curious)?
<old>mwette: I want someting in core Guile I think ;;)
<old>RELP experience needs to be improve in general
<old>and would like a genral purpose debugger for sure
<dthompson>futurile: I should but I haven't had much time for personal projects
<futurile>dthompson: heh, understood!
<mwette>old: The big want for me is to complete the debugging support. I spent a lot of hours on that and didn't get far. There is a lot to understand.
<mwette>The compiler should have a "debug" option to, for example, not reuse slots for multiple variables; things like that.
<janneke>thanks all, /me found it; self-inflicted, really silly
<rlb>janneke: next time, if having the file ordering would help, there's also strace, of course. Sometimes that's enough...
<old>mwette: I want to add that also. Register allocations to not optimize away values
<mwette>work I had done on 2.2.4: https://paste.debian.net/hidden/c214fecb
<mwette>(but never got fully working; not submitted)
<mwette>Also, did you know chicken scheme has `declare'?
<futurile>dthompson: yeah that worked, that's great
<janneke>rlb: right
<janneke>:)
<dthompson>futurile: yay glad it worked!
<ekaitz>dthompson: any ETA for the release?
<dthompson>no
<ekaitz>ACTION as a basque always feels weird saying it that way
<dthompson>I just need to do it but I don't know when I'll get to it
<ekaitz>i'm not in hurry anyway, but i'll probably migrate my site to haunt soon
<dthompson>feel free to use the master branch for now
<old>mwette: never used chicken. But I want to add declare to Guile also
<mwette>I have not either, and I saw your mention of that. That's why I brought it up.
<mwette>edit: mention of that a few days ago