From: Noah Lavine <noah.b.lavine@gmail.com>
To: bug-guile@gnu.org
Subject: Interpreter Dies Given Malformed Module Declaration
Date: Mon, 15 Nov 2010 01:08:22 -0500 [thread overview]
Message-ID: <AANLkTimO9iSdU9ceOP_ZsSFVjAa0Exy+LpoakHvfTFCR@mail.gmail.com> (raw)
Hello all,
Running the following script with 'guile -l <filename>'
#!/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:
In ice-9/boot-9.scm:
170: 16 [catch #t #<catch-closure 1012948e0> ...]
In unknown file:
?: 15 [catch-closure]
In ice-9/boot-9.scm:
62: 14 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
389: 13 [eval # #]
In ice-9/boot-9.scm:
1840: 12 [save-module-excursion #<procedure 1018b11b0 at
ice-9/boot-9.scm:1854:3 ()>]
1149: 11 [load "load-test.scm" #f]
1047: 10 [%start-stack load-stack ...]
1052: 9 [#<procedure 101d09750 ()>]
In unknown file:
?: 8 [primitive-load "load-test.scm"]
In ice-9/eval.scm:
458: 7 [#<procedure 10100b780 at ice-9/eval.scm:452:4 (exp)> #]
In ice-9/psyntax.scm:
908: 6 [chi-top-sequence ((#(syntax-object let # ...) (#) (# #) ...)) () ...]
1159: 5 [chi-top (#(syntax-object let # ...) (#) (# #) ...) () ...]
In ice-9/eval.scm:
374: 4 [eval # ()]
In ice-9/boot-9.scm:
2446: 3 [process-define-module ((test-module) #:filename "load-test.scm" ...)]
In unknown file:
?: 2 [append {should-be-a-list} ()]
In ice-9/boot-9.scm:
115: 1 [#<procedure 101328960 at ice-9/boot-9.scm:110:6 (thrown-k .
args)> wrong-type-arg ...]
In unknown file:
?: 0 [catch-closure wrong-type-arg "append" ...]
ERROR: In procedure append:
ERROR: Wrong type argument in position 1 (expecting empty list):
should-be-a-list
Whereas I think a better result would be this:
Error compiling load-test.scm: expected list after #:export clause,
instead got 'should-be-a-list.
I'm not quite sure how to make this happen yet, so if anyone knows,
please let me know.
Noah
next reply other threads:[~2010-11-15 6:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-15 6:08 Noah Lavine [this message]
2010-11-19 14:24 ` Interpreter Dies Given Malformed Module Declaration Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimO9iSdU9ceOP_ZsSFVjAa0Exy+LpoakHvfTFCR@mail.gmail.com \
--to=noah.b.lavine@gmail.com \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).