dmd --fileprefix=$PWD/ to show custom file prefix before error messages

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 29 11:37:27 PDT 2016


I'd like to be able to customize rendering of files (eg in error messages)
output by dmd, eg:

dmd XXX
foo/bar.d: Warning: statement is unreachable

dmd --fileprefix=mydir/ XXX
mydir/foo/bar.d: Warning: statement is unreachable

this makes it easy to allow user to see where errors came from even after
changing directories. Eg, on OSX iterm2 allows clicking on file links, when
connecting to a server (mounted somwhere), this would allow the user to
simply click on a file and trigger action (open with editor).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160929/ff4381a1/attachment-0001.html>


More information about the Digitalmars-d mailing list