<div dir="ltr">It is scary to run regression on over ten thousand lines of code and then racket spits out error messages but does not give source file location information, as above. So if anyone has an answer for this I would like to hear it.<div><br></div><div>FYI, in this particular case, test-hook was defined lower in the basic-lib.rkt than its first invocation - though at top level of the module. Not sure why this scenario fails here, now, but the test-hook definition was easily moved up. The error messaged mentioned test-hook, but that was practically meaningless as every regression routine has one. ... It had nothing to do with macros or unicode as first thought.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 10, 2015 at 12:44 PM, Thomas Lynch <span dir="ltr"><<a href="mailto:thomas.lynch@reasoningtechnology.com" target="_blank">thomas.lynch@reasoningtechnology.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When loading modules I sometimes get syntax errors - rightfully so. However, the errors sometimes don't have line numbers, making them time consuming to find.<div><br></div><div>Here is one today:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><font face="monospace, monospace">Welcome to Racket v5.2.1.</font></div></div><div><div><font face="monospace, monospace">racket@> (enter! "ap.rkt")</font></div></div><div><div><font face="monospace, monospace">link: reference (phase 0) to a variable in module "basic-lib.rkt" that is uninitialized (phase level 0); reference appears in module: "realtime.rkt" in: test-hook</font></div></div></blockquote><div><br></div><div><br>Which variable? Which line in which file?</div><div><br>This is old code that is not playing well within a new environment. There are thousands of combinations possible against this information. .. I suspect this has to do with using unicode characters, specifically lambda, within macros, if so it will not be long to find it. However, in the worse case I will have to start a binary search cutting out blocks of code, and inserting stub routines .. but this is time consuming, and this sort of vague message is not a one time occurrence.</div><div><br></div><div>Is there a way to coerce racket to be more specific in its messages?</div><div><br></div></div>
</blockquote></div><br></div>