Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSDT won't fully recognize referenced library
JSDT won't fully recognize referenced library [message #217207] Wed, 09 July 2008 14:30 Go to next message
Peter Darrow is currently offline Peter DarrowFriend
Messages: 4
Registered: July 2009
Junior Member
I'm having trouble getting JSDT to fully recognize the YUI Javascript
library. When I create a project and add YUI as a library reference, only
certain components are recognized by the interpreter. Please see
screenshot here: http://i33.tinypic.com/2hf278m.png

As you can see, on the left there are some classes that are recognized
from the YUI library (and in the editor: line 18, YAHOO.widget.DataTable),
but many are not (hence all of the warnings.) Is there something
fundamental that I'm missing, or are large Javascript libraries not
supported?

Peter
Re: JSDT won't fully recognize referenced library [message #217328 is a reply to message #217207] Thu, 10 July 2008 18:59 Go to previous messageGo to next message
Bradley Childs is currently offline Bradley ChildsFriend
Messages: 14
Registered: July 2009
Junior Member
There is no javascript debugging support. Check out the ATF project for
javascript firefox debugging....



-brad
"Peter D" <peter@jasco.com> wrote in message
news:4c303dae133ace0a8f812572a29ff2ac$1@www.eclipse.org...
> I'm having trouble getting JSDT to fully recognize the YUI Javascript
> library. When I create a project and add YUI as a library reference, only
> certain components are recognized by the interpreter. Please see
> screenshot here: http://i33.tinypic.com/2hf278m.png
> As you can see, on the left there are some classes that are recognized
> from the YUI library (and in the editor: line 18, YAHOO.widget.DataTable),
> but many are not (hence all of the warnings.) Is there something
> fundamental that I'm missing, or are large Javascript libraries not
> supported?
>
> Peter
>
Re: JSDT won't fully recognize referenced library [message #217439 is a reply to message #217328] Fri, 11 July 2008 17:20 Go to previous messageGo to next message
Peter Darrow is currently offline Peter DarrowFriend
Messages: 4
Registered: July 2009
Junior Member
I don't think my original post said anything about debugging. I'm talking
strictly about code completion and real-time syntax error checking.

Peter
Re: JSDT won't fully recognize referenced library [message #217543 is a reply to message #217439] Fri, 11 July 2008 17:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hyysguyang.gmail.com

Peter D 写道:
> I don't think my original post said anything about debugging. I'm
> talking strictly about code completion and real-time syntax error checking.
>
> Peter
>

Yes ,I got the same error when use the jQuery,In fact can't code
completion and tell me the $ is undefined.
Re: JSDT won't fully recognize referenced library [message #217603 is a reply to message #217439] Mon, 14 July 2008 20:48 Go to previous message
Bradley Childs is currently offline Bradley ChildsFriend
Messages: 14
Registered: July 2009
Junior Member
Sorry, i posted to the wrong thread there--

In response to:

>I'm having trouble getting JSDT to fully recognize the YUI Javascript
>library. When I create a project and add YUI as a library reference, only
>certain components are recognized by the interpreter. Please see screenshot
>here: http://i33.tinypic.com/2hf278m.png

JSDT works well with common usage JavaScript, but must rely on inferencing
extensions to fully build class structure in the bigger toolkits. This is
because of quirky backdoor mechanisms most of these toolkits use to define
classes and types. The quirks are valid JavaScript, but the types/classes
aren't visible until execution and don't follow a standard, or atleast
common definition structure.

In the YUI case, most of the JavaScript definition is pretty common, but
some of it's also defined during runtime or through chains of anonymous
structures. Due to the runtime definitions, and other funk there will be
incomplete class/type definitions.

I encourage you to document specific problems. That way we can begin
writing inferencing engines that recognize the proprietary structures in YUI
toolkits.

-brad

"Peter D" <peter@jasco.com> wrote in message
news:a279ea34e2c24a2f661ec88bbc96e637$1@www.eclipse.org...
>I don't think my original post said anything about debugging. I'm talking
>strictly about code completion and real-time syntax error checking.
>
> Peter
>
Previous Topic:Remote Deployment in eclipse
Next Topic:OS specific property defaults in Server Def?
Goto Forum:
  


Current Time: Fri Apr 19 03:40:08 GMT 2024

Powered by FUDForum. Page generated in 0.02067 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top