Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Full Indexer in CDT3.0 doesn't work

Thank you guys, you are so warm hearted.

There is no *.c files In my project. but there are some _expression_ like: "int a,b,c;".
Yes, I  stop the indexer  when it gets stuck in this loop, I delete all workspace and cancel Indexer form perference menu, and rebuild the project.


On 8/24/05, Devin Steffler <Devin_Steffler@xxxxxxxxxx> wrote:

This patch only applies to the GNUCSourceParser.java because the GNUCPPSourceParser.java does not support K&R C syntax.

Does your C++ project have .c files or files that correspond to C source code?  If it does, then 106358 is probably the cause, if not, then more investigation should be done.

I just tried the example project in 106358 as a C++ project but the GNUCSourceParser is still used to parse the .C files so the bug still occurs.  :-) it's a very frustrating one as well since the indexer always starts when Eclipse starts and you can't seem to switch the indexer off or stop the indexer from running once it gets stuck in this loop.

Devin Steffler
IBM's Eclipse CDT
Ottawa (Palladium), Ontario, Canada





Zhou Fei <zhoufei@xxxxxxxxx>
Sent by: cdt-dev-bounces@xxxxxxxxxxx

08/23/2005 08:01 PM

Please respond to
"CDT General developers list."

To
"CDT General developers list." <cdt-dev@xxxxxxxxxxx>
cc

Subject
Re: [cdt-dev] Full Indexer in CDT3.0 doesn't work







Many thanks! It is just what I meet! There are declaration like int a(), b(), c(), d(); in My CPP code.

I try to using the patch (which is for C code) (
https://bugs.eclipse.org/bugs/show_bug.cgi?id=106358)

by update the org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java in cdtparsersrc.zip file.
but
1.How to patch the GNUCPPSourceParser.java for C++?
2.After patch the src code in cdtparsersrc.zip, need rebuild eclipse?

BTW,I am not familiar with Java.
Please give me some directions on this problem.
Thank you!


On 8/24/05, cebarne2@xxxxxxxxxxxxxxxxxxx <cebarne2@xxxxxxxxxxxxxxxxxxx > wrote:

Does this bug apply to your hello world example?


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

-Chad


Zhou Fei < zhoufei@xxxxxxxxx>
Sent by:
cdt-dev-bounces@xxxxxxxxxxx

08/22/2005 10:48 PM

Please respond to
"CDT General developers list." <
cdt-dev@xxxxxxxxxxx >


To
"CDT General developers list." <cdt-dev@xxxxxxxxxxx >
cc

Subject
Re: [cdt-dev] Full Indexer in CDT3.0 doesn't work









Thanks for your detail information, I tried again, following your
advice,but the problem still there.

1.Download elcipse 3.1 and install CDT3.0 form help menu.
2.Creat a standard C++ project,and add 2 files: Hello.cpp, makefile
3.Then, C++ indexer seems never finished :(  0%

other functions works fine except the Indexer
By the way I using MingW.

Thank you for help!


On 8/22/05, Chip Chapin <
cchapin@xxxxxxxxxx > wrote:
> Out of curiousity, did this work any better for you with CDT 2.1?
>
> I've found that there are a lot of gotchas in getting good indexing with
> CDT on our source tree, but I am having much better results with 3.0
> than with 2.1.
>
> Some things to consider.  I'm still figuring this out and would be glad
> to hear more authoritative comments ...
>
>  -- Keep your workspace small.
>  -- Keep your workspace, and possibly your source files as well,on a
> local file system (not NFS).
>  -- Do a build.  The indexer discovers additional information from the
> build output.
>  -- Set your include paths carefully.  In our build environment this
> takes a lot of work because of the way we handle certain generated
> files.  Fortunately the "Problems" tab in eclipse will tell you when
> include paths are missing.
>  -- Be patient, the indexer can be slow.
>
> If javaw is running at 100% and eclipse has stopped responding then you
> might as well kill eclipse and restart it.  But I would not necessarily
> blame CDT.  I see it happen when I'm doing Python and other stuff as well.
>
> Chip
>
> Zhou Fei wrote:
>
> >Hi all!
> >I have install CDT3.0 on eclipse 3.1,
> >but, when I select the "full indexer" option, javaw endless ocupied
> >100% usage,  and lost response.
> >I have to select "No indexer"
> >How to make full indexer work?
> >Thank you all!
> >
>


--
Thanks and Best Regards
Zhou Fei
Shanghai Institute of Optics and
Fine Mechanics, Chinese Academy of Sciences
Thanks and Best Regards
Zhou Fei
Now:  13/28 Wattle Rd Hawthorn VIC AU
Mobile: +61-0423402709
Mail: zhoufei(at)gmail(dot)com

_______________________________________________
cdt-dev mailing list

cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list

cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev





--
Thanks and Best Regards
Zhou Fei
Shanghai Institute of Optics and
Fine Mechanics, Chinese Academy of Sciences
Thanks and Best Regards
Zhou Fei
Now:  13/28 Wattle Rd Hawthorn VIC AU
Mobile: +61-0423402709
Mail: zhoufei(at)gmail(dot)com _______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev





--
Thanks and Best Regards
Zhou Fei
Shanghai Institute of Optics and
Fine Mechanics, Chinese Academy of Sciences
Thanks and Best Regards
Zhou Fei
Now:  13/28 Wattle Rd Hawthorn VIC AU
Mobile: +61-0423402709
Mail: zhoufei(at)gmail(dot)com

Back to the top