|
Re: How to work with javascript? [message #91750 is a reply to message #91703] |
Sat, 24 January 2009 01:35   |
Eclipse User |
|
|
|
Originally posted by: nickboldt.gmail.com
Does your project have both PDT and Javascript natures/builders? How did
you create/import the project? What's in the .project file?
Matthew Young wrote:
> Hi, I am using PDT for Drupal development. I can edit, debug.
> However, I have two problems:
>
> 1. Javascript show a lot of warnings and errors. For example,
> "function $ is undefined". "$" from jQuery and the jQuery library is
> inside the project. How can I make PDT understand javascript?
>
> 2. In debugging, very consistently after the first two times going
> through the debugger, subsequenctly I always get
>
> "Error: A Runtime Error has occured. Do you want to debug? Line: 1
> Error: Syntax error"
>
> or
>
> "Error: A Runtime Error has occured. Do you want to debug? Line: 132
> Error: 'jQuery' is undefined"
>
> Pressing "No" would get rid of these error dialogs and allow me to
> continue to debug. However, everytime I hit another breakpoint, I
> would get these errors again.
--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
|
|
|
Re: How to work with javascript? [message #91808 is a reply to message #91750] |
Sat, 24 January 2009 05:47   |
Eclipse User |
|
|
|
Originally posted by: catchmeow.hotmail.com
>Does your project have both PDT and Javascript natures/builders?
My Eclipse install is the All-in-one PDT download from
www.eclipse.org/pdt version 2.0.0. I don't know about Javascript
natures/builders. Is this something I need to install? I installed
the JSEclipse plugin from Adobe.
>How did
>you create/import the project? What's in the .project file?
I did a New PHP Project and point the project directory to the Drupal
install directory. I've try both enable/disable Javascript support.
In both case, debug give me this "Runtime Error...Syntax Error"
problem with javascript.
PDT is working for the most part for me. There is even a litle bit of
code completion: just a list of variables in the context. No
properties/methods like Java though. Can PDT do more fancy code
completion?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01692 seconds