Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Narwhal and DLKT

7 views
Skip to first unread message

Nathan

unread,
Dec 1, 2009, 2:02:46 AM12/1/09
to
I would like to use the DLKT JavaScript addon as my IDE for developing
narwhal apps. I am having trouble getting the environment setup.
Narwhal can use rhino as an engine, but I need to setup my "run
configuration" to execute my application using narwhals bootstrap
process. The normal way of running narwhal is by invoking a shell
script in the narwhal/bin directory.

I'd appreciate being pointed in the right direction for how to get
started on setting up my environment to use Eclipse JavaScript DLKT.

Thanks.

Nathan

unread,
Dec 1, 2009, 2:08:37 AM12/1/09
to

To add a little more detail, here is a link to how narwhal starts up
on rhino: http://github.com/tlrobinson/narwhal/blob/master/engines/rhino/bin/narwhal-rhino

Mark Porter

unread,
Dec 3, 2009, 9:35:52 AM12/3/09
to
I don't know anything about DLKT and very little about narwhal, but I
think you want to take a look at the Rhino engine bootstrap file[1].
This is what you would run inside your runtime to get narwhal up and
running. I used a modified version of this file in Myna[2] to enable
CommonJS support on a per page basis.

[1]:http://github.com/tlrobinson/narwhal/blob/
536c7e8d1224bfbe963b50955e2ec7c938bd1f56/engines/rhino/bootstrap.js
[2]:http://www.mynajs.org

> on rhino:http://github.com/tlrobinson/narwhal/blob/master/engines/rhino/bin/na...

Johan Compagner

unread,
Dec 4, 2009, 6:53:48 AM12/4/09
to dev-tech-js-...@lists.mozilla.org
with dltk you just need to ship "org.eclipse.dltk.javascript.rhino.dbgp"
plugin code with your rhino
That way you have the debug part right besides your rhino
Then you should be able to connect/start it.

We use this setup but we have a slightly patched version to be able to
remote connect to it.

> _______________________________________________
> dev-tech-js-engine-rhino mailing list
> dev-tech-js-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
>

Nathan

unread,
Dec 18, 2009, 2:35:22 PM12/18/09
to
It seems that Eclipse is completely ignoring what I put in the
"arguments" box of my run configuration.

This is the command it executes:
"C:\Program Files\Java\jre1.6.0\bin\javaw.exe" -
agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:52926 -
classpath C:\Users\Nathan\.eclipse
\org.eclipse.platform_3.5.0_1709980481\plugins
\org.eclipse.dltk.javascript.rhino_1.0.0.v20090528-1923.jar;C:\Users
\Nathan\.eclipse\org.eclipse.platform_3.5.0_1709980481\plugins
\org.eclipse.dltk.javascript.rhino.dbgp_1.0.0.v20090528-1923.jar
RhinoRunner C:/Users/Nathan/workspace/QA/src/script/run.js

This is what is in my arguments box:
-cp "c:\working\narwhal\engines\rhino\jars\js.jar;c:\working\narwhal
\engines\rhino\jars\jline.jar;c:\working\narwhal\engines\rhino\jars
\jna.jar;c:\working\narwhal\packages\jack\jars\simple-4.1.10.jar"
"org.mozilla.javascript.tools.shell.Main" -version "170" "c:\working
\narwhal\engines\rhino\bootstrap.js" narwhal "script\run"

I'm not really having any luck.

Johan, are you saying that if I just include
org.eclipse.dltk.javascript.rhino.dbgp in my narwhal project, I can
start it then connect with the debugger through Eclipse? How would I
connect to the remote process?

> > dev-tech-js-engine-rh...@lists.mozilla.org
> >https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Nathan

unread,
Dec 18, 2009, 2:57:15 PM12/18/09
to
Johan,

Do you mean a patched version of Eclipse or a patched version of DLTK?

Care to share your patched version?

Johan Compagner

unread,
Dec 20, 2009, 8:12:12 AM12/20/09
to dev-tech-js-...@lists.mozilla.org
patched version of the dltk
But it should be i think possible to connect remotely but i am not sure we
still use a patched version
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221825

that is the patch i use, its on a bit older build

But yes you have to include the dbgp project because thats the debugger
implementation.,

0 new messages