0

I have a project that uses jquery. However, Eclipse thinks that there are errors in the completely unmodified file that I downloaded straight from the jquery website. Along with simply re-downloading a new jquery js file, I've tried everything in the below thread.

Change Eclipse settings to ignore errors on a specific file

Any other suggestions?

Community
  • 1
  • 1

3 Answers3

0

I use Aptana (built on Elipse) for this because it has code hinting for jQuery.

Michael Kaufman
  • 683
  • 1
  • 9
  • 19
  • The problem isn't my code, the problem is that Eclipse thinks that there are javaScript errors in the actual jquery.js file itself. – user1424324 Feb 19 '13 at 17:52
0

jQuery often leaves terminal ; off lines since they can be optional. Eclipse doesn't consider them optional and will always report them. It's annoying, but unless you're getting "red" errors from Eclipse, I wouldn't worry about it.

dnagirl
  • 20,196
  • 13
  • 80
  • 123
0

The JavaScript Validator only reports problems for .js files in Source folders, as mentioned in the linked question. You can have it ignore jQuery as source that way. If you do still want it to process jQuery, put it in a folder specified on the Libraries tab of the JavaScript Include Path property page. Content Assist will then make of it what it can without the JavaScript Validator builder recording problems for the file.

nitind
  • 19,089
  • 4
  • 34
  • 43