From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: Interpreter Dies Given Malformed Module Declaration Date: Fri, 19 Nov 2010 15:24:03 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290176457 19604 80.91.229.12 (19 Nov 2010 14:20:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2010 14:20:57 +0000 (UTC) Cc: bug-guile@gnu.org To: Noah Lavine Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 19 15:20:52 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PJRpc-0000ag-6t for guile-bugs@m.gmane.org; Fri, 19 Nov 2010 15:20:52 +0100 Original-Received: from localhost ([127.0.0.1]:51339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJRpb-0000aU-JY for guile-bugs@m.gmane.org; Fri, 19 Nov 2010 09:20:51 -0500 Original-Received: from [140.186.70.92] (port=33443 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJRpT-0000aD-Hk for bug-guile@gnu.org; Fri, 19 Nov 2010 09:20:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJRpO-0003lD-Ch for bug-guile@gnu.org; Fri, 19 Nov 2010 09:20:43 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:45960 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJRpO-0003i3-7w for bug-guile@gnu.org; Fri, 19 Nov 2010 09:20:38 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id BDB6024B0; Fri, 19 Nov 2010 09:20:22 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=cRKzHr+JPX52/vjPepJg2S0I5p8=; b=boZvxb L6yJi//IWJbINNrsJAfz03ODcwAk0yKHjJeewxLcrjejlHyksIfyZ0XLQEUcePoT vvgv8WXz8gnupC8aPGlhw/qpfaRkOPuJxbEFwWlasoUAiPnDE22C0sJySB3UwyY+ NgPCM65gdq3Myw2bjM6fBs+kYkHfzkaeHnhG8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Gk+6mbYm+ThgbfSe0ScFyCnJBt+BksSq dew4Zd20nUTXPOE/8gLvV077qC+glztMJxE84fY8H/TFEb3xwkzUKI+QDJYeEo3q pfxz0jLaGnK6u/Vn829sOCg9Y3X+e/4WEWUC9qNQqJeVCKtghlmvuazM//MjB1hl HfdUpdCDm3A= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 9921D24AF; Fri, 19 Nov 2010 09:20:21 -0500 (EST) Original-Received: from unquote.localdomain (unknown [88.0.167.219]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id CE1ED24AD; Fri, 19 Nov 2010 09:20:19 -0500 (EST) In-Reply-To: (Noah Lavine's message of "Mon, 15 Nov 2010 01:08:22 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 24918430-F3E8-11DF-BD91-B53272ABC92C-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4874 Archived-At: Hi Noah, On Mon 15 Nov 2010 07:08, Noah Lavine writes: > Running the following script with 'guile -l ' > > #!/usr/bin/guile > !# > > (define-module (test-module) > #:export should-be-a-list) > > Gives this result: > > ;;; WARNING: compilation of load-test.scm failed: > ;;; key wrong-type-arg, throw_args ("append" "Wrong type argument in > position ~A (expecting ~A): ~S" (1 "empty list" should-be-a-list) > (should-be-a-list)) > Backtrace: I think I have fixed this in git. Now the result it: $ meta/guile /tmp/foo.scm ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling /tmp/foo.scm ;;; WARNING: compilation of /tmp/foo.scm failed: ;;; key syntax-error, throw_args (define-module "unknown keyword or bad argument" #f #:export should-be-a-list) Syntax error: unknown location: define-module: unknown keyword or bad argument in subform should-be-a-list of #:export Of course, the error can still be better, but it's an improvement. Cheers, Andy -- http://wingolog.org/