facebook

MyEclipse 9 jQuery Support

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • #316005 Reply

    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.

    #316026 Reply

    support-swapna
    Moderator

    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)

    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.

    #316053 Reply

    >> 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

    #316067 Reply

    support-swapna
    Moderator

    nfets,

    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.
    #316087 Reply

    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.

    #316119 Reply

    support-swapna
    Moderator

    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.

    #316134 Reply

    everZ
    Member

    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.

    #316149 Reply

    support-swapna
    Moderator

    everZ,

    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/

    #316165 Reply

    everZ
    Member

    I 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.

    #316191 Reply

    support-swapna
    Moderator

    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.

    #316647 Reply

    panickert
    Member

    Any update on this? Although not a problem technically, the whole project shows in red, kind of annoyance…

    #316656 Reply

    support-swapna
    Moderator

    panickert,

    I have already filed a bug for this and the dev team is looking at the issue right now.

    #316773 Reply

    luiz_ross
    Participant

    I have the same problem that eveZ has

    #316785 Reply

    support-swapna
    Moderator

    luiz_ross,

    The dev team is working on it. Sorry for the inconvenience caused.
    Do let us know if you have any other issues.

    #317573 Reply

    hind01
    Member

    I have the same problem as luiz_ross and everZ.

    Is there an update to this issue?

Viewing 15 posts - 1 through 15 (of 28 total)
Reply To: MyEclipse 9 jQuery Support

You must be logged in to post in the forum log in