| Author |
Message |
|
|
Post subject: MyEclipse 9 jQuery Support
Posted: Apr 13, 2011 - 04:32 PM
|
|
Veteran Member


Joined: Sep 11, 2004
Posts: 38
|
|
Hi Guys,
I have a web project and I enabled jQuery javascript library through project options and the javascript editor still doesn't recognize jQuery() function.
Any help would be appreciated. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyEclipse 9 jQuery Support
Posted: Apr 14, 2011 - 06:59 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
nfets,
I could not replicate it at my end.
1) Can you share your build id from Help > About MyEclipse Enterprise Workbench ? Paste it here for me.
2) | Quote: |
enabled jQuery javascript library through project options
|
Is it through project property page > MyEclipse > JavaScript > Include Path > Add JavaScript Library ?
3) | Quote: |
javascript editor still doesn't recognize jQuery() function
|
When you open the js file, type jQ and invoke the content assist, do you see the proposals for jQuery ?
Let me know how it works for you. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 14, 2011 - 02:28 PM
|
|
Veteran Member


Joined: Sep 11, 2004
Posts: 38
|
|
>> s it through project property page > MyEclipse > JavaScript > Include Path > Add JavaScript Library ?
Yes.
There is no code completion and the keyword jQuery is underlined with a red indicating an unrecognized keyword or variable by the editor.
jQuery('#elemId') ;
Just FYI: This worked with MyEclipse 8.6 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 15, 2011 - 06:06 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
nfets,
| Quote: |
1) Can you share your build id from Help > About MyEclipse Enterprise Workbench ? Paste it here for me.
|
Also how did you install the ME 9.0 ? Is it through Pulse/All-In-One Installer/ Archived Update site?
2)Unfortunately, I am unable to see the issue at my end. In ME 9.0 when you type jQ and invoke content assist, It does not automatically complete the code like it did in ME 8.6, but will come up with proposals for jQuery.
Attached is the screenshot showing the same.
3) Start the IDE with -clean as arguement. Switch to a new workspace and check if you see the same issue. Here is an FAQ for clean :
http://myeclipseide.com/PNphpBB2-viewtopic-t-10280.html
4) If yes then check the .log file which is located at <workspace dir>/.metadata/.log for any errors logged. Paste them here for me. Also send me the screenshot which shows jQuery as underlined with red. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 15, 2011 - 04:29 PM
|
|
Veteran Member


Joined: Sep 11, 2004
Posts: 38
|
|
Hi There,
Thank you so much for looking into this. I ran myeclipse with a -clean option.
My js code completion now works but still got the same syntax error displaying on my js file.
But besides that, good news, I found what was causing the errors/warnings in the javascript file.
If I enable this MyEclipse feature it will generate the javascript errors. Somehow it doesn't know anything about jQuery or $.
MyEclipse / JavaScript / Validator / Errors/Warnings
Check the "Enable JavaScript semantic validation"
I'm happy for now not to worry about this. Thanks for your help again. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 18, 2011 - 09:17 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
nfets,
Thank you for posting it in detail. I will file a PR for the dev team to look into it.
Do let us know if you have any other issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 18, 2011 - 04:20 PM
|
|
Registered Member


Joined: Nov 08, 2004
Posts: 26
|
|
I have the same problem after I moved the project from MyEclipse 8.6 to 9.0 for the Javacript files, even though I did not check "Enable project specific settings" nor "Enable Javascript semantic validation". In fact, the JQeury file downloaded from http://jquery.com/ has two errors:
(function( window, undefined ) Syntax error on token "undefined", Invalid formalParameter
NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\.)+)['"]*\]/, String literal is not properly closed by a double-quota
Any other suggestions?
Thanks. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 19, 2011 - 06:40 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
|
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Validation error for MyEclipse 9 jQuery
Posted: Apr 19, 2011 - 01:41 PM
|
|
Registered Member


Joined: Nov 08, 2004
Posts: 26
|
|
|
|
|
 |
|
|
Post subject: RE: Validation error for MyEclipse 9 jQuery
Posted: Apr 20, 2011 - 08:02 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
everZ,
I could replicate the issue at my end. I will file a PR for a dev team to look into it.
Sorry for the inconvenience caused. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Validation error for MyEclipse 9 jQuery
Posted: May 08, 2011 - 09:26 PM
|
|
Registered Member


Joined: May 03, 2006
Posts: 27
|
|
Any update on this? Although not a problem technically, the whole project shows in red, kind of annoyance... |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Validation error for MyEclipse 9 jQuery
Posted: May 09, 2011 - 07:42 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
panickert,
I have already filed a bug for this and the dev team is looking at the issue right now. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 12, 2011 - 08:36 PM
|
|
Registered Member


Joined: Jun 26, 2004
Posts: 6
|
|
I have the same problem that eveZ has |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 13, 2011 - 05:16 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
luiz_ross,
The dev team is working on it. Sorry for the inconvenience caused.
Do let us know if you have any other issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 16, 2011 - 09:08 PM
|
|
Joined: Jun 16, 2011
Posts: 1
|
|
I have the same problem as luiz_ross and everZ.
Is there an update to this issue? |
|
|
| |
|
|
|
 |
|
|