Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 77180 - Outline View doesn't work
Summary: Outline View doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-28 08:33 EDT by Alan Escreet CLA
Modified: 2009-01-09 15:27 EST (History)
0 users

See Also:


Attachments
Screenshot of Test class and incorrect Outline view (62.46 KB, image/jpeg)
2004-10-28 08:36 EDT, Alan Escreet CLA
no flags Details
Screen capture that illustrates WORKSFORME (105.94 KB, image/png)
2004-10-28 10:58 EDT, John Camelon CLA
no flags Details
variables and methods missing their types. (63.72 KB, image/jpeg)
2005-03-18 02:03 EST, Albert Bicchi CLA
no flags Details
Outline view lacks method PH::m_kernel... (and other methods not shown here) (173.12 KB, image/png)
2005-10-18 09:39 EDT, Daniel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Escreet CLA 2004-10-28 08:33:31 EDT
The Outline View sometimes completely misses out members and methods of a class.
Tested with a very simple class (see attachment).
It could be a problem associated with locating included header files as I am
using eclipse locally on Windows to develop on a Solaris file system via Samba.
The only included header in this test case is however located by eclipse
(include path and preprocessor directives have been set up to search the Solaris
file system directly identically to the project Makefile).
Comment 1 Alan Escreet CLA 2004-10-28 08:36:01 EDT
Created attachment 15438 [details]
Screenshot of Test class and incorrect Outline view
Comment 2 John Camelon CLA 2004-10-28 09:22:24 EDT
Turn off "Follow Include's Mode" from the C++ Preferences and it should work 
better.  If we don't have access to the header files, we cannot be expected to 
do a semantic parse.  

*** This bug has been marked as a duplicate of 71484 ***
Comment 3 Alan Escreet CLA 2004-10-28 09:50:00 EDT
"Follow Include's Mode" is off. I think it is off be default. The Outline View
effect does not change.
Comment 4 John Camelon CLA 2004-10-28 10:58:59 EDT
Created attachment 15443 [details]
Screen capture that illustrates WORKSFORME

Using the latest source off the 2_0 branch, w/follow includes option on or off,
this source code parses correctly for me and I get the proper outline.	Perhaps
there is something else wrong with your configuration that we are not
identifying. While there have been assorted fixes applied to the 2_0 branch
since 2.0.2 was cut, I cannot in recent memory remember any failures in 2004
regarding the parsing of these types of declarations.
Comment 5 Albert Bicchi CLA 2005-03-18 02:03:02 EST
Created attachment 18966 [details]
variables and methods missing their types.

I am also missing the type for primitive data types. I am using mingw.
Comment 6 Daniel CLA 2005-10-18 09:39:46 EDT
Created attachment 28386 [details]
Outline view lacks method PH::m_kernel... (and other methods not shown here)
Comment 7 Daniel CLA 2005-10-18 09:41:52 EDT
Comment on attachment 28386 [details]
Outline view lacks method PH::m_kernel... (and other methods not shown here)

Knock-out criterion in my casae. Problem present in CDT 2 and 3. 
The version running on Eclipse 2.1 is fine, so I'm using that for the moment.
Comment 8 Daniel CLA 2005-10-18 09:42:31 EDT
Comment on attachment 28386 [details]
Outline view lacks method PH::m_kernel... (and other methods not shown here)

Knock-out criterion in my case. Problem present in CDT 2 and 3. 
The version running on Eclipse 2.1 is fine, so I'm using that for the moment.
Comment 9 Chris Recoskie CLA 2007-05-31 16:36:12 EDT
John couldn't reproduce this way back in 2004 so I'm resolving this as WORKSFORME.