guix home/system don't report errors in loaded modules

  • Open
  • quality assurance status badge
Details
One participant
  • 45mg
Owner
unassigned
Submitted by
45mg
Severity
normal

Debbugs page

45mg wrote 2 months ago
(address . bug-guix@gnu.org)
8734h7jq1y.fsf@gmail.com
Attached is a tarball that can be used to minimally reproduce the issue.

There are two files - test-home.scm and test-home-packages.scm. The
latter defines and exports `%my-packages`, but before it's defined, line
5 has an error.

Toggle snippet (6 lines)
$ guix home build -L . test-home.scm
ice-9/eval.scm:223:20: In procedure proc:
error: %my-packages: unbound variable
hint: Did you forget `(use-modules (test-home-packages))'?

I would expect to see a report of the error on line 5, but that doesn't
happen. `guix system` behaves the same way.

This becomes extremely annoying once you have a large configuration
split up between separate files, because if you make a mistake in any
file except the one being passed to `guix home` or `guix system`, you
don't see the error message for it.
Attachment: guix-L-test.tar
?
Your comment

Commenting via the web interface is currently disabled.

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

To respond to this issue using the mumi CLI, first switch to it
mumi current 75822
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
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help