admin管理员组文章数量:1396837
I have a web project that uses a number of 3rd party js libraries. Since they are optimized Eclipse shows that there are errors in these files. I'd like to configure eclipse to ignore certain js directories for error processing and validation.
I think I now have it configured to ignore validation via the validation settings under Project > Properties > Validation > Client Side JavaScript > Settings. I've added an exclude rule for my 3rd party lib directory. My issue is that it still shows errors under Markers > Javascript Problems.
Any help would be appreciated, thank you!
I have a web project that uses a number of 3rd party js libraries. Since they are optimized Eclipse shows that there are errors in these files. I'd like to configure eclipse to ignore certain js directories for error processing and validation.
I think I now have it configured to ignore validation via the validation settings under Project > Properties > Validation > Client Side JavaScript > Settings. I've added an exclude rule for my 3rd party lib directory. My issue is that it still shows errors under Markers > Javascript Problems.
Any help would be appreciated, thank you!
Share Improve this question asked Feb 16, 2012 at 14:29 codeflayercodeflayer 2331 gold badge5 silver badges14 bronze badges 4- 1 Did you try Project -> Clean...? – Alexander Pavlov Commented Feb 16, 2012 at 14:37
- I've tried that and it works temporarily. Then when I edit any js files in the project the errors return. – codeflayer Commented Feb 16, 2012 at 15:52
- 1 That means your exclusion rule takes no effect on the builder :( – Alexander Pavlov Commented Feb 16, 2012 at 16:01
- Right, I've tried messing with the validation settings under Properties > Validation. I've checked and unchecked the "manual" and "build" checkboxes but it doesn't have any effect. – codeflayer Commented Feb 16, 2012 at 16:11
1 Answer
Reset to default 9The Client-Side JavaScript validator only validates client-side JavaScript--JavaScript in web pages. You've only instructed it to ignore Javascript in web pages in those folders. What you want can be done by changing those folders from Source folders to Library folders in the JavaScript Include Path. Project > Properties > JavaScript > Include Path. Either remove them, or set an exclusion on the Source folder so that it's legal to put a Library folder under it.
本文标签: javascriptEclipse force project not to show errors for a js directoryStack Overflow
版权声明:本文标题:javascript - Eclipse: force project not to show errors for a js directory - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744145322a2592808.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论