public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: error message formatting
@ 1998-04-20 11:44 Kaz Kylheku
  0 siblings, 0 replies; 26+ messages in thread
From: Kaz Kylheku @ 1998-04-20 11:44 UTC (permalink / raw)
  To: 'Pieter Nagel', EGCS discussion list

On Friday, April 17, 1998 2:37 AM, Pieter Nagel [SMTP:pnagel@epiuse.co.za] 
wrote:
> On Fri, 17 Apr 1998, Anthony Shipman wrote:
>
> > I don't know what problems multiple-line error messages might cause for
> > other tools.
>
> They will break many IDE's which spawn the compiler in the
> background and capture it's error output.

The IDE's are broken. It is their responsibility to parse the compiler output
properly.

Vim, for instance, has few problems with multi-line errors. The only
annoyance is that each line is treated as an individual error, so
that it takes three :cn commands to step through a three line
error. Other than that, it's fine. If you bind a key to traverse the
errors, the aggravation is minimal.


^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: error message formatting
@ 1998-04-16 14:20 Mike Stump
  0 siblings, 0 replies; 26+ messages in thread
From: Mike Stump @ 1998-04-16 14:20 UTC (permalink / raw)
  To: cogen, egcs

> Date: Thu, 16 Apr 98 08:55:31 -0400
> From: David Cogen <cogen@ll.mit.edu>
> To: egcs@cygnus.com

> Yes (to both). Are these going to be difficult to implement?

I probably wouldn't find them difficult to implement.  The real
question is, would you find it difficult to implement?  :-) Everyone
usually (please, let me know if I am wrong) has plenty of work to keep
them busy.  You can either sit there and wait around for it, or you
can make it happen.  The rest of us would love it if you can find a
way to make it happen.

> What if there is more than one typedef for a template? Is there an obvious
> algorithm to choose the "correct" one? 

I think so, I'd just need to think about it some.  It might be as easy
as the shortest name wins.  :-)

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: error message formatting
@ 1998-04-15 14:53 Mike Stump
  1998-04-15 20:39 ` Joe Buck
  1998-04-16  5:58 ` David Cogen
  0 siblings, 2 replies; 26+ messages in thread
From: Mike Stump @ 1998-04-15 14:53 UTC (permalink / raw)
  To: als; +Cc: egcs

> From: Anthony Shipman <als@tusc.com.au>
> Date: Wed, 15 Apr 1998 03:50:00 +1000 (EST)

> It would be nice if there was some readable formatting for error messages 
> instead of the following.  There are three very long lines here.

> fxg_glyph_mgr.cc:345: no matching function for call to `map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert (__rb_tree_iterator<pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *>,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> *> &, list<FXG_Glyph *,__default_alloc_template<false,0> > *&)'

To be concrete, I think if we check to see if the type of a template
parameter is the default value for the parameter, it be not printed
if it would have been the last one printed.

Also, if there exists a typedef name for a type, then we use the
typedef name instead of the real name, if the real name is a template
of some kind.

^ permalink raw reply	[flat|nested] 26+ messages in thread
* error message formatting
@ 1998-04-14 15:23 Anthony Shipman
  1998-04-15  7:39 ` David Cogen
  1998-04-15 14:53 ` Joe Buck
  0 siblings, 2 replies; 26+ messages in thread
From: Anthony Shipman @ 1998-04-14 15:23 UTC (permalink / raw)
  To: EGCS discussion list

It would be nice if there was some readable formatting for error messages 
instead of the following.  There are three very long lines here.

fxg_glyph_mgr.cc:345: no matching function for call to `map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert (__rb_tree_iterator<pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *>,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> *> &, list<FXG_Glyph *,__default_alloc_template<false,0> > *&)'
/usr/local/egcs/include/g++/stl_map.h:139: candidates are: map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert(__rb_tree_iterator<pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *>,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &,pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> *>, const pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &)
/usr/local/egcs/include/g++/stl_map.h:138:                 map<int,list<FXG_Glyph *,__default_alloc_template<false,0> > *,less<int>,__default_alloc_template<false,0> >::insert(const pair<const int,list<FXG_Glyph *,__default_alloc_template<false,0> > *> &)

-- 
Anthony Shipman                 "You've got to be taught before it's too late,
TUSC Computer Systems Pty Ltd    Before you are six or seven or eight,
666 Doncaster Rd, Doncaster      To hate all the people your relatives hate,
Melbourne, Australia, 3108       You've got to be carefully taught."  R&H

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~1998-04-21 17:06 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-20 11:44 error message formatting Kaz Kylheku
  -- strict thread matches above, loose matches on Subject: below --
1998-04-16 14:20 Mike Stump
1998-04-15 14:53 Mike Stump
1998-04-15 20:39 ` Joe Buck
1998-04-16 10:51   ` Per Bothner
1998-04-16 13:53     ` Joe Buck
1998-04-16  5:58 ` David Cogen
1998-04-14 15:23 Anthony Shipman
1998-04-15  7:39 ` David Cogen
1998-04-15 14:53   ` Mark Schaefer
1998-04-15 14:53     ` David Cogen
1998-04-15 23:03       ` Joe Buck
1998-04-16  6:10         ` David Cogen
1998-04-16  2:26       ` Per Bothner
1998-04-16 16:34       ` Anthony Shipman
1998-04-17  2:23         ` Pieter Nagel
1998-04-17 14:42         ` David Cogen
1998-04-15 23:03     ` Joe Buck
1998-04-16 16:34   ` Craig Burley
1998-04-15 14:53 ` Joe Buck
1998-04-16  0:01   ` Mark Mitchell
1998-04-16 18:39     ` Alexandre Oliva
1998-04-16 23:59       ` Mark Mitchell
1998-04-16  5:58   ` David Cogen
1998-04-16 13:53     ` David Cogen
1998-04-21 17:06   ` Lassi A. Tuura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).