[racket] Adding a collection path (Was: Re: Long compilation+launch times)

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Aug 4 12:35:15 EDT 2010

This works fine for me (and is something that is pretty heavily relied
on for more than a decade now):

[robby at penghu] ~/Desktop$ export PLTCOLLECTS=/home/robby/something:
[robby at penghu] ~/Desktop$ racket
Welcome to Racket v5.0.1.2.
> (current-library-collection-paths)
'(#<path:/home/robby/something>
  #<path:/Users/robby/Library/Racket/5.0.1.2/collects>
  #<path:/Users/robby/git/exp/plt/collects>)
> ^D


On Wed, Aug 4, 2010 at 9:48 AM, Laurent <laurent.orseau at gmail.com> wrote:
>
>> Or even better: is there a way to add a collection permanently
>> (such as in the preferences), so that I don't have to declare them each
>> time I run racket, gracket, mzc, etc.
>
> The docs say the PLTCOLLECTS environment variable must be set to a given
> path, but the following doesn't work:
>
> <<<
> ~/Projets/Scheme-svn/gui-tools$
> PLTCOLLECTS=:/home/orseau/Projets/Scheme-svn/
> ~/Projets/Scheme-svn/gui-tools$ echo $PLTCOLLECTS
> :/home/orseau/Projets/Scheme-svn/
> ~/Projets/Scheme-svn/gui-tools$ gracket board.rkt
> board.rkt:3:9: common/common: standard-module-name-resolver:
> collection not found: "common" in any of:
> (#<path:/home/orseau/.racket/5.0.1.2/collects>
> #<path:/usr/plt-5.0.1.2/collects>) in: common/common
>
>  === context ===
> standard-module-name-resolver
>>>>
>
> Removing the ":" in PLTCOLLECTS does the same thing.
>
> The docs also say "additional collection directories can be specified in
> configuration files", but it does not say how.
>
> Has anyone played with this?
>
> --
> Laurent
>


Posted on the users mailing list.