JSDT won't fully recognize referenced library [message #217207] |
Wed, 09 July 2008 10:30  |
Eclipse User |
|
|
|
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 #217603 is a reply to message #217439] |
Mon, 14 July 2008 16:48  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04571 seconds