[racket] Module runs fine, but won't scribble

From: Erik Dominikus (erik.dominikus71 at gmail.com)
Date: Thu Jan 12 11:56:18 EST 2012

I tried it just now (changed the #lang of the scrbl file), and nope,
scribble still gave the same error message. The call trace blames
include-exported. My module begins with

#lang at-exp racket/base

which is copied (along with many other stuffs) from the module file/gif
as suggested by the 'In-source Documentation' part of the scribble user
guide.

I managed to make a minimal example (attached). Hope this help
pinpointing the problem. (I should've thought about it earlier, duh...)

I think the problem is "Scribble In-source Documentation fails if the
documented module shadows a symbol from its #lang". (Did I say it
correctly?)

I'd say that if I were an old grandpa trying to cross the road and that
guide were a young boy, then he helped me until the middle of the road
and then ran away.

On Wed, 2012-01-11 at 20:37 -0500, Matthias Felleisen wrote:
> Have you tried 
> 
>  #lang scribble/manual 
>  @(require (except-in (for-label racket/base) time))
> 
> Sorry for your lost sleep. -- Matthias
> 
> 
> 
> On Jan 11, 2012, at 4:47 PM, Erik Dominikus wrote:
> 
> > I need to define 'time', but it is already defined in scheme/base. My
> > module runs just fine. The problem is when I want to generate
> > documentation, scribble refuses to cooperate (in label phase level),
> > with 'module: identifier already imported for label' as the reason
> > (details at the end of this text).
> > 
> > My question is: "How do I scribble it without choosing another name?"
> > 
> > Your help will be much appreciated; I lost sleep over this.
> > 
> > 
> > Thanks.
> > 
> > 
> > 
> > erik at kire:~/scheme/doc$
> > PLTCOLLECTS=:~/scheme /kage/racket-5.2/bin/scribble --htmls guide.scrbl 
> > /home/erik/scheme/absinthe/signal.rkt:9:2: module: identifier already
> > imported for label from: racket/base at: time in: absinthe/time
> > 
> > === context ===
> > standard-module-name-resolver
> > /kage/racket-5.2/collects/racket/require-transform.rkt:76:2:
> > expand-import
> > /kage/racket-5.2/collects/racket/private/reqprov.rkt:351:5
> > /kage/racket-5.2/collects/racket/require-transform.rkt:76:2:
> > expand-import
> > try-next
> > /kage/racket-5.2/collects/racket/private/reqprov.rkt:222:2
> > /kage/racket-5.2/collects/racket/private/modbeg.rkt:46:4
> > standard-module-name-resolver
> > /kage/racket-5.2/collects/racket/private/map.rkt:18:11: map
> > /kage/racket-5.2/collects/scribble/run.rkt: [running body]
> > 
> > 
> > ____________________
> >  Racket Users list:
> >  http://lists.racket-lang.org/users
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: skrbl.tar.gz
Type: application/x-compressed-tar
Size: 447 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120112/debe2b14/attachment.bin>

Posted on the users mailing list.