Bug 301044 - [JSDT][Content Assistant] Exception Thrown While Using Content Assistant
Summary: [JSDT][Content Assistant] Exception Thrown While Using Content Assistant
Status: CLOSED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows Server 2003
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: wst.javascript CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-01-27 14:09 EST by Xiang CLA
Modified: 2010-03-04 11:40 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiang CLA 2010-01-27 14:09:41 EST
Build Identifier: 20090920-1017

For some classes that contains less than 10 fields, the Content Assistant works pretty fine. For a large class that contains many fields, it throws an exception without further detailed message:

'org.eclipse.jdt.ui.JavaNoTypeCompletionProposalComputer' proposal computer
from the 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension has thrown a runtime exception.


Reproducible: Always

Steps to Reproduce:
1.Creat a JavaScript Class that contains 20+ fields
2.In another Class, create a reference to the previous class, and type "." to trigger Context-Assistant
3.The error message box pops up.
Comment 1 Nitin Dahyabhai CLA 2010-01-27 19:57:20 EST
Can you append the actual runtime exception from your log?
Comment 2 Dani Megert CLA 2010-01-28 02:28:57 EST
Where do you invoke content assist: in a JavaScript or in a Java file/editor?
Comment 3 Xiang CLA 2010-01-28 12:50:29 EST
(In reply to comment #2)
> Where do you invoke content assist: in a JavaScript or in a Java file/editor?

It's in a JavaScript editor
Comment 4 Nitin Dahyabhai CLA 2010-01-31 19:40:40 EST
Perhaps you can attach the file you were editing when this occurred?
Comment 5 Chris Jaun CLA 2010-03-03 17:21:15 EST
I attempted to reproduce following your steps, but have been unsuccessful. 

Xiang, can you attach some sample code where this occurs?

My example:

function Big() {
	this.a1 = 1;
	this.a2 = 1;
	this.a3 = 1;
	this.a4 = 1;
	this.a5 = 1;
	this.a6 = 1;
	this.a7 = 1;
	this.a8 = 1;
	this.a9 = 1;
	this.a10 = 1;
	this.a11 = 1;
	this.a12 = 1;
	this.a13 = 1;
	this.a14 = 1;
	this.a15 = 1;
	this.a16 = 1;
	this.a17 = 1;
	this.a18 = 1;
	this.a19 = 1;
	this.a20 = 1;
	this.a21 = 1;
}

function Class2() {
var b = new Big();
b.* <- attempt content assist
}
Comment 6 Xiang CLA 2010-03-04 11:40:34 EST
Thanks for your reply and attention. 

During the last week, I have updated the eclipse and have removed extra plug-ins that may potentially interfere with the content-assistent. After that I found the issue is not reproducible. I think this issue might be fixed or specific to certain settings.

Again, thanks a lot for investigating this bug.