Re: [racket] DrRacket package suggestions

2014-05-05 Thread Robby Findler
DrRacket will now offer to update your package catalog for you when there is a missing-module exn and no suggestions (via the check syntax error message line and always via the error message printout in the repl). Hopefully that's a bit better than what we had before. Robby On Sat, May 3, 2014 at

Re: [racket] DrRacket package suggestions

2014-05-03 Thread Matthew Flatt
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

Re: [racket] DrRacket package suggestions

2014-05-03 Thread Robby Findler
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 sugges

Re: [racket] DrRacket package suggestions

2014-05-03 Thread Matthew Flatt
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 u

Re: [racket] DrRacket package suggestions

2014-05-02 Thread Asumu Takikawa
On 2014-05-02 16:53:31 -0500, Robby Findler wrote: > I'm not sure either, but it is the exn:missing-module? and > exn:missing-module-accessor functions that are supposed to be > conveying the information. So trying to find a program that should > work with those functions (but doesn't) is probably

Re: [racket] DrRacket package suggestions

2014-05-02 Thread Robby Findler
I'm not sure either, but it is the exn:missing-module? and exn:missing-module-accessor functions that are supposed to be conveying the information. So trying to find a program that should work with those functions (but doesn't) is probably the place to start. Robby On Fri, May 2, 2014 at 4:50 PM,

[racket] DrRacket package suggestions

2014-05-02 Thread Asumu Takikawa
Hi all, I seem to recall that a while ago DrRacket started to suggest packages to install when you had `require`s that failed to load any modules, but I can't seem to figure out how to trigger this anymore. Was this disabled at some point? I see that the code from this commit: https://github.co