From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Legoll Subject: bug#23969: hard to understand error message Date: Wed, 13 Jul 2016 09:48:08 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJsW-0002AN-38 for bug-guix@gnu.org; Wed, 13 Jul 2016 09:07:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJsU-00074m-4k for bug-guix@gnu.org; Wed, 13 Jul 2016 09:07:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJsU-00074h-1p for bug-guix@gnu.org; Wed, 13 Jul 2016 09:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNJsT-0000vQ-T8 for bug-guix@gnu.org; Wed, 13 Jul 2016 09:07:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNEtv-0000H4-Bt for bug-guix@gnu.org; Wed, 13 Jul 2016 03:48:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNEtt-0005QN-FI for bug-guix@gnu.org; Wed, 13 Jul 2016 03:48:10 -0400 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:34675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNEtt-0005QH-AI for bug-guix@gnu.org; Wed, 13 Jul 2016 03:48:09 -0400 Received: by mail-qt0-x22a.google.com with SMTP id u25so21257023qtb.1 for ; Wed, 13 Jul 2016 00:48:08 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 23969@debbugs.gnu.org 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