Re: CM error messages

Dave Herman <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Great, thanks!

Dave

Matthias Blume wrote:
> I just committed a fix for this.  It's not pretty, but I hope it will
> get the job done.  CM now raises an exception when it comes across an
> undefined anchor.  If the offending anchor occurs within another .cm
> file, then an error message (including file name and line number) is
> generated as well.
> 
> This should be available in 110.61.  Alternatively, you can get the
> latest version directly from the subversion repository.
> 
> Matthias
> 
> On Dec 4, 2006, at 3:32 PM, Dave Herman wrote:
> 
>> When the CM can't find a component, it gives very cryptic messages. I
>> didn't realize that in 110.60, the tdp-util library isn't installed by
>> default, so when I tried to use the BackTrace library, I got the
>> following error message:
>>
>> % ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm  main.cm
>> Main.main main.heap
>> Standard ML of New Jersey v110.60 [built: Mon Nov 20 09:30:59 2006]
>> [scanning $smlnj-tdp/back-trace.cm]
>> /Applications/smlnj/bin/sml: Fatal error -- Uncaught exception Io  with
>> <unknown> raised at Basis/Implementation/IO/text-io-fn.sml: 784.25-784.71
>>
>> It took me a long time to uncover what was going wrong: the CM didn't
>> recognize the "smlnj-tdp" variable because that component wasn't
>> installed, and consequently replaced it with something like
>> $Undef<smlnj-tdp>. Then the system proceeded to try to find
>> $Undef<smlnj-tdp>/back-trace.cm and failed to find it, whereupon it
>> raise an Io exception. (Did I get that right?)
>>
>> It would be very useful if the CM would raise an exception indicating
>> that it doesn't recognize the variable, with an informative error
>> message indicating that a particular component needs to be installed.
>>
>> Thanks,
>> Dave
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to 
>> share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Smlnj-list mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>>
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.