[BUG] Various confusing error messages.

  • Open
  • quality assurance status badge
Details
2 participants
  • Josselin Poiret
  • (
Owner
unassigned
Submitted by
(
Severity
normal
(
(address . bug-guix@gnu.org)
CKRCY1KT0JBE.1HXZ1XWBRA6XF@guix-aspire
This issue aims to document error messages in Guix that need to be
improved. If you get an error message and you have no idea what it's
trying to tell you, please send it here!

~ Unbound variable while building package cache

This might be a Guile or Guix thing, not sure which. Using the recent
libpng/guix-gaming problem as an example:

---
Generating package cache for
'/gnu/store/1mzdd7rf9r34xiibcs1gpjsf7jkh6a0r-profile'...
(exception unbound-variable (value #f) (value "Unbound variable: ~S")
(value (libpng-1.2)) (value #f))
---

This error message doesn't tell you *where* the unbound variable is,
which means people may (and have! https://issues.guix.gnu.org/56012)
report this as a Guix issue, not a guix-gaming issue.

This error should perhaps look something like

---
Error: Unbound variable `libpng-1.2' in gaming/packages/whatever.scm
---

~ Network disconnection while downloading things

When the network disconnects during a download, Guix usually either
hangs or says something like "corrupt archive while restoring input from
socket" (I haven't been able to reproduce this, so I don't remember the
exact message).

Guix should probably poll the network and check whether it's down, then
report an error and try to reconnect for perhaps 30 seconds before
giving up.
J
J
Josselin Poiret wrote on 16 Jun 2022 12:33
87ilp099tq.fsf@jpoiret.xyz
Hello,

paren--- via Bug reports for GNU Guix <bug-guix@gnu.org> writes:
Toggle quote (12 lines)
> ~ Unbound variable while building package cache
>
> This might be a Guile or Guix thing, not sure which. Using the recent
> libpng/guix-gaming problem as an example:
>
> ---
> Generating package cache for
> '/gnu/store/1mzdd7rf9r34xiibcs1gpjsf7jkh6a0r-profile'...
> (exception unbound-variable (value #f) (value "Unbound variable: ~S")
> (value (libpng-1.2)) (value #f))
> ---

For now, [1] should add more context to this error message by printing
the whole backtrace.

You need the new `guix pull`'d guix first though before you can benefit
from it for future guix pulls (and time-machines) :)


Best,
--
Josselin Poiret
(
CKRN04WRWKLD.3P1JZ4AUL9Q2L@guix-aspire
On Thu Jun 16, 2022 at 11:33 AM BST, Josselin Poiret wrote:
Toggle quote (3 lines)
> For now, [1] should add more context to this error message by printing
> the whole backtrace.

Nice!
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 56016@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 56016
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch