unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* manifest load error report.
@ 2017-11-13 12:58 Mathieu Othacehe
  2017-11-17 21:17 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Othacehe @ 2017-11-13 12:58 UTC (permalink / raw)
  To: guix-devel


Hi Guix,

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.

When using load instead of load* in a guile repl, the error is correctly
reported :

--8<---------------cut here---------------start------------->8---
/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.
--8<---------------cut here---------------end--------------->8---

Pusing a bit the investigation, it seems that in the pre-unwind-handler
of load* in (guix ui), the "make-stack" call returns #f.

Any idea why ?

Thanks,

Mathieu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: manifest load error report.
  2017-11-13 12:58 manifest load error report Mathieu Othacehe
@ 2017-11-17 21:17 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-11-17 21:17 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: guix-devel

Hi,

Mathieu Othacehe <m.othacehe@gmail.com> 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’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-17 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-13 12:58 manifest load error report Mathieu Othacehe
2017-11-17 21:17 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).