Code completion works for me. Can you offer a simple snippet/example
to reproduce?
On Jan 15, 2008 10:39 AM, Adrian Sampaleanu
<adrian.sampaleanu@(protected):
> Hi,
>
> With the latest plugin (built from HEAD), I get the following exception
> when trying to invoke auto-complete in a Groovy source file in a
> project. Can anyone offer any clue. I'm pretty sure that auto complete
> was working in a prior version of the plugin I had built.
>
> Thanks
>
>
java.lang.ClassCastException:
org.codehaus.groovy.ast.MethodNode cannot
> be cast to
org.codehaus.groovy.ast.FieldNode> at
org.codehaus.groovy.ast.ClassNode.visitContents (
ClassNode.java:858)
> at
>
org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisi
> torSupport.java:48)
> at
> org.codehaus.groovy.eclipse.core.context.impl.SourceCodeContextFactory$C
> lassVisitor.visitClass(SourceCodeContextFactory.java:119)
> at
> org.codehaus.groovy.eclipse.core.context.impl.SourceCodeContextFactory.f
> indContextsForGroovyClass(SourceCodeContextFactory.java:307)
> at
> org.codehaus.groovy.eclipse.core.context.impl.SourceCodeContextFactory.c
> reateContexts(SourceCodeContextFactory.java:254)
> at
> org.codehaus.groovy.eclipse.codeassist.completion.GroovyCompletionProces
> sor.createContexts(GroovyCompletionProcessor.java:231)
> at
> org.codehaus.groovy.eclipse.codeassist.completion.CodeCompletionProcesso
> r.computeCompletionProposals(CodeCompletionProcessor.java:86)
> at
> org.codehaus.groovy.eclipse.editor.contentAssist.ContentAssistProcessorS
> et.computeCompletionProposals(ContentAssistProcessorSet.java:63)
> at
>
org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionP> roposals(ContentAssistant.java:1759)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProp> osals(CompletionProposalPopup.java:478)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(C
> ompletionProposalPopup.java:475)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(Compl
> etionProposalPopup.java:410)
> at
org.eclipse.swt.custom.BusyIndicator.showWhile (
BusyIndicator.java:67)
> at
>
org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposa> ls(CompletionProposalPopup.java:404)
> at
>
org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleComple> tions(ContentAssistant.java:1588)
> at
>
org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java
> :773)
> at
>
org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.
> java:82)
> at
org.eclipse.swt.custom.BusyIndicator.showWhile (
BusyIndicator.java:67)
> at
>
org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.ja
> va:80)
> at
org.eclipse.jface.action.Action.runWithEvent (
Action.java:498)
> at
org.eclipse.ui.commands.ActionHandler.execute (
ActionHandler.java:185)
> at
> org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHand
> lerWrapper.java:109)
> at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(Paramet
> erizedCommand.java:429)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerSe
> rvice.java:165)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchK
> eyboard.java:470)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.j
> ava:821)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(Workbench
> Keyboard.java:879)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings> (WorkbenchKeyboard.java:568)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboar
> d.java:510)
> at
>
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent
> (WorkbenchKeyboard.java:126)
> at
org.eclipse.swt.widgets.EventTable.sendEvent (
EventTable.java:66)
> at
org.eclipse.swt.widgets.Display.filterEvent (
Display.java:1141)
> at
org.eclipse.swt.widgets.Widget.sendEvent (
Widget.java:937)
> at
org.eclipse.swt.widgets.Widget.sendEvent (
Widget.java:962)
> at
org.eclipse.swt.widgets.Widget.sendEvent (
Widget.java:947)
> at
org.eclipse.swt.widgets.Widget.sendKeyEvent (
Widget.java:975)
> at
org.eclipse.swt.widgets.Widget.sendKeyEvent (
Widget.java:971)
> at
org.eclipse.swt.widgets.Widget.wmChar (
Widget.java:1285)
> at
org.eclipse.swt.widgets.Control.WM_CHAR (
Control.java:3772)
> at
org.eclipse.swt.widgets.Control.windowProc (
Control.java:3672)
> at
org.eclipse.swt.widgets.Canvas.windowProc (
Canvas.java:291)
> at
org.eclipse.swt.widgets.Display.windowProc (
Display.java:4351)
> at
org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at
org.eclipse.swt.internal.win32.OS.DispatchMessage (
OS.java:2265)
> at
org.eclipse.swt.widgets.Display.readAndDispatch (
Display.java:3291)
> at
org.eclipse.ui.internal.Workbench.runEventLoop (
Workbench.java:2389)
> at
org.eclipse.ui.internal.Workbench.runUI (
Workbench.java:2353)
> at
org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
> at
org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
> 289)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench (
Workbench.java:4
> 61)
> at
org.eclipse.ui.PlatformUI.createAndRunWorkbench (
PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplicat
> ion.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.j
> ava:169)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
> ion(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclip
> seAppLauncher.java:76)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run (
EclipseStarter.java:
> 363)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run (
EclipseStarter.java:
> 176)
> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at
java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>
> IMPORTANT NOTICE:
>
> If you have received this message in error, please notify the sender immediately and erase the original from your email system. This message is intended only for the use of the individual(s) or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If this message has been received in error, please contact the sender and delete all copies. Like other forms of communication, e-mail communications may be vulnerable to interception by unauthorized parties. If you do not wish us to communicate with you by e-mail, please notify us at your earliest convenience. In the absence of such notification, your consent is assumed. Should you choose to allow us to communicate by e-mail, we will not take any additional security measures (such as encryption) unless specifically requested.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
Regards,
Aaron J Tarter
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email