eclipse中引入yui报错,关闭validation后不起作用,网上找到这篇文章
Question:
The validation in Eclipse is catching what it deems "errors" in the framework I've been using just fine.
-
Project -> Properties -> Validation -> "Suspend all validators"
doesn't work. -
Project -> Properties -> Javascript -> Validation -> Errors/Warnings -> [Unchecked] "Enable Javascript semantic validation"
doesn't work either. -
Enabling the above-mentioned checkbox and setting all validation issues to "Ignore" doesn't work either.
Each time one of these settings changes, it does a build and immediately all the "errors" are found and subsequently prevent an otherwise known-good build.
Answer:
- Right click your project
- Select Properties -> JavaScript -> Include
- Select Source tab (It looks similar to the Java Build Path Source tab)
- Expand source folder
- Highlight Excluded pattern
- Click Edit button
- Click Add button next to Exclusion patterns box.
- Click Browse button and select the JavaScript source by name.