facebook

[MyEclipse 2016 Stable 1.0]where is the javascript missing semicolon warning?

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #500836 Reply

    g_man1990
    Participant

    config
    MyEclipse → JavaScript → Validator → Errors/Warnings
    is gone?

    #500895 Reply

    support-swapna
    Moderator

    g_man1990,

    MyEclipse 2016 introduces JSjet which brings modern JavaScript to Eclipse, including support for ES6.
    JSjet also includes a faster and more accurate validator. With JSjet ,the semicolon at the end of the statement is not mandatory if the end of the statement is followed by a line break.

    The MyEclipse > JavaScript > Validator > Errors/Warnings preferences page is related to the outdated JSDT inference engine and is no longer available.

    Now that MyEclipse supports JSjet, the JavaScript files are opened by default with the JSjet JavaScript editor which provides instant validation and immediately alerts you when there is a problem with your code. Validation is both at the in-editor level as well as across your project.

    A JavaScript linter will help you catch errors that would only occur at runtime, or in very specific circumstances, without you having to actually run your code. JSjet support several different JavaScript linters like ESLint, JSHint and JSCS, and you can configure them according to your specific needs or preferences.

    Right click on the project > Properties > MyEclipse > JavaScript > Validation and configure the linters accordingly.

    For more information about Validation and Linting, please refer to this tutorial :

    Boost Eclipse Neon JavaScript Development with JSjet

    Please also refer to these tutorials for detailed information about JSjet support in Eclipse/MyEclipse :
    https://dzone.com/articles/jsjet-for-modern-javascript-in-eclipse

    JSjet for Modern JavaScript in Eclipse

    Hope this helps. Let us know if you have any questions.

    –Swapna
    MyEclipse Support

    #501445 Reply

    g_man1990
    Participant

    so, how to show the “missing semicolon” warning?
    you can copy under code to http://jshint.com/, the web will show one warning about “missing semicolon” because at the code end the “;” is missing

    jQuery(function($){
    })
    #501446 Reply

    support-swapna
    Moderator

    g_man1990,

    You can enable JSHint for the project to show the warning on missing semicolon.
    Right click on the project > Properties > MyEclipse > JavaScript > Validation > JSHint and check ‘Enable’. Apply the changes and validate the project when it prompts to. You should now see a warning for the missing semicolon in the js file.

    Please find the attached screenshot for your reference.

    Hope this helps.Let us know how it works for you.

    –Swapna
    MyEclipse Support

    Attachments:
    You must be logged in to view attached files.
    #501466 Reply

    g_man1990
    Participant

    MyEclipse Enterprise Workbench
    Version: 2016 Stable 1.0
    Build id: 14.0.0-20160624
    the spring license

    can you zip your TestJS project and upload and show your myeclipse version?

    • This reply was modified 8 years, 1 month ago by g_man1990.
    #501730 Reply

    support-swapna
    Moderator

    g_man1990,

    Please find the zipped project attached. You can import it using the Import > General > Existing Projects into Workspace > Select archive file and select the zip file to import the project to your workspace.

    Hope this helps. Let us know if you see any issues.

    –Swapna
    MyEclipse Support

    Attachments:
    You must be logged in to view attached files.
    #501738 Reply

    g_man1990
    Participant

    hahahaha…..it’s work today, but i change nothing..
    by the way, how to setting for all javascript facet project?

    #501851 Reply

    support-swapna
    Moderator

    g_man1990,

    Glad that it works. The JavaScript linters preferences are available only at project level. Workspace level preferences are currently not available.

    Sorry for inconvenience caused. Let us know if you have any questions.

    –Swapna
    MyEclipse Support

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [MyEclipse 2016 Stable 1.0]where is the javascript missing semicolon warning?

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