[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: javascript dependency

Matthew,

I turned off JavaScript Syntax Validation in Window/Preferences/Validation. This does not really fix the issue, but at least if you have a real error it would not be mixed in with hundreds of erroneous errors on the Problems View.

I am trying to set up a Drupal development environment using PDT. I am hoping that there is some way to configure the drupal.js and jquery.js libraries on the one of the Eclipse paths - I have tried but nothing seems to work.

Do you know of any solutions for this issue?

Thanks,



Dave

Matthew Young wrote:
Ok, you know exactly what I'm talking about.  So I you even find the
solution, please let me know.

At the meantime, does anyone else know what to do about this?


Unfortunately this isn't a problem with PDT per say. It is a problem with the way the project is setup in Eclipse and there is additional steps needed to make sure the Javascript interpreter knows that you are using jQuery. I am currently in the same process of getting Drupal projects JS files working with Eclipse. If you do a web search for "eclipse jquery" you will see some documentation on the topic. I haven't found a great step-by-step guide to do this setup yet. In the general sense you have to include the the javascript files within the misc directory as an included files to the project even if you aren't interacting with it directly. So jquery.js and drupal.js would be two files as included scripts available to the other javascript files.

If / when I find a good guide to getting jQuery working in Eclipse I will post it here.