Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Navigation not working
Navigation not working [message #147315] Thu, 23 June 2005 12:29 Go to next message
Eclipse UserFriend
Originally posted by: m.fortner.sbcglobal.net

When I use Eclipse on Java projects, I can select a method, Ctrl-Click
on it and it will take me to the definition of that method. When I try
that with CDT, I get "The operation is unavailable on the current
selection (no name selected)".

I've tried the F2/F3 keys and they don't seem to work either. I've
tried this on numerous different installs (both clean installs, and
updating on top of previous installs) and nothing seems to work.

I have the indexer set to "Full C/C++ indexer".

When I try selecting a method and finding "All References" to it, that
gives me the same error.

Is there some configuration setting that I need to get this working?

Regards,

Mark Fortner
Re: Navigation not working [message #147434 is a reply to message #147315] Fri, 24 June 2005 08:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pgodeau.sapex-alma.nospam.com

Mark Fortner a écrit :
> When I use Eclipse on Java projects, I can select a method, Ctrl-Click
> on it and it will take me to the definition of that method. When I try
> that with CDT, I get "The operation is unavailable on the current
> selection (no name selected)".
>

What CDT version are you using? This feature didn't work very well in
CDT 2.1, but seems better in 3.0.
Re: Navigation not working [message #147467 is a reply to message #147434] Fri, 24 June 2005 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.fortner.sbcglobal.net

Patrick Godeau wrote:
> Mark Fortner a écrit :
>
>> When I use Eclipse on Java projects, I can select a method, Ctrl-Click
>> on it and it will take me to the definition of that method. When I
>> try that with CDT, I get "The operation is unavailable on the current
>> selection (no name selected)".
>>
>
> What CDT version are you using? This feature didn't work very well in
> CDT 2.1, but seems better in 3.0.

I'm using Eclipse 3.1 RC3 and CDT 3.0 I200506200301

Mark
Re: Navigation not working [message #147740 is a reply to message #147467] Wed, 29 June 2005 10:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: devin_steffler.ca.ibm.com

With the version of CDT that you are using the navigation features required
a complete AST that would be used to drive the features. So the common
problem with F2/F3/Ctrl-Click failing was because the #include paths weren't
setup in the project correctly. Although with the fix for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=101287 now these features have
some additional functionality even if the AST tree is broken (i.e. there is
no IASTName on the AST corresponding to the source code that was selected,
which was why you saw "no names selected").

// example.cpp:
int abc;
int main(int argc, char **argv) {
abc // this is an IASTProblemDeclaration but F2/F3 will find abc above
// with this patch through the index
}

Hope this helps,
Devin

"Mark Fortner" <m.fortner@sbcglobal.net> wrote in message
news:d9h7bk$nnv$1@news.eclipse.org...
> Patrick Godeau wrote:
> > Mark Fortner a
Re: Navigation not working [message #147756 is a reply to message #147740] Wed, 29 June 2005 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Devin,
Does that mean the patch will show up in this week's I-build? The bug
made reference to RC1 but I'm not sure when that release is scheduled to
happen.

Mark


Devin Steffler wrote:
> With the version of CDT that you are using the navigation features required
> a complete AST that would be used to drive the features. So the common
> problem with F2/F3/Ctrl-Click failing was because the #include paths weren't
> setup in the project correctly. Although with the fix for
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=101287 now these features have
> some additional functionality even if the AST tree is broken (i.e. there is
> no IASTName on the AST corresponding to the source code that was selected,
> which was why you saw "no names selected").
>
> // example.cpp:
> int abc;
> int main(int argc, char **argv) {
> abc // this is an IASTProblemDeclaration but F2/F3 will find abc above
> // with this patch through the index
> }
>
> Hope this helps,
> Devin
>
> "Mark Fortner" <m.fortner@sbcglobal.net> wrote in message
> news:d9h7bk$nnv$1@news.eclipse.org...
>
>>Patrick Godeau wrote:
>>
>>>Mark Fortner a écrit :
>>>
>>>
>>>>When I use Eclipse on Java projects, I can select a method, Ctrl-Click
>>>>on it and it will take me to the definition of that method. When I
>>>>try that with CDT, I get "The operation is unavailable on the current
>>>>selection (no name selected)".
>>>>
>>>
>>>What CDT version are you using? This feature didn't work very well in
>>>CDT 2.1, but seems better in 3.0.
>>
>>I'm using Eclipse 3.1 RC3 and CDT 3.0 I200506200301
>>
>>Mark
>>
>
>
>
Re: Navigation not working [message #147772 is a reply to message #147756] Wed, 29 June 2005 13:08 Go to previous message
Eclipse UserFriend
Originally posted by: devin_steffler.ca.ibm.com

It will be in the RC1 build which hopefully will be built tomorrow.

The patch was applied on June 28th so any build after the June 27th build
(CDT 3.0 I200506270955) will have the patch as well.

If you think that navigation still isn't working the way it should be then
bugs should be raised that can reproduce what you are seeing so that
navigation can be improved further.

Devin


"Mark Fortner" <phidias51@yahoo.com> wrote in message
news:d9uhns$thc$1@news.eclipse.org...
> Devin,
> Does that mean the patch will show up in this week's I-build? The bug
> made reference to RC1 but I'm not sure when that release is scheduled to
> happen.
>
> Mark
>
>
> Devin Steffler wrote:
> > With the version of CDT that you are using the navigation features
required
> > a complete AST that would be used to drive the features. So the common
> > problem with F2/F3/Ctrl-Click failing was because the #include paths
weren't
> > setup in the project correctly. Although with the fix for
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=101287 now these features
have
> > some additional functionality even if the AST tree is broken (i.e. there
is
> > no IASTName on the AST corresponding to the source code that was
selected,
> > which was why you saw "no names selected").
> >
> > // example.cpp:
> > int abc;
> > int main(int argc, char **argv) {
> > abc // this is an IASTProblemDeclaration but F2/F3 will find abc
above
> > // with this patch through the index
> > }
> >
> > Hope this helps,
> > Devin
> >
> > "Mark Fortner" <m.fortner@sbcglobal.net> wrote in message
> > news:d9h7bk$nnv$1@news.eclipse.org...
> >
> >>Patrick Godeau wrote:
> >>
> >>>Mark Fortner a
Previous Topic:Calling Managed Makefile from command line and variables
Next Topic:newbie, how to access to online help for 'platform sdk'/API help
Goto Forum:
  


Current Time: Thu May 29 02:10:42 EDT 2025

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

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

Back to the top