facebook

ME2015 CI 2: Lots of errors

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #350500 Reply

    Lofi
    Participant

    I have several phonegap projects open and there are a lot of errors and now I’ve lost the oversight to distinguish between my own errors and the errors of the framework.

    Reproduction:

    * create PhoneGap Application Project “GapTest” (add all plugins)

    That alone results in these erros:

    Description    Resource    Path    Location    Type
    Syntax error on token "continue", Identifier expected    ContactsProxy.js    /GapTest/plugins/org.apache.cordova.contacts/src/firefoxos    line 401    JavaScript Problem
    Syntax error on token "default", Identifier expected    GeolocationProxy.js    /GapTest/plugins/org.apache.cordova.geolocation/src/windows8    line 62    JavaScript Problem
    Syntax error on token "default", Identifier expected    GeolocationProxy.js    /GapTest/plugins/org.apache.cordova.geolocation/src/windows8    line 140    JavaScript Problem
    Syntax error on token ",", { expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 43    JavaScript Problem
    Syntax error on token ":", throw expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 34    JavaScript Problem
    Syntax error on token "=", FunctionExpressionHeader expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 1    JavaScript Problem
    Syntax error on token "=", FunctionExpressionHeader expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 30    JavaScript Problem
    Syntax error, insert "}" to complete MethodBody    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 60    JavaScript Problem
    

    And after I hit “Build PhoneGap Application” (local build, Android) there are even more:

    Description    Resource    Path    Location    Type
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    android_sdk_version.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    appinfo.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    build.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    check_reqs.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    clean.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    device.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    emulator.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    exec.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    log.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    run.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    android_sdk_version.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    appinfo.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    build.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    check_reqs.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    clean.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    device.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    emulator.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    exec.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    log.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    run.js    /GapTest/platforms/android/cordova/lib    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    generate-docs.js    /GapTest/platforms/android/cordova/node_modules/shelljs/scripts    line 1    JavaScript Problem
    Syntax error on token "Invalid Regular Expression Options", no accurate correction available    run-tests.js    /GapTest/platforms/android/cordova/node_modules/shelljs/scripts    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    generate-docs.js    /GapTest/platforms/android/cordova/node_modules/shelljs/scripts    line 1    JavaScript Problem
    Syntax error on tokens, delete these tokens    run-tests.js    /GapTest/platforms/android/cordova/node_modules/shelljs/scripts    line 1    JavaScript Problem
    Syntax error on token "continue", Identifier expected    ContactsProxy.js    /GapTest/plugins/org.apache.cordova.contacts/src/firefoxos    line 401    JavaScript Problem
    Syntax error on token "default", Identifier expected    GeolocationProxy.js    /GapTest/plugins/org.apache.cordova.geolocation/src/windows8    line 62    JavaScript Problem
    Syntax error on token "default", Identifier expected    GeolocationProxy.js    /GapTest/plugins/org.apache.cordova.geolocation/src/windows8    line 140    JavaScript Problem
    Syntax error on token ",", { expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 43    JavaScript Problem
    Syntax error on token ":", throw expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 34    JavaScript Problem
    Syntax error on token "=", FunctionExpressionHeader expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 1    JavaScript Problem
    Syntax error on token "=", FunctionExpressionHeader expected after this token    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 30    JavaScript Problem
    Syntax error, insert "}" to complete MethodBody    NetworkProxy.js    /GapTest/plugins/org.apache.cordova.network-information/src/firefoxos    line 60    JavaScript Problem
    

    It makes development very hard when you don’t see your own errors anymore because of the many errors of others.

    Apart from the real errors (e. g. closing } missing), how do you get rid of the cordova erros which come from the “#!/usr/bin/env node” at the beginning of the js file?

    Thank you very much for the help.

    #350513 Reply

    support-swapna
    Moderator

    Lofi,

    Thank you for raising it. The dev team will get back to you.

    #350544 Reply

    support-swapna
    Moderator

    Lofi,

    The dev team has marked it as a high priority issue and the fix will be out with MyEclipse 2015 GA release.

    Till the fix is out, please exclude the JS files from validation.

    Sorry for the inconvenience caused.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: ME2015 CI 2: Lots of errors

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