I think you need to remove the local-require in the definition of
to-file in continued-fractions.rkt. This counts as a real require for
dependency purposes; it just makes the imports scoped locally.
dynamic-require is the way to get a require that happens only at
runtime (but in this case, if you decide to keep that function there,
you probably want to use the racket/gui/dynamic library).

hth,
Robby


On Mon, Aug 24, 2015 at 11:48 AM, Deren Dohoda <[email protected]> wrote:
> Actually quoting it was the wrong thing to do, as I found out when I finally
> looked at the docs.
>
> The docs are not very complicated, if someone could take a look at the
> cf-manual.scrbl and see if something obvious is going wrong I'd appreciate
> it.
>
> https://github.com/derend/continued-fractions/blob/master/continued-fractions/cf-manual.scrbl
>
>
> Deren
>
> On Mon, Aug 24, 2015 at 11:40 AM, Deren Dohoda <[email protected]>
> wrote:
>>
>> I have tracked it down finally to a very stupid error. Some uses of
>> @examples or @interaction-eval were not given quoted expressions and this
>> was the problem. It's actually surprising that it works in DrRacket, which
>> was very misleading.
>>
>> Deren
>>
>> On Sun, Aug 23, 2015 at 10:54 PM, Deren Dohoda <[email protected]>
>> wrote:
>>>
>>> I have a scribble document with several examples. When I view the
>>> scribble html output by using DrRacket, all the examples are fine, the
>>> output is correct, and I see no errors.
>>>
>>> Then I go to the directory, use raco pkg install, and I get a major text
>>> dump which starts with "cannot instantiate 'racket/gui/base' a second time
>>> in the same process." But I didn't even try to instantiate it the first
>>> time. There's no use of gui at all in any part of the collection. I only
>>> create one evaluator for scribble examples:
>>> @(define this-eval
>>>    (let ([eval (make-base-eval)])
>>>      (eval '(begin
>>>               (require racket/math "main.rkt")))
>>>      eval))
>>>
>>> What could I be doing wrong?
>>>
>>> Thanks,
>>> Deren
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to