[plt-scheme] DrScheme tool development practices

From: Will Farr (farr at MIT.EDU)
Date: Wed Sep 17 10:14:16 EDT 2008


Here's what I do:

I have a source code repository directory, say $HOME/code/foo, for my  
foo planet package.  When I want to do planet development, I look up  
the latest released version of foo; let's say it's 1.3.  Then I do

planet link wmfarr foo.plt 1 4 $HOME/code/foo

So, now the previously released version is available to be required as  
1.3, and the new version is available as 1.4 using the local link.  To  
compile the new version (once at the start, and after any change), I do

setup-plt -P wmfarr foo.plt 1 4

This also executes any pre-install/post-install hooks I have  
(sometimes I work with C modules, and this would also compile those in  
the pre-install phase).

When I'm ready to release, I do

planet unlink wmfarr foo.plt 1 4
<create distribution tarball with my VCS>
<unpack tarball in some temporary directory: /tmp/foo>
cd /tmp && planet create foo
planet fileinject wmfarr foo.plt 1 4
<run foo-tests: (require (planet wmfarr/foo:1:4/run-tests))>
<upload foo.plt to PLaneT>

The important step that I think you were missing from your last email  
is the "setup-plt -P <planet package>", which re-compiles the planet  
package (even if it's a development link).

Anyway, you may want to do something different, but I thought I'd tell  
you about the system that works pretty well for me.

On Sep 17, 2008, at 10:02 AM, Stephen De Gabrielle wrote:

> Do I have devlinks right?
> I know you haven't used this yourself, but what do you think;
> - do I drop my planet fileinject/remove steps, and to replace with   
> planet link/unlink?
> or
> -  do I just link once and recompile with 'planet create .' every  
> time I restart drscheme to test my tools progress?
> It makes me think I might be better off just creating a hard-link in  
> collects/  at the os level, and just recompiling with setup-plt -l  
> 'collect-name' restart DrScheme everytime I need to restart  
> (deleting the bytecode if things go badly)
> Cheers,
> Stephen
> --
> Stephen De Gabrielle
> s.degabrielle at cs.ucl.ac.uk
> Telephone +44 (0)20 7679 0693 (x30693)
> Mobile 079 851 890 45
> Project: Making Sense of Information (MaSI)
> Work:http://www.uclic.ucl.ac.uk/annb/MaSI.html
> Home:http://www.degabrielle.name/stephen
> UCL Interaction Centre
> MPEB 8th floor
> University College London
> Gower Street
> London WC1E 6BT
> On Wed, Sep 17, 2008 at 1:40 PM, Grant Rettke <grettke at acm.org> wrote:
> Hi Stephen,
> On Wed, Sep 17, 2008 at 5:53 AM, Stephen De Gabrielle
> <spdegabrielle at gmail.com> wrote:
> > I'm currently doing the following rain dance
> > and depending on my machine I may have one or two installs of  
> drscheme
> > running (one for editing, one for testing)
> >
> > does anyone have any tips?
> http://docs.plt-scheme.org/planet/Developing_Packages_for_PLaneT.html#(part._devlinks)
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.