Eclipse: Javascript validation disabled. but still generating errors?

前端 未结 9 748
南方客
南方客 2020-12-12 13:05

The validation in Eclipse is catching what it deems \"errors\" in the framework I\'ve been using just fine.

  • Project -> Properties -> Validation

相关标签:
9条回答
  • 2020-12-12 13:37

    If none of the above steps(unchecking,excluding etc) work....After disabling the validator...delete the js file and add it back into the Workspace.

    0 讨论(0)
  • 2020-12-12 13:39

    I tried all of the above and none worked. This worked for me after playing about with it,

    1. Right click on the little side bar that the errors appear on.
    2. Click preferences.
    3. Deselect "Report problems as you type".
    4. Click apply and OK.
    0 讨论(0)
  • 2020-12-12 13:44

    I believe this is caused by this bug in Eclipse Web Tools <3.5.2

    It also seems to only typically affect minified Javascript (it is sensitive to certain patterns in function declarations - see link)

    @Marek describes a work around to remove the errors if you are using an affected version of Eclipse Web Tools. However, a better solution might be to update to Eclipse >=4.3 and use Eclipse Web Tools >=3.5.2

    0 讨论(0)
提交回复
热议问题