- This topic has 27 replies, 10 voices, and was last updated 13 years, 2 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.
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.
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
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.
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.
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.
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.
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/
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.
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.
panickertMemberAny update on this? Although not a problem technically, the whole project shows in red, kind of annoyance…
support-swapnaModeratorpanickert,
I have already filed a bug for this and the dev team is looking at the issue right now.
luiz_rossParticipantI have the same problem that eveZ has
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.
hind01MemberI have the same problem as luiz_ross and everZ.
Is there an update to this issue?
-
AuthorPosts