[m-dev.] preferences for error contexts

Peter Ross pdross at gmail.com
Fri May 15 16:54:49 AEST 2009


On Fri, May 15, 2009 at 4:34 PM, Paul Bone  wrote:
> On Fri, May 15, 2009 at 04:04:47PM +1000, Ralph Becket wrote:
>> Paul Bone, Friday, 15 May 2009:
>> >
>> > I use the tool 'error' which takes the error output of mmc or some other
>> > compiler and adds the errors as source code comments to the relevant parts of
>> > my source files.  This will break with the new format, as in the example above
>> > only the text "In clause for" would be added to my source file.
>>
>> Surely 'error' can't be more than a few lines of Awk?
>
> ~pbone/bin/error is compiled from error.m which comes from somewhere in the
> mercury CVS repository.
>
> Why does it matter?
>
Well you could modify it to handle the new style of errors.  All it
needs to do is use the last error lines context if the new line
doesn't have one.  Should be trivial to implement.

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list