default  Access: viewconf PLT Bugs
Main PageQuick QueryStandard QueryAdvanced QueryHelp
Edit

View Problem Report: 10812

send email to interested parties or send email followup to audit-trail
Reporter's email: newton@mit.edu
Number: 10812
Category: all
Synopsis: mzscheme: Putting -i after -t causes a problem
Class: sw-bug
Responsible: nobody
Notify-List:
Severity: non-critical
Priority: medium
State: open
Confidential: no
Arrival-Date: Fri Mar 05 14:44:01 -0500 2010
Closed-Date:
Last-Modified: Fri Mar 05 14:52:01 -0500 2010
Originator: Ryan Newton
Organization: plt
Submitter-Id: unknown
Release: 4.2.4
Environment: MacIntel / Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8
Description: When I change the location of -i in the argument list I get the "no #%app syntax transformer is bound" error.

I'm using R6RS modules and the -t flag.  An example shell transcript is attached.

File Attachments:
How-To-Repeat: [newton@localhost ~]  $ cat hello.sls
#!r6rs
(library  (hello)
  (export)
  (import (rnrs (6))) 
  (display "Hello\n")
)

[newton@localhost ~]  $ mzscheme  -t hello.sls -i
Welcome to MzScheme v4.2.4 [3m], Copyright (c) 2004-2010 PLT Scheme Inc.
Hello
> 3
stdin::0: compile: unbound identifier (and no #%app syntax transformer is bound) at: #%top-interaction in: (#%top-interaction . 3)

=== context ===
/Applications/PLT Scheme/collects/scheme/private/misc.ss:74:7
>

[newton@localhost ~]  $ mzscheme -i -t hello.sls   
Welcome to MzScheme v4.2.4 [3m], Copyright (c) 2004-2010 PLT Scheme Inc.
Hello
> 3
3

Fix:
Release-Note:
Unformatted:

send email to interested parties or send email followup to audit-trail

Audit Trail:

From: Matthew Flatt <mflatt@cs.utah.edu>
To: newton@mit.edu, bugs@plt-scheme.org
Cc: nobody@plt-scheme.org, bug-notification@plt-scheme.org
Subject: Re: [plt-bug] all/10812: mzscheme: Putting -i after -t causes a problem
Date: Fri, 5 Mar 2010 12:50:20 -0700

 That's as intended. If you put "-i" first, it means "start with the
 default base language", and later requires build on that. If you put
 "-i" second, it means "run a REPL in the language built up so far".