GNU bug report logs - #42601
Guix install bug: error: Unbound variable: ~S

Previous Next

Package: guix;

Reported by: Jan Wielkiewicz <tona_kosmicznego_smiecia <at> interia.pl>

Date: Wed, 29 Jul 2020 16:11:01 UTC

Severity: normal

Full log


Message #32 received at 42601 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Jan Wielkiewicz <tona_kosmicznego_smiecia <at> interia.pl>
Cc: 42601 <at> debbugs.gnu.org
Subject: Re: bug#42601: Guix install bug: error: Unbound variable: ~S
Date: Thu, 30 Jul 2020 00:15:56 +0200
Jan Wielkiewicz <tona_kosmicznego_smiecia <at> interia.pl> writes:

> Dnia 2020-07-29, o godz. 22:17:01
> Ricardo Wurmus <rekado <at> elephly.net> napisał(a):
>
>> 
>> “avr-toolchain” is a procedure, not a package.  Use
>> “avr-toolchain-4.9” or “avr-toolchain-5”.
>> 
>
> Success!
>
> What about the strange message though?
> "incorrect package definition" would be better.

“Unbound variable: ~S” looks like a format string with a placeholder
that didn’t get replaced with an actual value.  It would be marginally
better if it said “Unbound variable: avr-toolchain”.

We should, I think, take advantage of the fact that the type of inputs
is known: it can only be an origin or a package value.  Perhaps we can
catch unbound variables in inputs and print a more valuable error
message.

-- 
Ricardo




This bug report was last modified 3 years and 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.