[racket] Problem with scribble examples written in linked language

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Wed Dec 5 16:05:51 EST 2012

On 12/5/12 4:03 PM, Matthew Flatt wrote:
> At Wed, 05 Dec 2012 15:38:59 -0500, David Van Horn wrote:
>> Unfortunately, my language
>> depends on redex, and therefore racket/gui/base, which causes:
>>
>> raco setup: error: during Building docs for
>> /Users/dvanhorn/Documents/git/pcf/scribblings/pcf/main.scrbl
>> raco setup:   cannot instantiate `racket/gui/base' a second time in the
>> same process
>>
>> Is there a work around for this?
>
> You'll have to use `redex/reduction-semantics' and maybe `redex/pict'
> --- whatever pieces you need that don't include `redex/gui'.
>

OK, so it sounds like I need to have the language dynamically require 
the GUI when needed.

David


Posted on the users mailing list.