[M3devel] paths too truncated in assertion failures

Jay K jay.krell at cornell.edu
Mon Aug 31 20:02:07 CEST 2015


And in compiler/warnings errors?
 
i.e. do we need to preserve the "short" path in some cases?
 
I vote for full path always.
 
We can also provide options to trim specified prefixes, so
builds at different paths get identical output.
 
 - Jay

 
Date: Mon, 31 Aug 2015 07:26:59 -0700
Subject: Re: [M3devel] paths too truncated in assertion failures
From: lists at darko.org
To: wagner at elegosoft.com
CC: jay.krell at cornell.edu; m3devel at elegosoft.com

Absolute path is important for tools that read the output and use it. 
For instance my text editor jumps straight to the line in the source file when an assert occurs.
On Mon, Aug 31, 2015 at 6:31 AM, Olaf Wagner <wagner at elegosoft.com> wrote:
On Sat, 29 Aug 2015 22:12:37 +0000

Jay K <jay.krell at cornell.edu> wrote:



> These messages:

> ****** runtime error:***    <*ASSERT*> failed.***    file "../src/convert/Convert.m3", line 47***

>

> 1) It should really be a full path.

> I know people will disagree with me.You want more commonality across machines.I'm not sure that is worth it.In particular, debuggers always work more easily with full paths, for local private builds.Hopefully for debugging someone else's, some search pathwith "prefix replacement" is viable.But debugging your own build is more common and ideallyno special setting is needed to make that work.

> Yes, full paths could "leak" across machines but I think that is ok.

> I did work on this long ago but people disagreed with at the time.



I'd vote for full absolute path.



Olaf

--

Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com

               Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany

phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95

Geschäftsführer: Olaf Wagner | Sitz: Berlin

Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194

_______________________________________________

M3devel mailing list

M3devel at elegosoft.com

https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150831/fa79dbe9/attachment-0002.html>


More information about the M3devel mailing list