GNU bug report logs -
#75822
guix home/system don't report errors in loaded modules
Previous Next
To reply to this bug, email your comments to 75822 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#75822
; Package
guix
.
(Sat, 25 Jan 2025 07:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
45mg <45mg.writes <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 25 Jan 2025 07:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
--8<---------------cut here---------------start------------->8---
$ 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))'?
--8<---------------cut here---------------end--------------->8---
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.
[guix-L-test.tar (archive/tar, attachment)]
This bug report was last modified 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.