Ok, thank you! I can use the latest build.<div>--- nadeem<br><br>On Tuesday, January 27, 2015, Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, it's a bug in v6.1.1. I've just pushed a repair for the next<br>
build.<br>
<br>
Do you need a workaround for v6.1.1? Your variant that sets<br>
`sandbox-namespace-specs` is what I would have tried; unfortunately,<br>
that runs into a second bug in v6.1.1 that I recently fixed. If you<br>
need a workaround other than using the next snapshot, I can look harder<br>
for one.<br>
<br>
Thanks for the report!<br>
<br>
At Mon, 26 Jan 2015 21:27:31 -0500, Nadeem Abdul Hamid wrote:<br>
> Ah, I am still struggling with this sandbox problem! (previous message to<br>
> 'users' below) I'm starting to feel like maybe there's a bug in 6.1.1, or<br>
> else something changed in recent versions that I'm missing. The following<br>
> screenshots show the entire contents of the BSL file that I'm trying to<br>
> load using make-module-evaluator, with gracket v6.1.1 failing the second<br>
> time you try to load the file (or another one) that contains a comment box,<br>
> while racket v6.1.1 and gracket 6.0 don't have this behavior:<br>
><br>
> <a href="http://cs.berry.edu/~nhamid/temp/foo.png" target="_blank">http://cs.berry.edu/~nhamid/temp/foo.png</a><br>
> <a href="http://cs.berry.edu/~nhamid/temp/foo60.png" target="_blank">http://cs.berry.edu/~nhamid/temp/foo60.png</a><br>
><br>
> ???<br>
><br>
> --- nadeem<br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Nadeem Abdul Hamid <<a href="javascript:;" onclick="_e(event, 'cvml', 'nadeem@acm.org')">nadeem@acm.org</a>><br>
> Date: Sun, Jan 25, 2015 at 10:35 PM<br>
> Subject: Sandbox evaluation problem - files with comment boxes<br>
> To: users <<a href="javascript:;" onclick="_e(event, 'cvml', 'users@racket-lang.org')">users@racket-lang.org</a>><br>
><br>
><br>
><br>
> I'm trying to create a simple sandbox evaluator (to load in programs in<br>
> *SL). I have the following code:<br>
><br>
> #lang racket<br>
> (require racket/sandbox)<br>
> (define E<br>
> (parameterize ([sandbox-path-permissions<br>
> '([write "/var/folders"]<br>
> [exists "/"]<br>
> [read "/"])]<br>
> )<br>
> (make-module-evaluator (string->path "test-file.rkt"))))<br>
><br>
><br>
> This works fine as long as test-file.rkt does *not* contain a comment box.<br>
> If the file contains a comment box, then the following error occurs:<br>
><br>
> /Applications/Racket<br>
> v6.1.1/share/pkgs/snip-lib/racket/snip/private/load-one.rkt:21:2:<br>
> dynamic-require: unknown module<br>
> module name: #<resolved-module-path:"/Applications/Racket<br>
> v6.1.1/share/pkgs/gui-lib/framework/main.rkt"><br>
><br>
><br>
><br>
> I thought maybe parameterizing sandbox-namespace-specs with 'framework<br>
> might do something:<br>
><br>
> (require racket/sandbox racket/gui)<br>
> (define E<br>
> (parameterize ([sandbox-path-permissions<br>
> '([write "/var/folders"]<br>
> [exists "/"]<br>
> [read "/"])]<br>
> [sandbox-namespace-specs<br>
> (list make-gui-namespace 'framework)]<br>
> )<br>
> (make-module-evaluator (string->path "lab01-insulin.rkt"))))<br>
><br>
> But it results in:<br>
> namespace-attach-module: a different instance of the same module is<br>
> already in the destination namespace<br>
> module name: "/Applications/Racket<br>
> v6.1.1/collects/racket/stxparam-exptime.rkt"<br>
><br>
><br>
> Any suggestions?<br>
><br>
> Thanks!<br>
><br>
> --- nadeem<br>
> _________________________<br>
> Racket Developers list:<br>
> <a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/dev</a><br>
</blockquote></div><br><br>-- <br><div><br></div>--<div>Nadeem Abdul Hamid<br>Associate Professor, Computer Science<br>Berry College, Mount Berry, GA 30149<br><a href="http://cs.berry.edu/~nhamid/" target="_blank">http://cs.berry.edu/~nhamid/</a></div><br>