Bug 344397 - [validation] Many errors, apparently spurious, from jquery 1.5.2
Summary: [validation] Many errors, apparently spurious, from jquery 1.5.2
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 08:39 EDT by benson margulies CLA
Modified: 2013-06-19 11:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.