Can't make Code Assist working [message #83555] |
Sun, 19 October 2003 09:12  |
Eclipse User |
|
|
|
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 #83877 is a reply to message #83863] |
Tue, 21 October 2003 10:36  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds