Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345630

Summary: [translation] Exception when doing content assist in html page
Product: [WebTools] JSDT Reporter: Chris Jaun <cmjaun>
Component: WebAssignee: Project Inbox <jsdt.web-inbox>
Status: RESOLVED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Chris Jaun CLA 2011-05-12 13:31:56 EDT
Saw this exception in the log after attempting content assist in an HTML page...

Not sure exactly where it happened, but somewhere when typing this:

<script type="text/javascript">
var d = new Date();
d.getDate();

function abc() {
	
}

abc();
</script>


JavaScript Model Exception: JavaScript Model Status [__2F_hi_2F_WebContent_2F_hFile_2E_html.js [in <default> [in WebContent [in hi]]] does not exist]
	at org.eclipse.wst.jsdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:525)
	at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:127)
	at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
	at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
	at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:282)
	at org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(JavaElement.java:268)
	at org.eclipse.wst.jsdt.internal.core.Openable.getBuffer(Openable.java:267)
	at org.eclipse.wst.jsdt.ui.JSdocContentAccess.getContentReader(JSdocContentAccess.java:95)
	at org.eclipse.wst.jsdt.ui.JSdocContentAccess.getHTMLContentReader(JSdocContentAccess.java:168)
	at org.eclipse.wst.jsdt.internal.ui.text.java.ProposalInfo.getHTMLContentReader(ProposalInfo.java:104)
	at org.eclipse.wst.jsdt.internal.ui.text.java.ProposalInfo.extractJavadoc(ProposalInfo.java:96)
	at org.eclipse.wst.jsdt.internal.ui.text.java.ProposalInfo.computeInfo(ProposalInfo.java:73)
	at org.eclipse.wst.jsdt.internal.ui.text.java.ProposalInfo.getInfo(ProposalInfo.java:56)
	at org.eclipse.wst.jsdt.internal.ui.text.java.AbstractJavaCompletionProposal.getAdditionalProposalInfo(AbstractJavaCompletionProposal.java:492)
	at org.eclipse.wst.jsdt.web.ui.internal.contentassist.JSDTCompletionProposal.getAdditionalProposalInfo(JSDTCompletionProposal.java:88)
	at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


This does not appear to cause any serious side effects.
Comment 1 Chris Jaun CLA 2013-10-23 17:40:59 EDT
Can't reproduce.