<p><br>
On Aug 1, 2011 6:15 AM, "Matthew Flatt" <<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>> wrote:<br>
><br>
> Thanks for the report! I've pushed a repair to the Racket git repo.</p>
<p>Thanks for the repair!<br>
><br>
> The problem was a mismatch between `make-base-eval' and<br>
> `make-base-eval-factory'. If you use `make-base-eval-factory' within<br>
> DrRacket (or some other context where `racket/gui/base' is loaded),<br>
> then the factory couldn't attach modules from an internal namespace to<br>
> the new evaluators that it creates.<br>
><br>
> At Sun, 31 Jul 2011 18:36:49 -0500, Patrick King wrote:<br>
> > While trying to scribble some documentation, I came across what seems to be<br>
> > a bug involving contracts and scribble's interaction form.<br>
> ><br>
> > my-module.scrbl:<br>
> ><br>
> > #lang scribble/manual<br>
> > @(require scribble/eval)<br>
> ><br>
> > When I introduce contracts into "my-module.rkt", the following lines...<br>
> ><br>
> > @(define my-eval (make-eval-factory (list "my-module.rkt")))<br>
> ><br>
> > @(interaction #:eval (my-eval)<br>
> > (my-thunk))<br>
> ><br>
> > ... produces the error message:<br>
> ><br>
> > namespace-attach-module: a different module with the same name is already in<br>
> > the destination namespace, for name: "C:\Program<br>
> > Files\Racket\collects\racket\contract.rkt"<br>
> ><br>
> > my-module.rkt:<br>
> ><br>
> > #lang racket/base<br>
> > (require racket/contract)<br>
> > (provide/contract [my-thunk (-> void?)])<br>
> > (define (my-thunk) (display (format "Hi there, Racket fans!~n")))<br>
> ><br>
> > If I do not use contracts in my-module.rkt, then the scribbling works fine.<br>
> > If I do, then evaluating (my-eval) generates the error.<br>
> ><br>
> > What up?<br>
> > _________________________________________________<br>
> > For list-related administrative tasks:<br>
> > <a href="http://lists.racket-lang.org/listinfo/users">http://lists.racket-lang.org/listinfo/users</a><br>
</p>