<div dir="ltr">Hi Max,<div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-05 14:34 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Glad you like AngularJS Eclipse features.<br>
<br>
It should be very cool if my work could be integrated in JBoss Tools,<br>
</blockquote>
<br></div>
Want to go so far and make it part of jbosstools ? ;)</blockquote><div><br></div><div>To be honnest with you, I prefer today having my github to commit my code, because it is not stable yet.</div><div>MoreI develop this project on my spare time, I&#39;m father  too soI have not big time.</div>
<div><br></div><div>I tell you that, because I was Eclipse E4 commiter because I had created the E4 CSS Engine. But when </div><div>this CSS engine sources was hosted on E4, I was afraid to do some refactoring because this engine became very important.</div>
<div><br></div><div>It&#39;s like AngularJS Eclipse today, it&#39;s a little project which is not very important, so I can refactor as I wish.</div><div><br></div><div>Hope you will understand what I mean. But Im I am honored by your proposal. Thank&#39;s</div>
<div><br></div><div>Regards Angelo</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><br>

<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
. I<br>
have a lot and lof of idea to improve it not only for angular but for<br>
Javascript features like refactoring, hover, validation.<br>
I think tern.java should be refactored again and IMHO I think we should<br>
waiting that tern.java is stable if you wish to integrate to JBoss. More<br>
some tests of performance must be done (I believe that Victor works on<br>
that).<br>
</blockquote>
<br></div>
lets see what the performance impacts are - jsdt isn&#39;t exactly fast either.<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
This feature is managed just with a simple JSON :<br>
<br>
&quot;on&quot;: {<br>
     &quot;!type&quot;: &quot;fn(events: string, selector?: string, data?: ?,<br>
handler: fn(+jQuery.Event)) -&gt; jQuery.fn&quot;,<br>
     &quot;!url&quot;: &quot;<a href="http://api.jquery.com/on/" target="_blank">http://api.jquery.com/on/</a>&quot;,<br>
     &quot;!doc&quot;: &quot;Attach an event handler function for one or more<br>
events to the selected elements.&quot;<br>
   },<br>
</blockquote>
<br></div>
Yeah I like this  - much simpler than other typedef descriptions found in<br>
things like vjet and others.<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
It declares just that handler is a function which waits a jQuery.Event and<br>
that&#39;s all!<br>
<br>
I&#39;m studying how to manage validation with Tern. here a screenshot with<br>
CodeMirror :<br>
<br>
[image: Images intégrées 1]<br>
<br>
Today I think node.js doesn&#39;t please you,<br>
</blockquote>
<br></div>
Not really - I just don&#39;t want it to fail in a default install...i.e. should bundle a node.js engine<br>
by default so no external node js is required (can still allow users override that but make the default<br>
experience be a &quot;it just works&quot;)<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
but tern.java provides an API to<br>
use tern.js with other javascript engine (I had implemented with Rhino, but<br>
it&#39;s too slowly and outofmemory problem, but what about java8 nashorn?<br>
</blockquote>
<br></div>
It is worth trying but since nashorn only runs on Java 8 it is not something we can/should depend on<br>
while Java 6 is still big, but luckily java 7 is getting better ;)<br>
<br>
Having nashorn as an option when you are running with jdk 8 would be interesting to see if it<br>
works better or worse than rhino/node.js.<br>
<br>
<br>
/max<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
Regards Angelo<br>
<br>
<br>
<br>
2014-03-05 7:38 GMT+01:00 Max Rydahl Andersen &lt;<a href="mailto:manderse@redhat.com" target="_blank">manderse@redhat.com</a>&gt;:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On 1 Mar 2014, at 19:06, Angelo zerr wrote:<br>
<br>
Hi,<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<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>
<br>
</blockquote>
<br>
Cool!<br>
<br>
<br>
Hope it will help you more to see features of AngularJS Eclipse.<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
</blockquote>
<br>
Yeah, I like it. Really would like to find a way to integrate it more<br>
smoothly into eclipse/jboss tools.<br>
<br>
/max<br>
<br>
<br>
<br>
Regards Angelo<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<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>
Hi,<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<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<br>
have<br>
a node path to retrieve the well path.<br>
<br>
I updated the plugin and I can see the node and npm binaries are not<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
executable<br>
so I get an error like:<br>
<br>
Cannot run program<br>
<br>
&quot;/Users/max/products/eclipse/<u></u>luna/eclipse/plugins/tern.<br>
</blockquote>
eclipse.ide.server.nodejs.<u></u>embed.macosx.cocoa.x86_64_1.0.<br>
0.201402271715/nodejs/node-v0.<u></u>10.22-macosx-x86_64/bin/node&quot;<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>
<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>
<br>
</blockquote>
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<br>
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>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Perhaps it should better to have an install URL per OS?<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<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>
<a href="https://github.com/jbosstools/jbosstools-xulrunner/blob/" target="_blank">https://github.com/jbosstools/<u></u>jbosstools-xulrunner/blob/</a><br>
</blockquote>
master/plugins/org.mozilla.<u></u>xulrunner.gtk.linux.x86/META-<br>
INF/MANIFEST.MF#L9<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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>
<br>
</blockquote>
<br>
<br>
</blockquote>
Many thank&#39;s for your information. I will speak to Pascal about this<br>
idea.<br>
<br>
Today Eclipse freezes, but I must do that in background.<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Is there an issue for this somewhere ?<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
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>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Can we avoid it have to parse<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

constantly ?<br>
can one just tell it to parse one file as oppose to all files all the<br>
time<br>
<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>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Have you found the bundled binaries to work across various OS&#39;s ?<br>
<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>
<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>
<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>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
</blockquote>
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>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
</blockquote>
<br></div></div>
[TernCompletionEvent.png]<br>
<br>
[TernCompletionJQuery.png]<br>
<br>
[TernLintDemo.png]<br>
</blockquote>
<br>
<br>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
</blockquote></div><br></div></div>