[racket-dev] Bash Completion Broken?

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Tue Jul 9 13:44:05 EDT 2013

At Tue, 9 Jul 2013 10:52:18 -0600,
Matthew Flatt wrote:
> 
> At Tue, 09 Jul 2013 12:23:56 -0400, Vincent St-Amour wrote:
> > Bash completion for raco setup (in
> > pkgs/plt-services/meta/contrib/completion/racket-completion.bash)
> > is currently broken. It only completes collects that are in the core.
> > I haven't tried it, but I suspect that zsh completion is similarly
> > broken.
> > 
> > To find collects to complete, the script looks for subdirectories of the
> > directories listed in `current-library-collection-paths'. On my current
> > install, these directories are:
> > 
> >     /home/stamourv/src/plt/add-on/5.3.900.5/collects
> >     /home/stamourv/src/plt/racket/lib/collects
> > 
> > which doesn't include package-installed collects. The first directory
> > also doesn't exist.
> > 
> > Is this a bug in `current-library-collection-paths', or should the
> > completion script use something else now?
> 
> The completion script will need to check links, too. (That was
> technically true before, but you didn't have enough links for it to
> matter.)
> 
> The example below shows how to get all top-level collection names, but
> I'm not sure that's what you want. 

The completion is used for, e.g., raco setup, so top-level collections
are probably the right thing.

I'll give that a try.

Thanks!

Vincent

Posted on the dev mailing list.