[racket] Having no collection subdirectory in a package?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Aug 16 08:13:21 EDT 2013

Which version of Racket are you using?

I ask because single-collection packages are only supported in v5.90.x
--- not in v5.3.6 or earlier.

At Fri, 16 Aug 2013 07:27:02 +0100, Lawrence Woodman wrote:
> Hello,
> 
> In a previous thread about documentation, I was given the advice
> that there was no need to have a collection subdirectory in packages
> with a single collection.
> 
> I therefore went from:
> 
>      .                       Package root
>      info.rkt                Package info.rkt
>      xdgbasedir/             Collection directory
>      xdgbasedir/info.rkt     Collection info.rkt
>      xdgbasedir/main.rkt     Collection main.rkt
> 
> 
> To:
> 
>      .                       Package root
>      info.rkt                Package/collection info.rkt
>      main.rkt                Collection main.rkt
> 
> However when ever I try to require xdgbasedir I get:
> 
>      xdgbasedir: standard-module-name-resolver: collection not found
>        collection: "xdgbasedir"
>        in collection directories:
>         /home/lorry/data/dev/lib/xdgbasedir
>         /home/lorry/.racket/5.3.6/collects
>         /usr/lib/racket/collects in: xdgbasedir
> 
> I have created a package link for xdgbasedir to 
> /home/lorry/data/dev/lib/xdgbasedir which
> is the root of the package as described above.  If I recreate the 
> previous structure
> with a collection subdirectory everything works.
> 
> Am I doing something wrong?
> 
> 
> Lorry
> 
> -- 
> vLife Systems Ltd
> Registered Office: The Meridian, 4 Copthall House, Station Square, Coventry, 
> CV1 2FL
> Registered in England and Wales No. 06477649
> http://vlifesystems.com
> 
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users


Posted on the users mailing list.