Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - truncated error message in problems view.: (17 Items)
   
truncated error message in problems view.  
IDE45 (under IDE401 too)

Windows XP.

QNX Installations 

  Installation Name: QNX Momentics Development Suite 6.3.2
            Version: 6.3.2
     Base Directory: C:/QNX632
           QNX_HOST: C:/QNX632/host/win32/x86
         QNX_TARGET: C:/QNX632/target/qnx6

Additional Packages



Attached a simple test project what leeds to a truncated error message in problems view .

I can't reproduce it here. 

The  attached archive contains a simple QNXC++ project and  also a snapshot.bmp file what shoud illustrate the problem.

For example:

`intx' undeclared (first use this function)

is just  

`intx' undeclared (first use


What can be done to fix this ?
What is the root cause of this ?
Is there some global setting that isn't part of the project or 
workspace configuration that may have changed by mistake?


THX a lot.
Jeevan


 
Attachment: Compressed file AnotherTest.zip 52.03 KB
Re: truncated error message in problems view.  
You can use the compiler option:
-fmessage-length=n where n equals the number of characters. The default value for c++ is 72 Characters. If you extend 
that to a larger value it should display the full error message correctly.

Regards,
Nick
Re: truncated error message in problems view.  
If you using gcc 3.3.5 it cuts error messages in small pieces. Add 
option -fmessage-length=0 to compiler to force print error message on 
one line.

Re: truncated error message in problems view.  
Is there any reason that's not the default?

Elena Laskavaia wrote:
> If you using gcc 3.3.5 it cuts error messages in small pieces. Add
> option -fmessage-length=0 to compiler to force print error message on
> one line.
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post6604
> 

-- 
cburgess@qnx.com
Re: truncated error message in problems view.  
No real reason, they introduced this message splitting in gcc 3.3.5.
It is default in gcc 2.95* and gcc 4.2* I believe. In IDE if user would 
use managed projects we are making it default now (in IDE 4.5).

Re: truncated error message in problems view.  
Line wrapping at 72 characters is still the default for C++ with gcc 4.2

Regards,

Ryan Mansfield
Re: truncated error message in problems view.  
> Is there any reason that's not the default?

Do you mean why itsn't it the default with IDE or the default with the compiler?

Line wrapping was introduced for C++ to improve the readability of the messages.  I think making it the default within 
the compiler would make command line users life more painful just to overcome shortcomings with the IDE's error parser.

Regards,

Ryan Mansfield
Re: truncated error message in problems view.  
shortcomings? You mean that IDE does not have artificial intelligence 
engine to  figure out that  next  line is  part  of gcc error message 
and not part of some other tool message or echo in make?

That comment aside I would agree that it is fine to have it default in 
gcc to wrap the lines. IDE would make this default for projects managed 
by IDE - that should make everybody happy.

Ryan Mansfield wrote:
>
> > Is there any reason that's not the default?
>
> Do you mean why itsn't it the default with IDE or the default with the 
> compiler?
>
> Line wrapping was introduced for C++ to improve the readability of the 
> messages.  I think making it the default within the compiler would 
> make command line users life more painful just to overcome 
> shortcomings with the IDE's error parser.
>
> Regards,
>
> Ryan Mansfield
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post6616
>
Re: truncated error message in problems view.  
FIGHT FIGHT FIGHT! :-)

Seriously, it seems to be a common issue.  As Elena notes the managed make
disables the wrapping.

But I would say it would be useful for IDE generated common.mk to add the
disable too, since someone who generates the common.mk within the IDE
will typically be expecting to see the output in the problems view, eh?

Elena Laskavaia wrote:
> shortcomings? You mean that IDE does not have artificial intelligence
> engine to  figure out that  next  line is  part  of gcc error message
> and not part of some other tool message or echo in make?
> 
> That comment aside I would agree that it is fine to have it default in
> gcc to wrap the lines. IDE would make this default for projects managed
> by IDE - that should make everybody happy.
> 
> Ryan Mansfield wrote:
>  >
>  > > Is there any reason that's not the default?
>  >
>  > Do you mean why itsn't it the default with IDE or the default with the
>  > compiler?
>  >
>  > Line wrapping was introduced for C++ to improve the readability of the
>  > messages.  I think making it the default within the compiler would
>  > make command line users life more painful just to overcome
>  > shortcomings with the IDE's error parser.
>  >
>  > Regards,
>  >
>  > Ryan Mansfield
>  >
>  > _______________________________________________
>  > General
>  > http://community.qnx.com/sf/go/post6616
>  >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post6618
> 

-- 
cburgess@qnx.com
Re: truncated error message in problems view.  
> shortcomings? You mean that IDE does not have artificial intelligence 
> engine to  figure out that  next  line is  part  of gcc error message 
> and not part of some other tool message or echo in make?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=54812

"The error parser manager and error parser interface need to be updated for the
following reasons;
- handle new console interface.
- better parsing of multiline errors/warnings."

Regards,

Ryan Mansfield


Re: truncated error message in problems view.  
Kerpow! :-)

(now I need a Zablooi!!! from someone...)

Ryan Mansfield wrote:
>  > shortcomings? You mean that IDE does not have artificial intelligence
>  > engine to  figure out that  next  line is  part  of gcc error message
>  > and not part of some other tool message or echo in make?
> 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=54812
> 
> "The error parser manager and error parser interface need to be updated 
> for the
> following reasons;
> - handle new console interface.
> - better parsing of multiline errors/warnings."
> 
> Regards,
> 
> Ryan Mansfield
> 
> 
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post6620
> 

-- 
cburgess@qnx.com
Re: truncated error message in problems view.  
> Kerpow! :-)
> 
> (now I need a Zablooi!!! from someone...)

PR 56933 :-)
J.
Re: truncated error message in problems view.  
Ryan came back with a left hook in the form of PR19221! ;-)

Jeevan Mathew wrote:
>  > Kerpow! :-)
>  >
>  > (now I need a Zablooi!!! from someone...)
> 
> PR 56933 :-)
> J.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post6622
> 

-- 
cburgess@qnx.com
Re: truncated error message in problems view.  
> Ryan came back with a left hook in the form of PR19221! ;-)
> 

Ya , and that knocked me down (once more). Not going to awake sooo soon.

cu |)
Re: truncated error message in problems view.  
The fact that these problems are not fixed is saying it all. Gcc does 
not make it easy to parse cut messages. There is no \ at the end of 
line, there is no indication that next line is part of previous.
The fact that line starts with spaces does not mean anything because I 
can add echo in make that has message like that. Plus if it does not 
print on tty I don't see point cutting it anyways.

Colin Burgess wrote:
>
> Ryan came back with a left hook in the form of PR19221! ;-)
>
> Jeevan Mathew wrote:
> >  > Kerpow! :-)
> >  >
> >  > (now I need a Zablooi!!! from someone...)
> >
> > PR 56933 :-)
> > J.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post6622
> >
>
> -- 
> cburgess@qnx.com
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post6623
>
Re: truncated error message in problems view.  
> The fact that these problems are not fixed is saying it all. Gcc does 
> not make it easy to parse cut messages. There is no \ at the end of 
> line, there is no indication that next line is part of previous.
> The fact that line starts with spaces does not mean anything because I 
> can add echo in make that has message like that. Plus if it does not 
> print on tty I don't see point cutting it anyways.

No one said the solution was easy. But four CDT committers (including the CDT project lead) have agreed that the CDT 
error parser needs to be improved to handle multi-line messages. Go argue with them if you don't think it should or can 
be fixed. 

Regards,

Ryan Mansfield
Re: truncated error message in problems view.  
Wow Wow.  I was only "5 minutes" absent. And missed so much action.

Thanks a lot to all of You.
 
Jeevan