Bug 440550 - Content Assist Error API Tools Javadoc Proposals
Summary: Content Assist Error API Tools Javadoc Proposals
Status: VERIFIED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 4.3.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.5 M1   Edit
Assignee: PDE API Tools Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 440429 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-28 09:29 EDT by Kelly Powers CLA
Modified: 2021-01-28 12:10 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelly Powers CLA 2014-07-28 09:29:39 EDT
I can not stop the the following content assist errors when pressing "." in the Java editor despite the suggestions on what to do in the alert: The 'API Tools Javadoc Proposals' proposal computer from the 'org.eclipse.pde.api.tools.ui' plug-in did not complete normally. The extension has thrown a runtime exception.

To avoid this message, disable the 'org.eclipse.pde.api.tools.ui' plug-in or disable the 'API Tools Proposals' category on the content assist preference page.

I've followed the instruction listed in the error, however the problem still exists.  

Here is the stack trace:  
java.lang.IllegalArgumentException
	at org.eclipse.jdt.core.dom.ASTParser.<init>(ASTParser.java:226)
	at org.eclipse.jdt.core.dom.ASTParser.newParser(ASTParser.java:125)
	at org.eclipse.pde.api.tools.ui.internal.completion.APIToolsJavadocCompletionProposalComputer.sessionStarted(APIToolsJavadocCompletionProposalComputer.java:415)
	at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.sessionStarted(CompletionProposalComputerDescriptor.java:423)
	at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.sessionStarted(CompletionProposalCategory.java:384)
	at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor$CompletionListener.assistSessionStarted(ContentAssistProcessor.java:119)
	at org.eclipse.jface.text.contentassist.ContentAssistant.fireSessionBeginEvent(ContentAssistant.java:2221)
	at org.eclipse.jface.text.contentassist.ContentAssistant.prepareToShowCompletions(ContentAssistant.java:1696)
	at org.eclipse.jface.text.contentassist.ContentAssistant.access$6(ContentAssistant.java:1687)
	at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:376)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Comment 1 Michael Rennie CLA 2014-07-28 10:00:30 EDT
*** Bug 440429 has been marked as a duplicate of this bug. ***
Comment 2 Vikas Chandra CLA 2014-07-31 07:01:23 EDT
APIToolsJavadocCompletionProposalComputer has
	
public void sessionStarted() {
		fParser = ASTParser.newParser(AST.JLS8);
		fErrorMessage = null;


& ASTParser has

	ASTParser(int level) {
		switch(level) {
			case AST.JLS2_INTERNAL:
			case AST.JLS3_INTERNAL:
			case AST.JLS4_INTERNAL:
			case AST.JLS8:
				break;
			default:
				throw new IllegalArgumentException();

based on this default code will not be executed. This is fixed in 4.5
Comment 3 Vikas Chandra CLA 2014-07-31 07:01:41 EDT
Also I was unable to recreate on 4.5
Comment 4 Vikas Chandra CLA 2014-08-13 06:06:27 EDT
Works for me with  4.5 M1 eclipse-SDK-I20140806-2000-win32