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

Bug 344397

Summary: [validation] Many errors, apparently spurious, from jquery 1.5.2
Product: [WebTools] JSDT Reporter: benson margulies <bimargulies>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: NEW --- QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3 CC: linzuxiong1988
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description benson margulies CLA 2011-05-01 08:39:47 EDT
Build Identifier:  I20110310-1119

  JavaScript Development Tools	1.3.0.v201103031824-7F78FVqFBBoPbVSCXSXuk6	

I have the 'min' version of jquery 1.5.2 in my web project, and I have lots of red exes. I can't prove that all of them are invalid, but here's an example:

 "Description	Resource	Path	Location	Type
 cannot be resolved to a type	jquery-1.5.2.min.js	/lsh-service/src/main/webapp/js	line 1	JavaScript Problem"

Note that there is a word missing from the beginning of the error. The highlighted code is "new d.fn.init(a,b,g)".



Reproducible: Always

Steps to Reproduce:
1. Make a webapp project
2. Add jquery-1.5.2.min.js to it
3. watch for 682 errors.
Comment 1 benson margulies CLA 2011-05-01 08:40:57 EDT
Here's another interesting sample:

function($){function Busy(a){this.options=$.extend({},Busy.defaults,a)}

gets Description	Resource	Path	Location	Type
$ cannot be resolved	jquery.busy.min.js	/lsh-service/src/main/webapp/js	line 1	JavaScript Problem
.
Comment 2 Lin ZuXiong CLA 2012-02-05 21:34:12 EST
JSDT reportes many errors about jquery.x.js  and jquery.x.min.js.