[plt-scheme] "variable not provided from module"

From: Robby Findler (robby at cs.uchicago.edu)
Date: Thu Mar 18 13:46:53 EST 2004

Note that there is already a user-specific collection path, built into
mzscheme. The manual says where it is, but under os X, it is
~/Library/PLT Scheme/206.1/collects in 206.1.

Robby

At Thu, 18 Mar 2004 11:44:38 -0700, Scott Owens wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> I suggest putting your code into a collection either with the 
> PLTCOLLECTS environment variable or by placing it in the collects 
> directory.  Then you can use "setup-plt -l collection-name" to compile 
> it.
> 
> I suspect the problem below is that enough files aren't being 
> re-compiled.  The setup-plt solution will make sure everything is 
> re-compiled as it needs to be.  As an added bonus, no additional script 
> is needed.
> 
> -Scott
> 
> On Mar 18, 2004, at 10:58 AM, Guillaume Marceau wrote:
> 
> >   For list-related administrative tasks:
> >   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> > What does the following error message means?
> >
> >         compile: variable not provided (directly or indirectly and at
> >         the expected position) from module:
> >         |,/home/gmarceau/projects/frp-debugger/jdwp| in:
> >         provide/contract-contract2
> >
> > The error message disappears after I remove precompiled .zo for my
> > project. I guess I am not generating them correctly. Here is the script
> > I am using:
> >
> >         #!/home/gmarceau/bin/mzscheme -r
> >         # mz-pre-parse.ss : generates .zo's for the target scheme 
> > files.
> >         (require (lib "compiler.ss" "compiler"))
> >
> >         ; main: (listof string) ->
> >         (define (main args)
> >           (or (directory-exists? "compiled")
> >               (make-directory "compiled"))
> >           ((compile-zos #f) args "compiled"))
> >
> >
> >         (main (vector->list (current-command-line-arguments)))
> >
> >


Posted on the users mailing list.