GNU bug report logs -
#23969
hard to understand error message
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23969 in the body.
You can then email your comments to 23969 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#23969
; Package
guix
.
(Wed, 13 Jul 2016 13:07:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vincent Legoll <vincent.legoll <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 13 Jul 2016 13:07:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
I'm discovering guix, and started to try to package something.
I made an error (add a string URL parameter to license x11-style):
(license x11-style "file://LICENSE")
But this is not working, because I've forgotten the scheme call syntax
(missing parens)
I'll fix my package definition with:
(license (x11-style "file://LICENSE"))
which seems to be working OK...
But the error message I got was very unhelpful:
something.scm:10:2: warning: source expression failed to match any pattern
the line 10 is:
(package
whereas the real error happened on line 32 (the license one)
So what's wrong:
- wrong line number
- 'source expression' meaning is shady, as there is a "(source (origin
...))" element defined in the package, which is also not on line 10,
but misleading anyways
I would have expected that error to be reported as:
error: license x11-style: cannot match the pattern : file://LICENSE in
directory /tmp/guix-build-something/something/path/to/where/it/searched
--
Vincent Legoll
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Thu, 14 Jul 2016 17:11:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vincent Legoll <vincent.legoll <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 14 Jul 2016 17:11:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 23969-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Vincent Legoll <vincent.legoll <at> gmail.com> skribis:
> I'm discovering guix, and started to try to package something.
>
> I made an error (add a string URL parameter to license x11-style):
>
> (license x11-style "file://LICENSE")
>
> But this is not working, because I've forgotten the scheme call syntax
> (missing parens)
>
> I'll fix my package definition with:
>
> (license (x11-style "file://LICENSE"))
>
> which seems to be working OK...
>
> But the error message I got was very unhelpful:
>
> something.scm:10:2: warning: source expression failed to match any pattern
>
> the line 10 is:
> (package
>
> whereas the real error happened on line 32 (the license one)
>
> So what's wrong:
> - wrong line number
> - 'source expression' meaning is shady, as there is a "(source (origin
> ...))" element defined in the package, which is also not on line 10,
> but misleading anyways
Indeed. This is fixed or at least improved in commit
babc2c80a7e1f1b5e72fd1685ef6604b93157a8e. Now the message looks like:
--8<---------------cut here---------------start------------->8---
ice-9/psyntax.scm:1422:32: Syntax error:
gnu/packages/idutils.scm:42:4: package: invalid field specifier in form (synopsis "Identifier database utilities" foo)
--8<---------------cut here---------------end--------------->8---
Thanks,
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 12 Aug 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 251 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.