Re: [racket-dev] Error message proposal

2012-06-23 Thread Matthew Flatt
At Fri, 22 Jun 2012 12:50:54 -0400, Eli Barzilay wrote: > First encounter with a new(er) error message: > > [... bad indentation ...] Some error-reporting functions tried to adjust indentation, which was a bad idea. I've removed that feature and hopefully corrected the relevant messages. > * Anot

Re: [racket-dev] Error message proposal

2012-06-22 Thread Eli Barzilay
An hour ago, Eli Barzilay wrote: > > Meanwhile, we should look more carefully at the content of > > specific error messages to see if we can improve either the > > wording or the information provided in fields. First encounter with a new(er) error message: | link: module mismatch; | possibly, b

Re: [racket-dev] Error message proposal

2012-06-22 Thread Eli Barzilay
Yesterday, Matthew Flatt wrote: > I don't like the way these example have the error message twice: > once in prose and one in field-and-value form. It's difficult enough > to get either one of those right, but it's particularly difficult to > construct prose right, which is why the new convention e

Re: [racket-dev] Error message proposal

2012-06-21 Thread Matthew Flatt
At Thu, 21 Jun 2012 05:21:38 -0400, Eli Barzilay wrote: > To translate the errors you've written (as would be shown by the > default display handler, when showing all fields too): > > > (+ 1 'a) > +: contract violation > `+' expected a number in its 2nd argument; given 'a > expected: n

Re: [racket-dev] Error message proposal

2012-06-21 Thread Eli Barzilay
Four hours ago, Robby Findler wrote: > > I think Matthew is concerned with the code that constructs the error > messages and being able to build strings from parts coming from > different places.. I understood this as the continuation of the current style of error messages, not as a technical pro

Re: [racket-dev] Error message proposal

2012-06-21 Thread Robby Findler
On Thu, Jun 21, 2012 at 4:21 AM, Eli Barzilay wrote: > Three hours ago, Matthew Flatt wrote: >> I think you're asking for two changes to the error-message syntax: >> >>  * Move srcloc back to the front of error messages. >> >>  * Support multi-line messages: the first line is supposed to be >>    

Re: [racket-dev] Error message proposal

2012-06-21 Thread Eli Barzilay
Three hours ago, Matthew Flatt wrote: > I think you're asking for two changes to the error-message syntax: > > * Move srcloc back to the front of error messages. > > * Support multi-line messages: the first line is supposed to be >useful on its own, but extra lines act as a kind of detail f

Re: [racket-dev] Error message proposal

2012-06-20 Thread Matthew Flatt
I think you're asking for two changes to the error-message syntax: * Move srcloc back to the front of error messages. * Support multi-line messages: the first line is supposed to be useful on its own, but extra lines act as a kind of detail field that is nicely placed and particularly pro

Re: [racket-dev] Error message proposal

2012-06-20 Thread Matthew Flatt
Thanks. I'll give this a try as soon as possible. At Wed, 20 Jun 2012 13:32:32 -0400, Eli Barzilay wrote: > Here's a concrete proposal for error message structe. I'll leave the > highlevel philosophical discussion to the other threads -- but JFYI, > it does require accepting the problems I mentio

Re: [racket-dev] Error message proposal

2012-06-20 Thread Jay McCarthy
I really like this idea. It seems to be the best of both worlds. I agree with Robby that more information and structure is good. I also think, with Eli, that the first line is special for humans and for existing tools. Jay On Wed, Jun 20, 2012 at 11:32 AM, Eli Barzilay wrote: > Here's a concrete

[racket-dev] Error message proposal

2012-06-20 Thread Eli Barzilay
Here's a concrete proposal for error message structe. I'll leave the highlevel philosophical discussion to the other threads -- but JFYI, it does require accepting the problems I mention in the "phrasing" thread. The general idea is that the first line of an error message is a title, and therefor