From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23969: hard to understand error message Date: Thu, 14 Jul 2016 19:09:59 +0200 Message-ID: <874m7si1so.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkAD-0007iG-O5 for bug-guix@gnu.org; Thu, 14 Jul 2016 13:11:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNkAA-0004MH-Ig for bug-guix@gnu.org; Thu, 14 Jul 2016 13:11:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkAA-0004MA-FY for bug-guix@gnu.org; Thu, 14 Jul 2016 13:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNkAA-0006ro-Az for bug-guix@gnu.org; Thu, 14 Jul 2016 13:11:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: (Vincent Legoll's message of "Wed, 13 Jul 2016 09:48:08 +0200") 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: Vincent Legoll Cc: 23969-done@debbugs.gnu.org Hi, Vincent Legoll 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 (sy= nopsis "Identifier database utilities" foo) --8<---------------cut here---------------end--------------->8--- Thanks, Ludo=E2=80=99.