guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: manifest load error report.


From: Ludovic Courtès
Subject: Re: manifest load error report.
Date: Fri, 17 Nov 2017 22:17:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hi,

Mathieu Othacehe <address@hidden> skribis:

> When loading a manifest with an obvious error like "definee
> packages-list" instead of "define package-list", no error is reported,
> the "guix package -m manifest.scm command just exit with error 1.

Really?  I have this:

--8<---------------cut here---------------start------------->8---
$ guix package -m ~/t.scm
guix package: error: failed to load '/home/ludo/t.scm':
/home/ludo/t.scm:1:0: /home/ludo/t.scm:1:0: In procedure module-lookup: Unbound 
variable: definieee
$ cat ~/t.scm
(definieee foo bar)
--8<---------------cut here---------------end--------------->8---

> When using load instead of load* in a guile repl, the error is correctly
> reported :
>
> /home/mathieu/manifest.scm:1:0: /home/mathieu/manifest.scm:1:0: definee: 
> unbound variable
>
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
>
> Pusing a bit the investigation, it seems that in the pre-unwind-handler
> of load* in (guix ui), the "make-stack" call returns #f.

When ‘make-stack’ returns #f, that’s OK: it just means we won’t be able
to display a backtrace.

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]