[racket] Trouble using make-base-eval

From: Stephen Chang (stchang at ccs.neu.edu)
Date: Mon Mar 3 20:45:59 EST 2014

I filed this bug a few months ago:
http://bugs.racket-lang.org/query/?cmd=view%20audit-trail&database=default&pr=14066&return_url=http%3A%2F%2Fbugs.racket-lang.org%2Fquery%2F%3FResponsible%3Dstchang%3BState%3Dopen%3Bcolumns%3DCategory%3Bcolumns%3DSeverity%3Bcolumns%3DOriginator%3Bcolumns%3DSynopsis%3Bcmd%3Dsubmit%2520query%3Bsortby%3DNumber

I worked on a fix but was unable to come up with a satisfactory fix.
Here is the discussion:
http://lists.racket-lang.org/dev/archive/2013-October/013454.html



On Mon, Mar 3, 2014 at 8:32 PM, Greg Hendershott
<greghendershott at gmail.com> wrote:
> Or this:
>
> #lang scribble/manual
> @(require scribble/eval)
> @(define some-eval
>    (make-base-eval))
> @(require racket)
>
> On Mon, Mar 3, 2014 at 8:29 PM, Greg Hendershott
> <greghendershott at gmail.com> wrote:
>> I get the same error with your code. It looks like there's a
>> #:pretty-print arg that defaults to #t. If I set it #f it works for
>> me:
>>
>> #lang scribble/manual
>> @(require scribble/eval)
>> @(define some-eval
>>    (make-base-eval #:lang 'racket
>>                    #:pretty-print? #f))
>>
>>
>> On Mon, Mar 3, 2014 at 8:09 PM, David Van Horn <dvanhorn at cs.umd.edu> wrote:
>>> I was just dusting off old notes I have written in scribble that used to
>>> work, but now I get an error, which I've boiled down to the following
>>> example:
>>>
>>> $ cat try.scrbl
>>> #lang scribble/manual
>>> @(require scribble/eval)
>>> @(define some-eval
>>>    (make-base-eval #:lang 'racket))
>>>
>>> $ scribble --pdf try.scrbl
>>> namespace-attach-module: a different module with the same name is
>>> already in the destination namespace
>>>   module name:
>>> "/Users/dvanhorn/git/racket/racket/collects/racket/pretty.rkt"
>>>   context...:
>>>
>>> /Users/dvanhorn/git/racket/pkgs/scribble-pkgs/scribble-lib/scribble/eval.rkt:342:4
>>>
>>> /Users/dvanhorn/git/racket/racket/collects/racket/private/more-scheme.rkt:147:2:
>>> call-with-break-parameterization
>>>    /Users/dvanhorn/git/racket/pkgs/sandbox-lib/racket/sandbox.rkt:833:5:
>>> loop
>>>
>>> This is on 6.0.0.2--2014-02-04.
>>>
>>> Is this something that should work, or have I done something wrong.  Is
>>> there some way for me to work around the pretty.rkt issue?
>>>
>>> Thanks,
>>> David
>>> ____________________
>>>   Racket Users list:
>>>   http://lists.racket-lang.org/users
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users


Posted on the users mailing list.