Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 39120

Summary: The tasks list does not correctly decipher the compile output
Product: [Tools] CDT Reporter: Oyvind Harboe <oyvind.harboe>
Component: cdt-coreAssignee: Alain Magloire <alain>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Shows a task list where there is no explanation for each error none

Description Oyvind Harboe CLA 2003-06-19 10:02:29 EDT
The output below, leads to the tasks list that I'll attach.

c:\cygwin\bin\sh ../scripts/build.sh 
Current directory: /ecos-c/e21/workspace/firmware
Setting up build environment with workspace in /ecos-c/e21/workspace
Running make
-- dependencies HelpCmd.cc
In file included from firmware.h:34,
                 from HelpCmd.cc:1:
HelpCmd.h:14:3: warning: no newline at end of file
rm -rf output/version.o
mkdir --parents output
-- compiling HelpCmd.cc
In file included from firmware.h:34,
                 from HelpCmd.cc:1:
HelpCmd.h:14:3: warning: no newline at end of file
-- compiling InfoCmd.cc
In file included from firmware.h:34,
                 from InfoCmd.cc:1:
HelpCmd.h:14:3: warning: no newline at end of file
-- compiling SerialInterpreter.cc
In file included from firmware.h:34,
                 from SerialInterpreter.cc:1:
HelpCmd.h:14:3: warning: no newline at end of file
-- compiling main.cc
In file included from firmware.h:34,
                 from main.cc:1:
HelpCmd.h:14:3: warning: no newline at end of file
-- compiling version.cc
In file included from firmware.h:34,
                 from version.cc:1:
HelpCmd.h:14:3: warning: no newline at end of file
-- linking
   text	   data	    bss	    dec	    hex	filename
  66804	   2632	  19688	  89124	  15c24	output/rimi.elf
-- Done!
Comment 1 Oyvind Harboe CLA 2003-06-19 10:05:59 EDT
Created attachment 5247 [details]
Shows a task list where there is no explanation for each error

When I look at the tasks list more closely, perhaps it is working as intended?

I've previously used JDT and it has a more intuitive way of listing errors in
the task list...

What I would have expected was an error and then a reference to a file in a
seperate column, i.e. in this case the error listed 5x and an extra column
w/filenames...

Øyvind
Comment 2 Alain Magloire CLA 2003-06-19 12:01:41 EDT
Yes, you are right, in this case, it is a multi-line error.

> In file included from firmware.h:34,
>                 from HelpCmd.cc:1:

The lines matches the pattern and the error parser is looking for a filename
"from HelpCmd.cc"  since it does not find any it sets the error on the project

This is why you see those
[ from HelpCmd.cc]
[ from ....]
...

in the tasklist.

I'm looking at a solution for this i.e. to recognise the multi-line error
pattern "In file ...".

But that would be on next week agenda 8-).
Comment 3 Johan Walles CLA 2003-06-23 04:44:30 EDT
This is a duplicate of bug 30365.  Please close it as such.
Comment 4 Alain Magloire CLA 2003-06-24 14:46:47 EDT
Yes duplicate of 30365.

Thanks.

*** This bug has been marked as a duplicate of 30365 ***