Hi Matthew,<div><br><br><div class="gmail_quote">On Sun, Aug 21, 2011 at 1:49 PM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu">mflatt@cs.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">At Sun, 21 Aug 2011 13:34:14 -0400, Ray Racine wrote:<br>
> Given the example of a small collection of library utility code, how do I<br>
> tell raco where it is located. I know of the<br>
> PLTCOLLECT environment variable trick but is that "the way"?<br>
<br>
</div>I don't like setting PLTCOLLECTS, and I have been considering adding a<br>
`raco link' command that is analogous to `raco planet link', but for a<br>
collection instead of a Planet package.<br>
<br>
Planet was supposed to play the role that you have in mind for a<br>
collection, which is why nothing like `raco link' currently exists. But<br>
I think we're moving into a mode were we experiment with plain<br>
collections, instead.<br>
<div class="im"><br>
> First is confirmation that<br>
> compile-collection-zos is broken as shouldn't the tiny example in the<br>
> original post have worked?<br>
<br>
</div>Yes -- I've pushed a repair. (I guess no one noticed the problem before<br>
because we all use `raco setup'.)</blockquote><div><br></div><div>I've been down this path and remember hitting some issues that I can't recall and reversed course. If this is the best practice I'll move back in that direction again.</div>
<div><br></div><div>Can I assume that when you say everyone uses racket setup that the arching strategy here is for a local library/collection to be established as as a planet lib associated with a development link and use raco as the make-build system for the local collection?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> Second, how do I tell racket to give a full<br>
> stack trace?<br>
<br>
</div>It's on by default, but it works less well on some platforms. What<br>
platform are you using?<br>
<br>
</blockquote></div><br></div><div>Linux Fedora 15. Straight ./configure and make install from github master.</div><div><br></div><div><div>So using my example all I see is the following.</div><div><br></div><div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
[ray@ray rktlib]$ rlwrap /usr/local/racket/bin/racket -i -S /code/rktlib</div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Welcome to Racket v5.1.3.3.</div>
<div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">> (require compiler/compiler)</div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
> (compile-collection-zos "c1")</div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">for-each: expects type <proper list> as 2nd argument, given: #<void>; other arguments were: #<procedure:.../compiler/cm.rkt:594:4></div>
<div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
=== context ===</div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">/usr/local/racket/collects/compiler/compiler-unit.rkt:199:13: for-loop</div>
<div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">/usr/local/racket/collects/racket/private/misc.rkt:87:7</div></div></div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Thanks again in advance.</div><div><br></div>