From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: brettg@posteo.net Newsgroups: gmane.lisp.guile.user Subject: Re: Cryptic error messages: Bug in =?UTF-8?Q?guile=3F?= Date: Tue, 13 Nov 2018 02:44:17 +0100 Message-ID: <4d134fa2aa38ba51d7d50a3fa164833a@posteo.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1542073360 26072 195.159.176.226 (13 Nov 2018 01:42:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2018 01:42:40 +0000 (UTC) User-Agent: Posteo Webmail Cc: guile-user , guile-user@gnu.org To: swedebugia Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Nov 13 02:42:36 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMNit-0006fz-NQ for guile-user@m.gmane.org; Tue, 13 Nov 2018 02:42:35 +0100 Original-Received: from localhost ([::1]:51548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMNl0-0006pW-2v for guile-user@m.gmane.org; Mon, 12 Nov 2018 20:44:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMNkh-0006pM-Cd for guile-user@gnu.org; Mon, 12 Nov 2018 20:44:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMNkd-0003Hj-Kc for guile-user@gnu.org; Mon, 12 Nov 2018 20:44:27 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:60206) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMNkd-0003Cs-Bm for guile-user@gnu.org; Mon, 12 Nov 2018 20:44:23 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D928216005E for ; Tue, 13 Nov 2018 02:44:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1542073457; bh=xsGbKcf3cBcs/oiIRL7USozprr/docaVWlCtEN2hhYw=; h=Date:From:To:Cc:Subject:From; b=fshPXSDeSpu7IQ9rp/v8ou/NJb5XrosuZYjW5aH/dVt3qvEvXmVxq+x/PalKhc+yi nqz0QqdAtUX99iWpwg5S5ibeUZ7zatCWsaNF1AeOhyGIni5zIW6pntiL79Sjhgu1lW dYaqqzFAA1MQVGHvRt4u+sm2IIayKeH8CGyaY0X57HCXIo22Lu6pTwFtsk1jscjHY0 vJKCp/h7f3Rl5+dldBSfdJvdpEvMtDkXEzYe8Bi9KUXF6XSRXWDfzvo78uX+FOBIyJ GAnaE02Lo16DtARj0IuLYtAKJnwoZ2y7IGednxlUqxJtaHH0E1aCe2tbqpYLXxmFjx 7PU5D7NdvbzvQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 42v9Qn1jqYz6tm5; Tue, 13 Nov 2018 02:44:17 +0100 (CET) In-Reply-To: X-Sender: brettg@posteo.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.67.36.65 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14983 Archived-At: On 13.11.2018 02:35, swedebugia wrote: > Hi > > I try to package for guix. > Sometimes I forget a parens somewhere. > > When I invoke make in the guix source tree the parens error will be > reported as any other kind of error. (unbound variable, package not > found, etc) > > I would like to know if there is a way to avoid/improve this. > > E.g. make guile count parens before evaluation or whatever so that I > get a clear error, fast. > > Alternatively maybe somebody else has a parens counter script I could > use? E.g. I could tell make to first traverse all files looking for > unmatching parens. Generally you can backtrace these kinds of errors and see what the unbound variable is tied to some Guile module that you can declare. IIRC this is also available in `guix lint`. Did that help any? Brett Gilio