Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Outline
Outline [message #166549] Fri, 24 March 2006 13:15 Go to next message
Eclipse UserFriend
Originally posted by: jgallagher.opendap.org

Hi,

I am having problems with both the indexer and the Outline mode. I Know
there are lots of messages about the indexer; for now I'd like to get
the Outline mode working. The problems seem to be limited to C++ code. I
have several projects which contain a mixture of Perl, C and C++. The
Outline View works fine for the C and Perl code, but not for the C++. In
some cases a few methods/functions will be shown, but others are missing
which is some cases the window shows only includes.

Any clues?

Things I have tried: A fresh install of Eclipse (3.1.2); switching to
ctags indexing, fresh SVN checkouts of projects.

Thanks,
James
Re: Outline [message #166861 is a reply to message #166549] Thu, 30 March 2006 05:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

which cdt are you using?
3.0.1 was very picky with parser-errors, so if your code contains
constructs the parser does not know about (like qt's slots), the parser
breaks and thus the outline is never complete.
i got better with 3.0.2, but sometimes i get the impression a single
method is missing in the outline ...
Re: Outline [message #166911 is a reply to message #166549] Thu, 30 March 2006 06:44 Go to previous messageGo to next message
Eclipse UserFriend
James,

the parser which feeds the outline view cares for #ifdefs, so if some of
your functions are not compiled according to the currently set #defines then
they will not be shown in the outline. Pre-defined symbols must be made
known to eclipse in the project properties (exact place depending on whether
you are using managed or standard make projects).

That it?


Norbert
Re: Outline [message #167533 is a reply to message #166911] Thu, 06 April 2006 11:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jgallagher.opendap.org

Norbert Ploett wrote:
> James,
>
> the parser which feeds the outline view cares for #ifdefs, so if some of
> your functions are not compiled according to the currently set #defines then
> they will not be shown in the outline. Pre-defined symbols must be made
> known to eclipse in the project properties (exact place depending on whether
> you are using managed or standard make projects).
>
> That it?

I don't think so. The source does have some methods that are '#ifdef'd
out' but not everything. I was just looking at a source file where no
methods show up in the Outline view of the *.cc file but they all show
up in the *.h file. Hmmm...

I switched to the CTags indexer to try to fix this problem, I'll try
switching back. When I look at the Outline view for this particular .cc
file, the listing stops right after a collection of (stl) includes. Does
the outliner/parser work through the file linearly (so if I start moving
stuff or removing stuff, can I figure that the place where the outline
stops indicates where the error is)?

Thanks very much for your help.

James
>
> Norbert
>
>
Re: Outline [message #167541 is a reply to message #166911] Thu, 06 April 2006 11:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jgallagher.opendap.org

Norbert Ploett wrote:
> James,
>
> the parser which feeds the outline view cares for #ifdefs, so if some of
> your functions are not compiled according to the currently set #defines then
> they will not be shown in the outline. Pre-defined symbols must be made
> known to eclipse in the project properties (exact place depending on whether
> you are using managed or standard make projects).
>
> That it?

Here's some more info: If I remove the sstream include (by commenting
out '#include <sstream>,' the outline suddenly works. That is, it the
view pane updates essentially instantly, showing all the methods. If I
removed the comment so the include is back in the code ann the methods
go away again. The last thing that shows is the sstream include.

James
>
>
> Norbert
>
>
Re: Outline [message #167565 is a reply to message #166911] Thu, 06 April 2006 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jhrg.mac.com

Norbert Ploett wrote:
> James,
>
> the parser which feeds the outline view cares for #ifdefs, so if some of
> your functions are not compiled according to the currently set #defines then
> they will not be shown in the outline. Pre-defined symbols must be made
> known to eclipse in the project properties (exact place depending on whether
> you are using managed or standard make projects).
>
> That it?

Here's what I've figured out so far. Some system headers seem to break
the parser. I rarely include headers in my .h files, so those all work.
That is, the Ouline view for my all of the project's headers seems
complete. If I remove all the system headers from a .cc file, the
outline mode works as long as the class definition is visible. If I hide
the .h file which defines the class, then the outline view for the
implementation is hobbled in that only a handful of the methods are shown.

So there seems to be two issues, one of which is that the system headers
on my machine break the Outline view parser. The other, which may not
matter for my situation since all of my implementation files include a
definition, is that the Outline view is missing methods when the
implementation does not include the definition. That seems odds,
particularly since I didn't notice a pattern to behavior. Regardless,
the first problem really breaks things. And the Outline is one of the
main reasons I use Eclipse.

I'm running Eclipse on Fedora Core 4 with the stock gcc (4.0.0); java
-version returns: Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05,
mixed mode). My hardware is dual intel 64-bit. In the projects eclipse
properties I removed all defined symbols, so I'm pretty sure I'm not
inadvertanly definining something that messes with the headers. Using
gcc the code compiles correctly.

Thanks very much for your help.

James

>
>
> Norbert
>
>
Re: Outline [message #167596 is a reply to message #167565] Fri, 07 April 2006 03:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi James

In order to get the a stable outline I can recommend you a quick hack.
Just disable the
flag "Follow #includes when parsing working copies" in the
C/C++ Properties.

Of course this doesn't correct the obvius disfunction in the CDT, but at
least the outline
is working now.

Hope this helps
andrés




Am 06.04.2006, 18:33 Uhr, schrieb James Gallagher <jhrg@mac.com>:

> Norbert Ploett wrote:
>> James,
>> the parser which feeds the outline view cares for #ifdefs, so if some
>> of your functions are not compiled according to the currently set
>> #defines then they will not be shown in the outline. Pre-defined
>> symbols must be made known to eclipse in the project properties (exact
>> place depending on whether you are using managed or standard make
>> projects).
>> That it?
>
> Here's what I've figured out so far. Some system headers seem to break
> the parser. I rarely include headers in my .h files, so those all work.
> That is, the Ouline view for my all of the project's headers seems
> complete. If I remove all the system headers from a .cc file, the
> outline mode works as long as the class definition is visible. If I hide
> the .h file which defines the class, then the outline view for the
> implementation is hobbled in that only a handful of the methods are
> shown.
>
> So there seems to be two issues, one of which is that the system headers
> on my machine break the Outline view parser. The other, which may not
> matter for my situation since all of my implementation files include a
> definition, is that the Outline view is missing methods when the
> implementation does not include the definition. That seems odds,
> particularly since I didn't notice a pattern to behavior. Regardless,
> the first problem really breaks things. And the Outline is one of the
> main reasons I use Eclipse.
>
> I'm running Eclipse on Fedora Core 4 with the stock gcc (4.0.0); java
> -version returns: Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05,
> mixed mode). My hardware is dual intel 64-bit. In the projects eclipse
> properties I removed all defined symbols, so I'm pretty sure I'm not
> inadvertanly definining something that messes with the headers. Using
> gcc the code compiles correctly.
>
> Thanks very much for your help.
>
> James
>
>> Norbert
>>



--
Erstellt mit Opera
Re: Outline [message #167648 is a reply to message #167596] Fri, 07 April 2006 17:08 Go to previous message
Eclipse UserFriend
Originally posted by: jhrg.mac.com

Andrés wrote:
> Hi James
>
> In order to get the a stable outline I can recommend you a quick hack.
> Just disable the
> flag "Follow #includes when parsing working copies" in the C/C++
> Properties.
>
> Of course this doesn't correct the obvius disfunction in the CDT, but
> at least the outline
> is working now.
>
> Hope this helps

Yes! Thanks for the tip.

James
> andrés
>
>
>
>
> Am 06.04.2006, 18:33 Uhr, schrieb James Gallagher <jhrg@mac.com>:
>
>> Norbert Ploett wrote:
>>
>>> James,
>>> the parser which feeds the outline view cares for #ifdefs, so if
>>> some of your functions are not compiled according to the currently
>>> set #defines then they will not be shown in the outline.
>>> Pre-defined symbols must be made known to eclipse in the project
>>> properties (exact place depending on whether you are using managed
>>> or standard make projects).
>>> That it?
>>
>>
>> Here's what I've figured out so far. Some system headers seem to
>> break the parser. I rarely include headers in my .h files, so those
>> all work. That is, the Ouline view for my all of the project's
>> headers seems complete. If I remove all the system headers from a .cc
>> file, the outline mode works as long as the class definition is
>> visible. If I hide the .h file which defines the class, then the
>> outline view for the implementation is hobbled in that only a handful
>> of the methods are shown.
>>
>> So there seems to be two issues, one of which is that the system
>> headers on my machine break the Outline view parser. The other, which
>> may not matter for my situation since all of my implementation files
>> include a definition, is that the Outline view is missing methods
>> when the implementation does not include the definition. That seems
>> odds, particularly since I didn't notice a pattern to behavior.
>> Regardless, the first problem really breaks things. And the Outline
>> is one of the main reasons I use Eclipse.
>>
>> I'm running Eclipse on Fedora Core 4 with the stock gcc (4.0.0); java
>> -version returns: Java HotSpot(TM) 64-Bit Server VM (build
>> 1.5.0_04-b05, mixed mode). My hardware is dual intel 64-bit. In the
>> projects eclipse properties I removed all defined symbols, so I'm
>> pretty sure I'm not inadvertanly definining something that messes
>> with the headers. Using gcc the code compiles correctly.
>>
>> Thanks very much for your help.
>>
>> James
>>
>>> Norbert
>>>
>
>
>
Previous Topic:Questions on CDT design
Next Topic:Problem with debugger - "File /mydir/.settings does not exist".
Goto Forum:
  


Current Time: Tue Jul 15 05:07:31 EDT 2025

Powered by FUDForum. Page generated in 0.74075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top