Login
You're viewing the code4lib.social public feed.
  • Oct 29, 2026, 11:19 AM
    Guix System (and Guix Home soon) has a few on-error strategies configurable via the --on-error= option. By default it's nothing-special, there're also backtrace (which displays a backtrace) and debug (which enters Guile's debugger).

    I think backtrace is generally more useful to check one's configuration, but what it outputs appears to contain too little information. I was impressed by BLUE's backtrace when I started to use it, so I wonder what it looks like if it's used for Guix

    The answer is actually quite simple: there's no magic in BLUE's backtrace, it just goes one step further ;)

    The screenshot below shows the comparison, what Guix currently outputs (display-backtrace) on the left side, and with BLUE's print-backtrace on the right. They're almost identical, except that BLUE's also finds and outputs file content in addition to the line numbers.

    #guix
    Backtrace printer comparison for `guix system build --on-error=backtrace`, Guile's builtin printer on the left side and BLUE's on the right.  They're almost identical, except that BLUE's also finds and outputs file content in addition to the line numbers.
    💬 1🔄 1⭐ 0

Replies

  • Oct 29, 2026, 1:15 PM

    @hako One possible problem with BLUE’s backtraces is that they’re verbose, which could end up scaring people away.

    But what we should probably do is narrow the part of the stack that is shown, at least when the error happens within ‘load*’: people shouldn’t see the (guix scripts …) and the (ice-9 boot-9) bits. (It’s easy quite to do: ‘make-stack’ lets you specify narrowing.)

    💬 0🔄 0⭐ 2
  • 💬 0🔄 0⭐ 0