[racket] DrRacket package suggestions
That sounds like a good idea.
I think you want the `pkg-catalog-update-local` function from
`pkg/lib`. I should update the GUI package manager to use that
function, too.
(I think the GUI package manager's implementation was first, and I must
have intended to merge them after creating the variant in `pkg/lib`.)
At Sat, 3 May 2014 08:14:29 -0500, Robby Findler wrote:
> Looking at the code, it seems like I'd need to make DrRacket do the
> task between lines 314 and 337 in by-list.rkt. I could add a button to
> the error message printout that offered to initialize (or maybe
> update?) the package table when it gets a exn:missing-module?
> exception, but there are no suggestions.
>
> Would that be useful?
>
> Robby
>
>
> On Sat, May 3, 2014 at 8:00 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> > At Sat, 3 May 2014 01:24:55 -0400, Asumu Takikawa wrote:
> >> Since the call to `pkg-catalog-suggestions-for-module` doesn't specify a
> >> catalog file, I think it uses the default value of the parameter. But
> >> the default catalog file doesn't seem to contain much useful
> >> information: [...]
> >
> > When you use the "Available from Catalog" panel in the GUI package
> > manager, then the local package database is populated, and then
> > DrRacket starts making suggestions.
> >
> > The original idea was that we'd distribute Racket with a pre-populated
> > package database, but we didn't get around to doing that.
> >