<div dir="ltr">Hi,<div><br></div><div>@Denis : Don&#39;t hesitate to tell me if you need to change some files to help you to integrate it to JBoss Modules (coudl you explain what is a JBoss Modules please).</div><div><br></div>
<div>I would like to say you that I&#39;m working on the improve performance topic with tern.js and I&#39; developping a &quot;Tern Builder&quot; which will parse JS files with Tern.</div><div>Unfortunately &quot;Tern Buider&quot; can be added only when Tern Nature is added. So when I will commit my work, pay attention with that (you will have to remove the tern nature at hand in your .project).</div>
<div><br></div><div>Regards Angelo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-12 23:57 GMT+01:00 Denis Golovin <span dir="ltr">&lt;<a href="mailto:dgolovin@exadel.com" target="_blank">dgolovin@exadel.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 03/06/2014 02:01 AM, Max Rydahl Andersen wrote:<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"><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">
Hope you will understand what I mean. But Im I am honored by your<br>
proposal.<br>
Thank&#39;s<br>
<br>
</blockquote>
Yes, I completely understand.<br>
<br>
We are still looking and playing with it but if we continue to find<br>
it<br>
really<br>
good (we do right now ;) we&#39;ll look into somehow fork it and do our<br>
own version/release of tern.java and possibly angular.js.<br>
<br>
Hope you understand that too.<br>
<br>
</blockquote>
I understand that, but I think we should working together.<br>
</blockquote>
Yes, thats what I would like too and note, even if we fork I hope we<br>
don&#39;t<br>
have to deviate much. We want to contribute as much as possible on a<br>
shared project.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tell you that<br>
because as I said you, I have a lot of ideas to improve tern.java<br>
features.<br>
But we will speak about this topic when and if you wish to integrate<br>
tern.java to JBoss Tools.<br>
</blockquote>
Thats kinda now.<br>
<br>
Denis and Victor looking at it and seeing what we can do<br>
for our upcoming beta1 and beta2.<br>
</blockquote></div>
Max, Angelo,<br>
<br>
<br>
I was able to build angular-eclipse and torn.java as jbosstools modules from my forks with changes in root pom.xml files only:<br>
- angular-eclipse/pom.xml<br>
- torn.java/pom.xml<br>
<br>
I had to add jbosstools-build/parent/pom.<u></u>xml 4.2.0.Beta1  and remove references to external repositories.<br>
Probably we need to change something in modules with p2repos if we want them look the same as all p2repos for jbosstools modules.<br>
<br>
There is only one dependency org.eclipse.license feature is missing in JBoss Tools TP to make it usable for angular-eclipse and torn.java builds.<br>
<br>
In terms of dependencies angular-eclipse depends from org.json.simple plugin v 1.1.1 in torn.java.<br>
<br>
It looks like we can use forks with minimal deviations and pull updates form upstream when we need it.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
Denis</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Maybe easier to chat on IM ? you can reach us on #jbosstools on irc or<br>
via Skype (send you my details on twitter ;)<br>
<br>
/max<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">
Thanks,<br>
/max<br>
<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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
. I<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
have a lot and lof of idea to improve it not only for angular but<br>
for<br>
Javascript features like refactoring, hover, validation.<br>
I think tern.java should be refactored again and IMHO I think we<br>
should<br>
waiting that tern.java is stable if you wish to integrate to<br>
JBoss. More<br>
some tests of performance must be done (I believe that Victor<br>
works on<br>
that).<br>
<br>
<br>
</blockquote>
lets see what the performance impacts are - jsdt isn&#39;t exactly fast<br>
either.<br>
<br>
<br>
This feature is managed just with a simple JSON :<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&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>
<br>
<br>
</blockquote>
Yeah I like this  - much simpler than other typedef descriptions<br>
found in<br>
things like vjet and others.<br>
<br>
<br>
It declares just that handler is a function which waits a<br>
jQuery.Event<br>
and<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
that&#39;s all!<br>
<br>
I&#39;m studying how to manage validation with Tern. here a screenshot<br>
with<br>
CodeMirror :<br>
<br>
[image: Images intégrées 1]<br>
<br>
Today I think node.js doesn&#39;t please you,<br>
<br>
<br>
</blockquote>
Not really - I just don&#39;t want it to fail in a default<br>
install...i.e.<br>
should bundle a node.js engine<br>
by default so no external node js is required (can still allow<br>
users<br>
override that but make the default<br>
experience be a &quot;it just works&quot;)<br>
<br>
<br>
but tern.java provides an API to<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
use tern.js with other javascript engine (I had implemented with<br>
Rhino,<br>
but<br>
it&#39;s too slowly and outofmemory problem, but what about java8<br>
nashorn?<br>
<br>
<br>
</blockquote>
It is worth trying but since nashorn only runs on Java 8 it is not<br>
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<br>
be<br>
interesting to see if it<br>
works better or worse than rhino/node.js.<br>
<br>
<br>
/max<br>
<br>
Regards Angelo<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
2014-03-05 7:38 GMT+01:00 Max Rydahl Andersen<br>
&lt;<a href="mailto:manderse@redhat.com" target="_blank">manderse@redhat.com</a>&gt;:<br>
<br>
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>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For your information, I have created a getting started for<br>
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<br>
syntax<br>
directive, tern console, etc)<br>
<br>
<br>
Cool!<br>
</blockquote>
<br>
Hope it will help you more to see features of AngularJS Eclipse.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yeah, I like it. Really would like to find a way to integrate it<br>
more<br>
</blockquote>
smoothly into eclipse/jboss tools.<br>
<br>
/max<br>
<br>
<br>
<br>
Regards Angelo<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
At first I have commited an improvment about Node.js<br>
preferences. Now<br>
you<br>
can set the node.js path. See attached screenshot.<br>
The combo is filled with default path according the OS. If your<br>
node<br>
is<br>
not installed in the default path, it searchs in your PATH env<br>
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<br>
are not<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
executable<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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>
<br>
eclipse.ide.server.nodejs.<u></u>embed.macosx.cocoa.x86_64_1.0.<br>
</blockquote>
0.201402271715/nodejs/node-v0.<u></u>10.22-macosx-x86_64/bin/node&quot;<br>
<br>
(in directory &quot;/Users/max/Documents/<u></u>workspace-luna3/dfdf&quot;):<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
error=13,<br>
Permission denied<br>
<br>
When I chmod +X those files it seem to start working.<br>
<br>
I wasn&#39;t required to change &quot;executable&quot; attribute on my<br>
Fedora 20<br>
<br>
</blockquote>
x86_64. What kind of problem it could be: the problem of OSX<br>
or<br>
wrong<br>
executable attribute for &quot;node&quot; and &quot;executable&quot; binaries in<br>
repository?<br>
<br>
<br>
It&#39;s my friend Pascal who has created this embed node.js, I<br>
will<br>
<br>
</blockquote>
answer<br>
you but now he is on holiday.<br>
But with my improvement, you can try to install node.js in your<br>
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<br>
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>
Perhaps it should better to have an install URL per OS?<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">
noo - not necessary. You can mark a bundle to just apply to a<br>
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>
<br>
master/plugins/org.mozilla.<u></u>xulrunner.gtk.linux.x86/META-<br>
</blockquote>
INF/MANIFEST.MF#L9<br>
<br>
as an example.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would suggest making the feature default require these<br>
plugins so<br>
any<br>
install by default would work.<br>
<br>
<br>
<br>
</blockquote>
Many thank&#39;s for your information. I will speak to Pascal<br>
about this<br>
<br>
</blockquote>
idea.<br>
<br>
Today Eclipse freezes, but I must do that in background.<br>
<br>
Is there an issue for this somewhere ?<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>
<br>
</blockquote>
There is 2 issues about tern performance :<br>
<br>
</blockquote>
* &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>
Can we avoid it have to parse<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">
constantly ?<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 one just tell it to parse one file as oppose to all<br>
files all<br>
the<br>
time<br>
<br>
?<br>
<br>
</blockquote>
When you open completion, it parses one time the whole files<br>
and<br>
after<br>
it<br>
parses the current file.<br>
I must improve the completion performance by using the<br>
&quot;part&quot;<br>
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.<br>
But<br>
Tern<br>
is<br>
enable to manage search and refactoring.<br>
<br>
Have you found the bundled binaries to work across various<br>
OS&#39;s ?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No I have just Windows and my friend pascal has Linux.<br>
<br>
</blockquote>
Have a nice days.<br>
<br>
Regards Angelo<br>
<br>
2014-02-26 21:36 GMT+01:00 Victor Rubezhny<br>
&lt;<a href="mailto:vrubezhny@exadel.com" target="_blank">vrubezhny@exadel.com</a><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
:<br>
</blockquote>
/max<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>
<br>
<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>
<br>
<br>
______________________________<u></u>_________________<br>
</blockquote>
jbosstools-dev mailing list<br>
</blockquote>
<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>
<br>
</blockquote>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
<br>
[TernCompletionEvent.png]<br>
</blockquote>
[TernCompletionJQuery.png]<br>
<br>
[TernLintDemo.png]<br>
<br>
<br>
</blockquote>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
<br>
</blockquote></blockquote>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
</blockquote></blockquote>
<br>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><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>
<br>
</div></div></blockquote></div><br></div>