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.