This topic contains 2 replies, has 0 voices, and was last updated by elie 7 years, 6 months ago.

  • Author
    Posts
  • #4521

    elie

    In the editor in Eclipse, I can’t seem to shake the following error:

    Syntax error on token “catch”, Identifier expected

    I have a promise post call chained with .then (no error) and .catch (error). The IDE is complaining, and as such I miss out on other functions of the IDE such as code completion.

    Any thoughts? The code seems valid and does run in the browser correctly, I believe.
    This is a cached copy. Click here to see the original post.

  • #4522

    michoel

    Seems related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=494825

    Depending on your version of Eclipse, you might be able to follow the the solution here

    http://stackoverflow.com/questions/2…ror-in-eclipse

  • #4523

    elie

    Thanks, Michoel!

    I was able to clear it, but I’m still not getting code completion on the script…

You must be logged in to reply to this topic.