Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Create a foo.groovy (script not class)
Type the following:
Object o = new Object()
o.<ctrl space>
The following stack will occur due to an off by 1 issue. This occurs in both DGMContentAssistProcessor and TypedContentAssistProcessor.
Thread [main] (Suspended (exception IndexOutOfBoundsException))
DocumentReverseCharSequence.<init>(IDocument, int, int) line: 43
DocumentReverseCharSequence.subSequence(int, int) line: 64
Matcher.getSubSequence(int, int) line: 1138
Matcher.group(int) line: 466
DGMContentAssistProcessor.computeCompletionProposals(ITextViewer, int) line: 31 ContentAssistProcessorSet.computeCompletionProposals(ITextViewer, int) line: 63 GroovyContentAssistant(ContentAssistant).computeCompletionProposals(ITextViewer, int) line: 1759
CompletionProposalPopup.computeProposals(int) line: 478 CompletionProposalPopup.access$16(CompletionProposalPopup, int) line: 475
CompletionProposalPopup$2.run() line: 410
BusyIndicator.showWhile(Display, Runnable) line: 67
CompletionProposalPopup.showProposals(boolean) line: 404
GroovyContentAssistant(ContentAssistant).showPossibleCompletions() line: 1588
GroovySourceViewer(SourceViewer).doOperation(int) line: 773
ContentAssistAction$1.run() line: 82
BusyIndicator.showWhile(Display, Runnable) line: 67
ContentAssistAction.run() line: 80
ContentAssistAction(Action).runWithEvent(Event) line: 498
I also see this (missing jar dependency?) when trying code completion:
!ENTRY org.eclipse.ui 4 0 2007-11-12 13:34:50.203
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: org/jdom/Document
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
at org.codehaus.groovy.eclipse.core.types.impl.ClassLoaderMemberLookup.collectAllMethods(ClassLoaderMemberLookup.java:91)
at org.codehaus.groovy.eclipse.core.types.impl.ClassLoaderMemberLookup.collectAllMethods(ClassLoaderMemberLookup.java:67)
at org.codehaus.groovy.eclipse.core.types.AbstractMemberLookup.collectAllProperties(AbstractMemberLookup.java:194)
at org.codehaus.groovy.eclipse.core.types.AbstractMemberLookup.lookupProperties(AbstractMemberLookup.java:39)
at org.codehaus.groovy.eclipse.core.types.impl.CompositeLookup.lookupProperties(CompositeLookup.java:54)
at org.codehaus.groovy.eclipse.codeassist.completion.CodeCompletionProcessor.createCompletionProposals(CodeCompletionProcessor.java:193)
at org.codehaus.groovy.eclipse.codeassist.completion.CodeCompletionProcessor.computeCompletionProposals(CodeCompletionProcessor.java:155)
at org.codehaus.groovy.eclipse.editor.contentAssist.ContentAssistProcessorSet.computeCompletionProposals(ContentAssistProcessorSet.java:63)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1759)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:478)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:475)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:410)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:404)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(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.java: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(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:821)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:879)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:568)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.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:2264)
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:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)