From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: manifest load error report. Date: Fri, 17 Nov 2017 22:17:51 +0100 Message-ID: <87375c38qo.fsf@gnu.org> References: <87k1yu9vyw.fsf@gmail.com> 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]:50114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFo1O-00068z-36 for guix-devel@gnu.org; Fri, 17 Nov 2017 16:17:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFo1N-0000xg-BW for guix-devel@gnu.org; Fri, 17 Nov 2017 16:17:58 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:35479) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eFo1N-0000wi-40 for guix-devel@gnu.org; Fri, 17 Nov 2017 16:17:57 -0500 In-Reply-To: <87k1yu9vyw.fsf@gmail.com> (Mathieu Othacehe's message of "Mon, 13 Nov 2017 13:58:15 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu Othacehe Cc: guix-devel@gnu.org Hi, Mathieu Othacehe skribis: > When loading a manifest with an obvious error like "definee > packages-list" instead of "define package-list", no error is reported, > the "guix package -m manifest.scm command just exit with error 1. Really? I have this: --8<---------------cut here---------------start------------->8--- $ guix package -m ~/t.scm guix package: error: failed to load '/home/ludo/t.scm': /home/ludo/t.scm:1:0: /home/ludo/t.scm:1:0: In procedure module-lookup: Unb= ound variable: definieee $ cat ~/t.scm (definieee foo bar) --8<---------------cut here---------------end--------------->8--- > When using load instead of load* in a guile repl, the error is correctly > reported : > > /home/mathieu/manifest.scm:1:0: /home/mathieu/manifest.scm:1:0: definee: = unbound variable > > Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. > > Pusing a bit the investigation, it seems that in the pre-unwind-handler > of load* in (guix ui), the "make-stack" call returns #f. When =E2=80=98make-stack=E2=80=99 returns #f, that=E2=80=99s OK: it just me= ans we won=E2=80=99t be able to display a backtrace. HTH, Ludo=E2=80=99.