Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Code assist in CDT 1.2.0.40: does ist work or not?
Code assist in CDT 1.2.0.40: does ist work or not? [message #79962] Wed, 10 September 2003 07:55 Go to next message
Eclipse UserFriend
Hi,

I just installed the latest nightly build of the CDT (1.2.0.40). I
previously had the 1.1 release.
My main expectation from the 1.2.0.40 version was that the code assist
feature would be available. But somehow I m not getting it to work. The
(simple) test I do is the following:

write following c++ code:

1 int main(int argc, char** argv){
2 int a_variable;
3 //here I will do something
4 }

Then I type the character 'a' on line 3, after what I hit Ctrl+space, with
the expectation that a list containing at least
'a_variable' would popup. But what I get is the code template "author", that
happens to begin with the letter 'a'.

The CDT Documentation states that:

<cite cdt doc>
Use Content Assist to insert the following directly into your code:
a.. Elements of your project or referenced project(s)
b.. Code templates
</cite cdt doc>

What is meant with "element" in this text? In my understanding an element is
for example "a_variable" in my example code.

Thx 4 ur advice

WY
Re: Code assist in CDT 1.2.0.40: does ist work or not? [message #79979 is a reply to message #79962] Wed, 10 September 2003 09:18 Go to previous messageGo to next message
Eclipse UserFriend
There is a temporary checkbox you need to enable ...
Go to Project :: Properties :: C/C++ Project :: Indexer and check both the
NEW indexer and the dependency tree checkboxes
Keep the CTAGS indexer checkbox unchecked.
Then try it out.

These checkboxes will be removed in the final version of 1.2, ( refer to Bug
42865 in bugzilla) so sorry for the inconvenience.
JohnC

"WY" <test@test.com> wrote in message news:bjn3d9$cej$1@eclipse.org...
> Hi,
>
> I just installed the latest nightly build of the CDT (1.2.0.40). I
> previously had the 1.1 release.
> My main expectation from the 1.2.0.40 version was that the code assist
> feature would be available. But somehow I m not getting it to work. The
> (simple) test I do is the following:
>
> write following c++ code:
>
> 1 int main(int argc, char** argv){
> 2 int a_variable;
> 3 //here I will do something
> 4 }
>
> Then I type the character 'a' on line 3, after what I hit Ctrl+space, with
> the expectation that a list containing at least
> 'a_variable' would popup. But what I get is the code template "author",
that
> happens to begin with the letter 'a'.
>
> The CDT Documentation states that:
>
> <cite cdt doc>
> Use Content Assist to insert the following directly into your code:
> a.. Elements of your project or referenced project(s)
> b.. Code templates
> </cite cdt doc>
>
> What is meant with "element" in this text? In my understanding an element
is
> for example "a_variable" in my example code.
>
> Thx 4 ur advice
>
> WY
>
>
>
>
Re: Code assist in CDT 1.2.0.40: does ist work or not? [message #80008 is a reply to message #79979] Thu, 11 September 2003 09:12 Go to previous messageGo to next message
Eclipse UserFriend
This does not work for me. I guess the indexer first need to run an build
the index.

And since the C/C++ search function probably goes over the indexer, I
started a search which

also started the indexer. But it simply runs out of memory after a while(my
project is very large, ~25000 files). Is there some kind of limitation
regarding the size of projects that can be handled by the indexers?

Thx

WY

"John Camelon" <jcamelon@rational.com> schrieb im Newsbeitrag
news:bjn87h$hu0$1@eclipse.org...
> There is a temporary checkbox you need to enable ...
> Go to Project :: Properties :: C/C++ Project :: Indexer and check both the
> NEW indexer and the dependency tree checkboxes
> Keep the CTAGS indexer checkbox unchecked.
> Then try it out.
>
> These checkboxes will be removed in the final version of 1.2, ( refer to
Bug
> 42865 in bugzilla) so sorry for the inconvenience.
> JohnC
>
> "WY" <test@test.com> wrote in message news:bjn3d9$cej$1@eclipse.org...
> > Hi,
> >
> > I just installed the latest nightly build of the CDT (1.2.0.40). I
> > previously had the 1.1 release.
> > My main expectation from the 1.2.0.40 version was that the code assist
> > feature would be available. But somehow I m not getting it to work. The
> > (simple) test I do is the following:
> >
> > write following c++ code:
> >
> > 1 int main(int argc, char** argv){
> > 2 int a_variable;
> > 3 //here I will do something
> > 4 }
> >
> > Then I type the character 'a' on line 3, after what I hit Ctrl+space,
with
> > the expectation that a list containing at least
> > 'a_variable' would popup. But what I get is the code template "author",
> that
> > happens to begin with the letter 'a'.
> >
> > The CDT Documentation states that:
> >
> > <cite cdt doc>
> > Use Content Assist to insert the following directly into your code:
> > a.. Elements of your project or referenced project(s)
> > b.. Code templates
> > </cite cdt doc>
> >
> > What is meant with "element" in this text? In my understanding an
element
> is
> > for example "a_variable" in my example code.
> >
> > Thx 4 ur advice
> >
> > WY
> >
> >
> >
> >
>
>
Re: Code assist in CDT 1.2.0.40: does ist work or not? [message #80070 is a reply to message #80008] Fri, 12 September 2003 14:02 Go to previous messageGo to next message
Eclipse UserFriend
I'll get back to you on that.
"WY" <test@test.com> wrote in message news:bjps9a$4aa$1@eclipse.org...
> This does not work for me. I guess the indexer first need to run an build
> the index.
>
> And since the C/C++ search function probably goes over the indexer, I
> started a search which
>
> also started the indexer. But it simply runs out of memory after a
while(my
> project is very large, ~25000 files). Is there some kind of limitation
> regarding the size of projects that can be handled by the indexers?
>
> Thx
>
> WY
>
> "John Camelon" <jcamelon@rational.com> schrieb im Newsbeitrag
> news:bjn87h$hu0$1@eclipse.org...
> > There is a temporary checkbox you need to enable ...
> > Go to Project :: Properties :: C/C++ Project :: Indexer and check both
the
> > NEW indexer and the dependency tree checkboxes
> > Keep the CTAGS indexer checkbox unchecked.
> > Then try it out.
> >
> > These checkboxes will be removed in the final version of 1.2, ( refer to
> Bug
> > 42865 in bugzilla) so sorry for the inconvenience.
> > JohnC
> >
> > "WY" <test@test.com> wrote in message news:bjn3d9$cej$1@eclipse.org...
> > > Hi,
> > >
> > > I just installed the latest nightly build of the CDT (1.2.0.40). I
> > > previously had the 1.1 release.
> > > My main expectation from the 1.2.0.40 version was that the code assist
> > > feature would be available. But somehow I m not getting it to work.
The
> > > (simple) test I do is the following:
> > >
> > > write following c++ code:
> > >
> > > 1 int main(int argc, char** argv){
> > > 2 int a_variable;
> > > 3 //here I will do something
> > > 4 }
> > >
> > > Then I type the character 'a' on line 3, after what I hit Ctrl+space,
> with
> > > the expectation that a list containing at least
> > > 'a_variable' would popup. But what I get is the code template
"author",
> > that
> > > happens to begin with the letter 'a'.
> > >
> > > The CDT Documentation states that:
> > >
> > > <cite cdt doc>
> > > Use Content Assist to insert the following directly into your code:
> > > a.. Elements of your project or referenced project(s)
> > > b.. Code templates
> > > </cite cdt doc>
> > >
> > > What is meant with "element" in this text? In my understanding an
> element
> > is
> > > for example "a_variable" in my example code.
> > >
> > > Thx 4 ur advice
> > >
> > > WY
> > >
> > >
> > >
> > >
> >
> >
>
>
Re: Code assist in CDT 1.2.0.40: does ist work or not? [message #80115 is a reply to message #80008] Fri, 12 September 2003 16:37 Go to previous message
Eclipse UserFriend
Are you sure that the first Indexer checkbox (for CTAGS) is OFF?

"WY" <test@test.com> wrote in message news:bjps9a$4aa$1@eclipse.org...
> This does not work for me. I guess the indexer first need to run an build
> the index.
>
> And since the C/C++ search function probably goes over the indexer, I
> started a search which
>
> also started the indexer. But it simply runs out of memory after a
while(my
> project is very large, ~25000 files). Is there some kind of limitation
> regarding the size of projects that can be handled by the indexers?
>
> Thx
>
> WY
>
> "John Camelon" <jcamelon@rational.com> schrieb im Newsbeitrag
> news:bjn87h$hu0$1@eclipse.org...
> > There is a temporary checkbox you need to enable ...
> > Go to Project :: Properties :: C/C++ Project :: Indexer and check both
the
> > NEW indexer and the dependency tree checkboxes
> > Keep the CTAGS indexer checkbox unchecked.
> > Then try it out.
> >
> > These checkboxes will be removed in the final version of 1.2, ( refer to
> Bug
> > 42865 in bugzilla) so sorry for the inconvenience.
> > JohnC
> >
> > "WY" <test@test.com> wrote in message news:bjn3d9$cej$1@eclipse.org...
> > > Hi,
> > >
> > > I just installed the latest nightly build of the CDT (1.2.0.40). I
> > > previously had the 1.1 release.
> > > My main expectation from the 1.2.0.40 version was that the code assist
> > > feature would be available. But somehow I m not getting it to work.
The
> > > (simple) test I do is the following:
> > >
> > > write following c++ code:
> > >
> > > 1 int main(int argc, char** argv){
> > > 2 int a_variable;
> > > 3 //here I will do something
> > > 4 }
> > >
> > > Then I type the character 'a' on line 3, after what I hit Ctrl+space,
> with
> > > the expectation that a list containing at least
> > > 'a_variable' would popup. But what I get is the code template
"author",
> > that
> > > happens to begin with the letter 'a'.
> > >
> > > The CDT Documentation states that:
> > >
> > > <cite cdt doc>
> > > Use Content Assist to insert the following directly into your code:
> > > a.. Elements of your project or referenced project(s)
> > > b.. Code templates
> > > </cite cdt doc>
> > >
> > > What is meant with "element" in this text? In my understanding an
> element
> > is
> > > for example "a_variable" in my example code.
> > >
> > > Thx 4 ur advice
> > >
> > > WY
> > >
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:org.eclipse.cdt.debug.* search
Next Topic:Managed make
Goto Forum:
  


Current Time: Fri May 09 14:41:36 EDT 2025

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

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

Back to the top