<div dir="ltr">Hi max,<div><br></div><div>Glad you like AngularJS Eclipse features.</div><div><br></div><div>It should be very cool if my work could be integrated in JBoss Tools,. I have a lot and lof of idea to improve it not only for angular but for Javascript features like refactoring, hover, validation.</div>

<div>I think tern.java should be refactored again and IMHO I think we should waiting that tern.java is stable if you wish to integrate to JBoss. More some tests of performance must be done (I believe that Victor works on that).</div>

<div><br></div><div>I would like to convince that tern could be a good idea to integrate with Eclipse IDE.</div>
<div>I love tern bebcause it&#39;s very powerful, very extensible and it works with webbrowser too. After playing with tern, it seems that Tern inference engine is more powerfull than JSDT. </div><div>For instance, see screeshot below with completion about event (JSDT cannot do that according my test) : </div>

<div><br></div><div><img src="cid:ii_14491b9a5b0bdc9a" alt="Images intégrées 1"><br></div><div><br></div><div><br></div><div>Tern provides a easy mean to write some JSON definition. For instance you have a jquery def <a href="https://github.com/marijnh/tern/blob/master/defs/jquery.json">https://github.com/marijnh/tern/blob/master/defs/jquery.json</a> which manages that : </div>
<div><br></div><div><img src="cid:ii_1449265a21aac039" alt="Images intégrées 1"><br></div><div><br></div><div><br></div><div>This feature is managed just with a simple JSON : </div><div><br></div><div><pre style="font-family:Consolas,&#39;Liberation Mono&#39;,Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px">
<div class="" id="LC438" style="padding-left:10px;background-color:rgb(255,255,204)"> <span class="" style="color:navy">&quot;on&quot;</span><span class="" style>:</span> <span class="" style>{</span></div><div class="" id="LC439" style="padding-left:10px">
        <span class="" style="color:navy">&quot;!type&quot;</span><span class="" style>:</span> <span class="" style="color:rgb(221,17,68)">&quot;fn(events: string, selector?: string, data?: ?, handler: fn(+jQuery.Event)) -&gt; jQuery.fn&quot;</span><span class="" style>,</span></div>
<div class="" id="LC440" style="padding-left:10px">        <span class="" style="color:navy">&quot;!url&quot;</span><span class="" style>:</span> <span class="" style="color:rgb(221,17,68)">&quot;<a href="http://api.jquery.com/on/">http://api.jquery.com/on/</a>&quot;</span><span class="" style>,</span></div>
<div class="" id="LC441" style="padding-left:10px">        <span class="" style="color:navy">&quot;!doc&quot;</span><span class="" style>:</span> <span class="" style="color:rgb(221,17,68)">&quot;Attach an event handler function for one or more events to the selected elements.&quot;</span></div>
<div class="" id="LC442" style="padding-left:10px">      <span class="" style>},</span></div><div class="" id="LC442" style="padding-left:10px"><br></div></pre></div><div>It declares just that handler is a function which waits a jQuery.Event and that&#39;s all!</div>
<div><br></div><div>I&#39;m studying how to manage validation with Tern. here a screenshot with CodeMirror : </div><div><br></div><div>
<img src="cid:ii_14491a1cecca991a" alt="Images intégrées 1"></div><div><br></div><div>Today I think node.js doesn&#39;t please you, but tern.java provides an API to use tern.js with other javascript engine (I had implemented with Rhino, but it&#39;s too slowly and outofmemory problem, but what about java8 nashorn?</div>
<div><br></div><div>Regards Angelo</div><div><br></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-05 7:38 GMT+01:00 Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:manderse@redhat.com" target="_blank">manderse@redhat.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 1 Mar 2014, at 19:06, Angelo zerr wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
For your information, I have created a getting started for AngularJS<br>
Eclipse at<br>
<a href="https://github.com/angelozerr/angularjs-eclipse/wiki/Getting-Started" target="_blank">https://github.com/angelozerr/<u></u>angularjs-eclipse/wiki/<u></u>Getting-Started</a><br>
which explains how to install and configure (node.js, angular syntax<br>
directive, tern console, etc)<br>
</blockquote>
<br></div>
Cool!<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hope it will help you more to see features of AngularJS Eclipse.<br>
</blockquote>
<br></div>
Yeah, I like it. Really would like to find a way to integrate it more<br>
smoothly into eclipse/jboss tools.<br>
<br>
/max<div><div class="h5"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards Angelo<br>
<br>
<br>
2014-02-28 18:05 GMT+01:00 Angelo zerr &lt;<a href="mailto:angelo.zerr@gmail.com" target="_blank">angelo.zerr@gmail.com</a>&gt;:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
At first I have commited an improvment about Node.js preferences. Now you<br>
can set the node.js path. See attached screenshot.<br>
The combo is filled with default path according the OS. If your node is<br>
not installed in the default path, it searchs in your PATH env if you have<br>
a node path to retrieve the well path.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I updated the plugin and I can see the node and npm binaries are not<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
executable<br>
so I get an error like:<br>
<br>
Cannot run program<br>
<br>
</blockquote>
&quot;/Users/max/products/eclipse/<u></u>luna/eclipse/plugins/tern.<u></u>eclipse.ide.server.nodejs.<u></u>embed.macosx.cocoa.x86_64_1.0.<u></u>0.201402271715/nodejs/node-v0.<u></u>10.22-macosx-x86_64/bin/node&quot;<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(in directory &quot;/Users/max/Documents/<u></u>workspace-luna3/dfdf&quot;): error=13,<br>
Permission denied<br>
<br>
When I chmod +X those files it seem to start working.<br>
</blockquote>
I wasn&#39;t required to change &quot;executable&quot; attribute on my Fedora 20<br>
x86_64. What kind of problem it could be: the problem of OSX or wrong<br>
executable attribute for &quot;node&quot; and &quot;executable&quot; binaries in repository?<br>
<br>
</blockquote>
<br>
It&#39;s my friend Pascal who has created this embed node.js, I will answer<br>
you but now he is on holiday.<br>
But with my improvement, you can try to install node.js in your computer<br>
and use &quot;Native Node.js&quot;.<br>
<br>
If you want to see the command line of node.js + teh JSON request/response<br>
used with tern server, you can see those traces in Eclipse Console.<br>
See <a href="https://github.com/angelozerr/tern.java/wiki/Tern-Console" target="_blank">https://github.com/angelozerr/<u></u>tern.java/wiki/Tern-Console</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Perhaps it should better to have an install URL per OS?<br>
</blockquote>
noo - not necessary. You can mark a bundle to just apply to a specific<br>
OS via Eclipse-PlatformFilter<br>
<br>
See<br>
<br>
</blockquote>
<a href="https://github.com/jbosstools/jbosstools-xulrunner/blob/master/plugins/org.mozilla.xulrunner.gtk.linux.x86/META-INF/MANIFEST.MF#L9" target="_blank">https://github.com/jbosstools/<u></u>jbosstools-xulrunner/blob/<u></u>master/plugins/org.mozilla.<u></u>xulrunner.gtk.linux.x86/META-<u></u>INF/MANIFEST.MF#L9</a><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
as an example.<br>
<br>
I would suggest making the feature default require these plugins so any<br>
install by default would work.<br>
</blockquote>
<br>
</blockquote>
<br>
Many thank&#39;s for your information. I will speak to Pascal about this idea.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Today Eclipse freezes, but I must do that in background.<br>
Is there an issue for this somewhere ?<br>
</blockquote>
<br>
</blockquote>
<br>
There is 2 issues about tern performance :<br>
<br>
* &quot;Parse JS file of tern doc with monitor&quot; =&gt;<br>
<a href="https://github.com/angelozerr/tern.java/issues/5" target="_blank">https://github.com/angelozerr/<u></u>tern.java/issues/5</a><br>
* &quot;Improve performance with JS Editor and tern completion&quot; =&gt;<br>
<a href="https://github.com/angelozerr/tern.java/issues/6" target="_blank">https://github.com/angelozerr/<u></u>tern.java/issues/6</a><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can we avoid it have to parse<br>
constantly ?<br>
can one just tell it to parse one file as oppose to all files all the<br>
time<br>
</blockquote>
?<br>
When you open completion, it parses one time the whole files and after<br>
it<br>
parses the current file.<br>
I must improve the completion performance by using the &quot;part&quot; feature<br>
of<br>
tern (not need to parse each time the whole file).<br>
Today I use Tern for completion, find type in HTML editor. But Tern is<br>
enable to manage search and refactoring.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you found the bundled binaries to work across various OS&#39;s ?<br>
</blockquote>
No I have just Windows and my friend pascal has Linux.<br>
<br>
Have a nice days.<br>
<br>
Regards Angelo<br>
<br>
2014-02-26 21:36 GMT+01:00 Victor Rubezhny &lt;<a href="mailto:vrubezhny@exadel.com" target="_blank">vrubezhny@exadel.com</a>&gt;:<br>
</blockquote>
/max<br>
<br>
______________________________<u></u>_________________<br>
jbosstools-dev mailing list<br>
<a href="mailto:jbosstools-dev@lists.jboss.org" target="_blank">jbosstools-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbosstools-<u></u>dev</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
jbosstools-dev mailing list<br>
<a href="mailto:jbosstools-dev@lists.jboss.org" target="_blank">jbosstools-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbosstools-<u></u>dev</a><br>
<br>
</blockquote>
<br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
jbosstools-dev mailing list<br>
<a href="mailto:jbosstools-dev@lists.jboss.org" target="_blank">jbosstools-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/jbosstools-<u></u>dev</a><br>
</blockquote>
<br>
<br></div></div>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
</blockquote></div><br></div>