Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318890 - [jsdt] javascript validator indicates errors in jquery source files
Summary: [jsdt] javascript validator indicates errors in jquery source files
Status: CLOSED DUPLICATE of bug 298577
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 09:25 EDT by vlad.balan Mising name CLA
Modified: 2010-07-08 04:15 EDT (History)
2 users (show)

See Also:


Attachments
jquery source files in Helios (204.30 KB, image/jpg)
2010-07-05 09:27 EDT, vlad.balan Mising name CLA
no flags Details
jquery-1.3.2.js (117.93 KB, application/octet-stream)
2010-07-05 09:27 EDT, vlad.balan Mising name CLA
no flags Details
jquery-1.4.1.js (156.95 KB, application/octet-stream)
2010-07-05 09:27 EDT, vlad.balan Mising name CLA
no flags Details
an example error (238.93 KB, image/jpg)
2010-07-08 04:15 EDT, vlad.balan Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description vlad.balan Mising name CLA 2010-07-05 09:25:10 EDT
Build Identifier: helios for java ee

Out of curiosity of how Helios Javascript validator parses, I have open different versions (1.3.2 and 1.4.1) of jquery source code files in Helios.
The javascript validator shows errors in the js editor error ruler (on the right side). Nothing is indicated in the Problems view though.

This is not about jquery content assist; i'd just like, if possible, to not see errors in these files. Maybe they are not indeed correct? (not respecting the JS grammar).

Thank you very much.

Reproducible: Always

Steps to Reproduce:
1. just paste jquery-1.3.2.js and jquery-1.4.1.js javascript source code files in the web content of a static web project
2. errors are indicated for this source code.
3.
Comment 1 vlad.balan Mising name CLA 2010-07-05 09:27:03 EDT
Created attachment 173425 [details]
jquery source files in Helios
Comment 2 vlad.balan Mising name CLA 2010-07-05 09:27:34 EDT
Created attachment 173426 [details]
jquery-1.3.2.js
Comment 3 vlad.balan Mising name CLA 2010-07-05 09:27:49 EDT
Created attachment 173427 [details]
jquery-1.4.1.js
Comment 4 Nitin Dahyabhai CLA 2010-07-08 01:02:04 EDT

*** This bug has been marked as a duplicate of bug 298577 ***
Comment 5 vlad.balan Mising name CLA 2010-07-08 04:14:56 EDT
(In reply to comment #4)
> *** This bug has been marked as a duplicate of bug 298577 ***

It's not just the use of "undefined" as a variable name.

There are other errors that JSDT marks for jquery-1.3.2.js and jquery-1.4.1.js.

For example, for 1.4.1, on these lines:

*********************************************************
while ( (chunker.exec(""), m = chunker.exec(soFar)) !== null ) {
...
}
*********************************************************

it says "Synthaw error on token ',', . expected"

Pls open jquery-1.4.1.js and take a look.


For example, for 1.3.2, on these lines:
*********************************************************
window = this,
*********************************************************

it says "Synthaw error on token ',', ; expected"

Pls open jquery-1.3.2.js and take a look.



I attached another example of error.
Comment 6 vlad.balan Mising name CLA 2010-07-08 04:15:28 EDT
Created attachment 173744 [details]
an example error