Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't make Code Assist working
Can't make Code Assist working [message #83555] Sun, 19 October 2003 13:12 Go to next message
Eclipse UserFriend
Originally posted by: alex.agranov.audiocodes.com

Hi,

I'm having problems in making Code Assist working on the final 1.2 CDT build
under WinXP, JRE 1.4.2. It doesn't seem to find any symbol at all - neither
public methods inside the class, nor even the following example (taken from
this group):

void main()
{
int a_variable;
a<code assist>
}

The Search works perfectly fine.

I checked logs is workspace/.metadata and see the foollowing:
..\workspace\.metadata\.plugins\org.eclipse.cdt.core\.log
ENTRY org.eclipse.cdt.core 4 4
Re: Can't make Code Assist working [message #83639 is a reply to message #83555] Mon, 20 October 2003 14:32 Go to previous messageGo to next message
John Camelon is currently offline John CamelonFriend
Messages: 242
Registered: July 2009
Senior Member
This version of code assist uses search, which requires a saved editor in
order to register the variables into the indexer.

We shall be improving this feature in a future release.

John

"Alex Agranov" <alex.agranov@audiocodes.com> wrote in message
news:bmu2i4$7qb$1@eclipse.org...
> Hi,
>
> I'm having problems in making Code Assist working on the final 1.2 CDT
build
> under WinXP, JRE 1.4.2. It doesn't seem to find any symbol at all -
neither
> public methods inside the class, nor even the following example (taken
from
> this group):
>
> void main()
> {
> int a_variable;
> a<code assist>
> }
>
> The Search works perfectly fine.
>
> I checked logs is workspace/.metadata and see the foollowing:
> .\workspace\.metadata\.plugins\org.eclipse.cdt.core\.log
> ENTRY org.eclipse.cdt.core 4 4
Re: Can't make Code Assist working [message #83668 is a reply to message #83639] Mon, 20 October 2003 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex.agranov.audiocodes.com

Hi John,

Thank you for your kind reply.

I tried saving my example file and/or the complete project, but I still
can't manage
get anything from CodeAssist besides the templates. The log just keeps
saying:

ENTRY org.eclipse.cdt.core 4 4
Re: Can't make Code Assist working [message #83760 is a reply to message #83668] Tue, 21 October 2003 08:30 Go to previous messageGo to next message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
Alex Agranov schrieb:
> Hi John,
>
> Thank you for your kind reply.
>
> I tried saving my example file and/or the complete project, but I still
> can't manage
> get anything from CodeAssist besides the templates. The log just keeps
> saying:
>
> ENTRY org.eclipse.cdt.core 4 4 ª
Re: Can't make Code Assist working [message #83863 is a reply to message #83668] Tue, 21 October 2003 14:08 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The 1.2 code assist only looks in the current compilation unit for global
variables, global functions, classes, structs, enums, unions and #defined
macros.
It won't report local variables or members of classes. The problem is that
the code assist currently has no semantic knowledge about its current scope,
so its difficult to decide what search results are actually visible at the
cursor location.

Try this snippet instead:
class A {} aClass;
static int a_global_variable = 6;
void main()
{
a<code assist>
}

-Andrew

"Alex Agranov" <alex.agranov@audiocodes.com> wrote in message
news:bn14i8$keo$1@eclipse.org...
> Hi John,
>
> Thank you for your kind reply.
>
> I tried saving my example file and/or the complete project, but I still
> can't manage
> get anything from CodeAssist besides the templates. The log just keeps
> saying:
>
> ENTRY org.eclipse.cdt.core 4 4
Re: Can't make Code Assist working [message #83877 is a reply to message #83863] Tue, 21 October 2003 14:36 Go to previous message
Eclipse UserFriend
Originally posted by: alex.agranov.audiocodes.com

Hennig, Andrew,

Thank you very much for your help.
The Andrew's snipplet is handled perfectly fine.
I simply expected something more advanced (class methods, local vars etc,)
and therefore never tried those simple cases...

Anyway - I hope that CDT2.0 will bring some great improvements in this
field.
However for a meanwhile I'll have to stick with Visual SlickEdit (which BTW
has absolutely fabulous cross-referencing
capabilities...).

Cheers,
Alex




"Andrew Niefer" <aniefer@ca.ibm.com> wrote in message
news:bn3elm$n08$1@eclipse.org...
> The 1.2 code assist only looks in the current compilation unit for global
> variables, global functions, classes, structs, enums, unions and #defined
> macros.
> It won't report local variables or members of classes. The problem is
that
> the code assist currently has no semantic knowledge about its current
scope,
> so its difficult to decide what search results are actually visible at the
> cursor location.
>
> Try this snippet instead:
> class A {} aClass;
> static int a_global_variable = 6;
> void main()
> {
> a<code assist>
> }
>
> -Andrew
>
> "Alex Agranov" <alex.agranov@audiocodes.com> wrote in message
> news:bn14i8$keo$1@eclipse.org...
> > Hi John,
> >
> > Thank you for your kind reply.
> >
> > I tried saving my example file and/or the complete project, but I still
> > can't manage
> > get anything from CodeAssist besides the templates. The log just keeps
> > saying:
> >
> > ENTRY org.eclipse.cdt.core 4 4
Previous Topic:Clean feature
Next Topic:GDB Remote Debugging Troubles
Goto Forum:
  


Current Time: Wed Jul 17 13:30:05 GMT 2024

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

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

Back to the top