Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJSDT won't fully recognize referenced library
https://www.eclipse.org/forums/index.php/mv/msg/69326/217207/#msg_217207
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?
-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
>]]>Bradley Childs2008-07-10T18:59:34-00:00Re: JSDT won't fully recognize referenced library
https://www.eclipse.org/forums/index.php/mv/msg/69326/217439/#msg_217439
strictly about code completion and real-time syntax error checking.
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.]]>2008-07-11T17:56:43-00:00Re: JSDT won't fully recognize referenced library
https://www.eclipse.org/forums/index.php/mv/msg/69326/217603/#msg_217603
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
>]]>Bradley Childs2008-07-14T20:48:57-00:00