GNU bug report logs -
#46295
syntax error in package definition leads to misleading error message
Previous Next
To reply to this bug, email your comments to 46295 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#46295
; Package
guix
.
(Thu, 04 Feb 2021 13:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 04 Feb 2021 13:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In (gnu packages cran) I added a snippet but forgot to quote it
properly. The snippet looked like this:
(snippet
(delete-file "inst/htmlwidgets/lib/jquery.min.js"))
Since this is evaluated right away I got an error as I tried to compile
my Guix source checkout:
error: failed to load 'gnu/packages/cran.scm': No such file or directory
This error is highly misleading as it implies that
“gnu/packages/cran.scm” could not be found, while the actual error is
that “inst/htmlwidgets/lib/jquery.min.js” does not exist. This could be
improved by catching 'system-error and reporting the file location
instead of just printing the correct error message without context.
--
Ricardo
This bug report was last modified 4 years and 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.