Re: [racket] Adding a raco command not working for me

2013-04-09 Thread Greg Hendershott
Carl and Matthew, thank you! On Tue, Apr 9, 2013 at 6:24 AM, Carl Eastlund wrote: > If you want your tool to be in the submodule named main, your definition of > raco-commands should be: > > (define raco-commands '(("frog" (submod frog main) "run Frog" #f))) > > Carl Eastlund > > > On Mon, Apr 8,

Re: [racket] Adding a raco command not working for me

2013-04-09 Thread Carl Eastlund
If you want your tool to be in the submodule named main, your definition of raco-commands should be: (define raco-commands '(("frog" (submod frog main) "run Frog" #f))) Carl Eastlund On Mon, Apr 8, 2013 at 10:37 PM, Greg Hendershott wrote: > Ah. You mean I need an info.rkt for the package, an

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Greg Hendershott
Ah. You mean I need an info.rkt for the package, and _another_ one for the frog collection? That seems obvious now that you say it, but I hadn't realized that. So: info.rkt files are used both for packages and collections. Thank you. My next dumb question: My frog.rkt has the command-line "main

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Matthew Flatt
Here's a thought: At Sat, 6 Apr 2013 10:21:53 -0400, Greg Hendershott wrote: > I'm trying to add a raco command, following > http://docs.racket-lang.org/raco/command.html > > My info.rkt is simply this: > > #lang setup/infotab > (define deps (list "markdown" "rackjure")) > (define ra

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Greg Hendershott
p.s. My ~/Library/Racket/5.3.3.8/collects/info-domain/compiled/cache.rktd is currently just this: ((#"/Users/greg/Library/Racket/5.3.3.8/pkgs/installed/ragg/ragg" (name categories can-be-loaded-with required-core-version version repositories scribblings blurb release-notes deps) (lib "ragg") 1

Re: [racket] Adding a raco command not working for me

2013-04-08 Thread Greg Hendershott
Thank you for following up. > And, just to be sure, `raco setup frog' has no effect? Correct, it has no effect. From subdir above frog: $ raco setup frog raco setup frog raco setup: version: 5.3.3.8 [3m] raco setup: variants: 3m raco setup: main collects: /Users/greg/src/plt/racket/collects raco

Re: [racket] Adding a raco command not working for me

2013-04-06 Thread Matthew Flatt
At Sat, 6 Apr 2013 11:19:43 -0400, Greg Hendershott wrote: > So on http://docs.racket-lang.org/planet2/Developing_Packages.html > should it switch the steps around? Folks should not run `raco pkg > install --link demo` until _after_ they create an info.rkt in demo? Good point! Technically, for the

Re: [racket] Adding a raco command not working for me

2013-04-06 Thread Greg Hendershott
Thank you. So on http://docs.racket-lang.org/planet2/Developing_Packages.html should it switch the steps around? Folks should not run `raco pkg install --link demo` until _after_ they create an info.rkt in demo? Because when I try to run `raco pkg install --link` now, it does nothing, telling me:

Re: [racket] Adding a raco command not working for me

2013-04-06 Thread Matthew Flatt
At Sat, 6 Apr 2013 10:21:53 -0400, Greg Hendershott wrote: > I'm trying to add a raco command, following > http://docs.racket-lang.org/raco/command.html > > My info.rkt is simply this: > > #lang setup/infotab > (define deps (list "markdown" "rackjure")) > (define raco-commands '(("fro

[racket] Adding a raco command not working for me

2013-04-06 Thread Greg Hendershott
I'm trying to add a raco command, following http://docs.racket-lang.org/raco/command.html My info.rkt is simply this: #lang setup/infotab (define deps (list "markdown" "rackjure")) (define raco-commands '(("frog" frog "run Frog" #f))) I'm trying to do this for a collection installed