[
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
|
I reduce the code, and find "#include <iostream>" make my indexer dead.
but I am not sure whether it is true in other situation.
My enviroment is: eclipse3.1 + cdt3.0+ mingw
reproduce this bug?
1.new a "standar c/c++ project"
2.add a header file, with a single line "#include <iostream>"
3.save
and then the indexer .....can not stop:(
On 8/25/05, Devin Steffler <Devin_Steffler@xxxxxxxxxx> wrote:
I'm not convinced that this is the same
bug as 106358.
You should raise a bug at https://bugs.eclipse.org/
describing the steps necessary to reproduce what you are seeing. Make
sure that you include some example source code as well. This is the
best way to have your problem resolved.
Thanks,
Devin Steffler
IBM's Eclipse CDT
Ottawa (Palladium), Ontario, Canada
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
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
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 _______________________________________________
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