Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Is it possible to do JSDT type inference in, multiple JS files at once?

Hello All, this is nice thread.

NJDoc before was used mostly internally inside John Peberdy's company and definitely needs more how-tos and examples. It was included in Enide (http://www.nodeclipse.org/enide), but never promoted.

NJDoc just as VJET requires some additional configuration, and some skill to use.
The main idea is that NJDoc executes code to understand it.

VJET goes different way by defining some rules and (missing is JS) type system.

Statically adding type information is also possible with JSDoc3 (http://usejsdoc.org/tags-type.html).

As more logic shifts to client in browser, JavaScript importance grows. With some technologies like Node.js
or JSON based databases (MongoDB, CouchDB) application can be written 100% in JavaScript.
Now it is not just .js files, but modules in CommonJS, AMD (http://requirejs.org/docs/why.html), dojo or other formats.
There are also CoffeeScript and TypeScript projects for better JavaScript.

I hope JSDT as part of Eclipse platform will enable extending JS tools in different ways,
as may be required in different projects. The challenge is to make all those ideas work together.

I will include in ENide Studio (Eclipse distribution http://enide.github.io/) any experimental solution that make developer's life easier,
as long as it is stable enough.

Waiting for next NJDoc and VJET releases.

Best regards,
Paul Verest



On 30.08.2013 0:00, wtp-dev-request@xxxxxxxxxxx wrote:
Message: 1
Date: Wed, 28 Aug 2013 14:59:48 -0400 (EDT)
From: Max Andersen <manderse@xxxxxxxxxx>
To: "General discussion of project-wide or architectural issues."
	<wtp-dev@xxxxxxxxxxx>
Cc: "General discussion of project-wide or architectural issues."
	<wtp-dev@xxxxxxxxxxx>
Subject: Re: [wtp-dev] Is it possible to do JSDT type inference in
	multiple	JS files at once?
Message-ID: <04294D4A-57D9-49AA-9143-E5E784FB2D50@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

I tried this but never got it to work unfortunately :/

/max (sent from my phone)


On 28/08/2013, at 16.53, John Peberdy <john@xxxxxxxxxx> wrote:

The NJSDoc (unofficial and experimental) variation of JSDT is also available which supports content assist across multiple files by doing dynamic analysis on your JavaScript: https://bitbucket.org/nexj/webtools.jsdt.core


On Wed, Aug 28, 2013 at 2:08 AM, Max Rydahl Andersen <manderse@xxxxxxxxxx> wrote:
This is all nice but it just doesn't seem to be necessary for most javascript apps.
Why not by default assume all *.js files are in "scope" with then option to make that ordering specifc - but at least most things will work out of the box.

I believe that is how aptana and intellij code editors work.

/max


On Mon, Aug 26, 2013 at 10:55:31AM -0700, Justin Early wrote:
In the vjet javascript IDE we provide a way to need other js files using a comment. [1]

[1]http://wiki.eclipse.org/VJET/JS_code_assist_and_validation_for_two_or_more_js_files

Sent from my iPhone

On Aug 26, 2013, at 6:44 AM, Christopher Jaun <cmjaun@xxxxxxxxxx> wrote:

The inference engines in JSDT run on a per-file basis, so it is not possible to infer two files within the same context at the same time or pass information directly between them during the infer step.

Thanks,
Chris



<graycol.gif>cinyoung hur ---08/26/2013 08:45:18 AM---Hello, I extended org.eclipse.wst.jsdt.core.inferrenceSupport.

From:   cinyoung hur <hurcy3@xxxxxxxxx>
To:     wtp-dev@xxxxxxxxxxx,
Date:   08/26/2013 08:45 AM
Subject:        [wtp-dev] Is it possible to do JSDT type inference in multiple JS       files at once?
Sent by:        wtp-dev-bounces@xxxxxxxxxxx



Hello,

I extended org.eclipse.wst.jsdt.core.inferrenceSupport.

I'm trying to figure out JSDT type inference in multiple JavaScript files.
It works only after I open JavaScript files one by one.
I couldn't infer types of other files that has not been opened yet.

Please give me helpful advice.
Thanks.

Regards,
Ciana Hur.



Back to the top