- This topic has 27 replies, 10 voices, and was last updated 13 years, 8 months ago by
Glen Ihrig.
-
AuthorPosts
-
Antonio W. LagnadaMemberHi 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.
April 14, 2011 at 12:59 am #316026
support-swapnaModeratornfets,
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)
enabled jQuery javascript library through project options
Is it through project property page > MyEclipse > JavaScript > Include Path > Add JavaScript Library ?
3)
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.
April 14, 2011 at 8:28 am #316053
Antonio W. LagnadaMember>> 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
April 15, 2011 at 12:06 am #316067
support-swapnaModeratornfets,
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 :
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/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.
Attachments:
You must be logged in to view attached files.April 15, 2011 at 10:29 am #316087
Antonio W. LagnadaMemberHi 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.
April 18, 2011 at 3:17 am #316119
support-swapnaModeratornfets,
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.April 18, 2011 at 10:20 am #316134
everZMemberI 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-quotaAny other suggestions?
Thanks.April 19, 2011 at 12:40 am #316149
support-swapnaModeratoreverZ,
Can you attach your javascript file to this post ? Also send me the link of the file which you downloaded from http://jquery.com/
Here is an FAQ on how to attach it :
https://www.genuitec.com/forums/topic/troubleshooting-how-to-upload-attachments-on-forum/April 19, 2011 at 7:41 am #316165
everZMemberI downloaded jQuery @
http://code.jquery.com/jquery-1.5.2.js. Copying this link into web browser will lead you to the file directly.Thanks.
April 20, 2011 at 2:02 am #316191
support-swapnaModeratoreverZ,
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.May 8, 2011 at 3:26 pm #316647
panickertMemberAny update on this? Although not a problem technically, the whole project shows in red, kind of annoyance…
May 9, 2011 at 1:42 am #316656
support-swapnaModeratorpanickert,
I have already filed a bug for this and the dev team is looking at the issue right now.
May 12, 2011 at 2:36 pm #316773
luiz_rossParticipantI have the same problem that eveZ has
May 12, 2011 at 11:16 pm #316785
support-swapnaModeratorluiz_ross,
The dev team is working on it. Sorry for the inconvenience caused.
Do let us know if you have any other issues.June 16, 2011 at 3:08 pm #317573
hind01MemberI have the same problem as luiz_ross and everZ.
Is there an update to this issue?
-
AuthorPosts