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

Bug 318890

Summary: [jsdt] javascript validator indicates errors in jquery source files
Product: [WebTools] JSDT Reporter: vlad.balan Mising name <vlad.balan>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: major    
Priority: P3 CC: thatnitind, vlad.balan
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
jquery source files in Helios
none
jquery-1.3.2.js
none
jquery-1.4.1.js
none
an example error none

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