<div>Hi Robby,</div><div><br></div><div>Given the example of a small collection of library utility code, how do I tell raco where it is located. I know of the PLTCOLLECT environment variable trick but is that "the way"?</div>
<div><br></div><div>[ray@ray rktlib]$ /usr/local/racket/bin/raco setup rktlib</div><div>collection-path: collection not found: #<path:rktlib> in any of: (#<path:/home/ray/.racket/<a href="http://5.1.3.3/collects">5.1.3.3/collects</a>> #<path:/usr/local/racket/collects>)</div>
<div><br></div><div>Also there are two sub-goals here besides learning "the best practice way" of maintaining a local code library. First is confirmation that compile-collection-zos is broken as shouldn't the tiny example in the original post have worked? Second, how do I tell racket to give a full stack trace?</div>
<div><br></div><br><div class="gmail_quote">2011/8/21 Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I think there might be confusion between "raco make" and "raco setup"?<br><br>Robby<div><div></div><div class="h5"><br><br>On Sunday, August 21, 2011, Ray Racine <<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>> wrote:<br>
> Yes.<br>> raco make either makes the entire racket default collection (and the one in you home path which will ignore for now). Or one can tell it to only make a single library in the default collection, <br>> e.g., raco make compiler<br>
> So by default raco doesn't "see" my collection at /code/rktlib.<br>> One trick is to planet "link" it, even though I'm not really using planet libraries.<br>> /usr/local/racket/bin/raco planet link rktlib c1.plt 1 0 /code/rktlib/c1<br>
> Then a raco make seems to first scan through all the racket collections and then finally compiles my rktlib. But most time I just want to raco make my rktlib quickly. However, trying to tell raco to just build my rktlib fails. "raco make rktlib" fails as it can't find my collection. <br>
> The problem here is raco doesn't take any sort of arg parameter which is the path to my rktlib collection. Now I can work around this by setting the PLTCOLLECTION environment var but I'm already 2 kludges deep into a rather simple thing. To compile a simple local collection, I first trick it as some sort of planet development link and then stumble across that there is this environment variable backdoor.<br>
> In the past, I just shrug, go with it and figure I'm just missing something. This time I want to figure out where I keep wandering off the reservation.<br>> On Sun, Aug 21, 2011 at 12:33 PM, Jens Axel Søgaard <<a href="mailto:jensaxel@soegaard.net" target="_blank">jensaxel@soegaard.net</a>> wrote:<br>
>><br>>><br>>> 2011/8/21 Ray Racine <<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>><br>>> <br>>>><br>>>> Works, so now compile it to zos.<br>
>><br>>> ... <br>
>>><br>>>> > (require compiler/compiler)<br>>>> > (compile-collection-zos "c1")<br>>>> for-each: expects type <proper list> as 2nd argument, given: #<void>; other arguments were: #<procedure:.../compiler/cm.rkt:594:4><br>
>><br>>> ... <br>>>><br>>>> Next question, what am I doing wrong?<br>>><br>>> Have you tried using "raco make c1.rkt" to compile the files?<br></div></div>>> <a href="http://docs.racket-lang.org/raco/make.html?q=raco%20make" target="_blank">http://docs.racket-lang.org/raco/make.html?q=raco%20make</a> <<a href="http://docs.racket-lang.org/raco/make.html?q=raco%20make" target="_blank">http://docs.racket-lang.org/raco/make.html?q=raco%20make</a>><br>
>> -- <br>>> Jens Axel Søgaard<br>>><br>>><br>><br>>
</blockquote></div><br>