<div dir="ltr">Hi Max, Alexey , Victor,<div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px"><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">
Today it supports it. See screenshots at<br><a href="https://github.com/angelozerr/angularjs-eclipse/wiki/HTML-Features#wiki-angular-expression-management" target="_blank">https://github.com/angelozerr/<u></u>angularjs-eclipse/wiki/HTML-<u></u>Features#wiki-angular-<u></u>expression-management</a><br>
</blockquote><br></div><span style="font-family:arial,sans-serif;font-size:13px">>and it does that without *running* the project javascript ? that is pure tern parsed ?</span><br style="font-family:arial,sans-serif;font-size:13px">
<br>Yes that"s it. But I think I don't manage the whole case. The angular tern plugin must be improved.</div><div><br><span style="font-family:arial,sans-serif;font-size:13px">>if yes - that is nice!</span></div>
<div><br></div><div>Thank's!<br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">>I thought there were things in angularjs context that would not be possible to extract from javascript?</span></div>
<div><br></div><div>With Tern plugin you can add you own logic when some methods is called. In angular plugin case, it forces the $scope parameter used in the controller </div><div>to an instance of scope by injecting teh well methods $watch, etc<br>
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">>Saying this in context of our experiment where we actually ask the browser what is in the angular scope</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>at runtime....but maybe these two approaches could simply be merged and we get best of both worlds?</span></div><div>Yes I have seen that with your demo with Livereload. </div>
<div><br></div><div>The pros with this mean is that you get the well methods.</div><div>The cons with this mean is it doesn't work if your JS is not valid. I have not managed that, but I would like to manage Hyperlink <br>
</div><div>for expression (ex : Ctrl+Click on "{{todo" open the todo.js an select $scope.todo). With Tern I can do that (because it's an AST)</div><div>I think you cannot do that with LiveReload?</div><div>
<br></div><div><span style="font-family:arial,sans-serif;font-size:13px">>I tried installing OSX osgi bundle provided node.js and it seems to NPE for me ;/</span><br style="font-family:arial,sans-serif;font-size:13px">
Yes it was a stupid error and Victor created an issue that I have fixed.</div><div><br><span style="font-family:arial,sans-serif;font-size:13px">>I thought I actually saw this working but that might have been earlier version.</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">>I think the default should be that out of box Tern/angularjs integration should use the bundled one and</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>then advanced users can decide use native one...optimally default users should not have to care about</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>it is using node.</span></div><div>I agree with you. I must improve that, but I develop this plugin in my spare time and I was very exciting to see tern integrated in Eclipse IDE.</div>
<div>So I have not worked a lot about the node.js topic.</div><div><br></div><div>We provide "embed" node.js that you must select when you install Tern IDE. Perhaps it should better to have an install URL per OS?</div>
<div><br></div><div>As Alexey , Victor suggested me, node.js must be more customizable. I had created this issue at <a href="https://github.com/angelozerr/tern.java/issues/4" target="_blank">https://github.com/angelozerr/tern.java/issues/4</a></div>
<div><br></div><div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">>It just needs some enduser polish (i.e. users should not need to care about different html editors,</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>different node.js runtimes, it should "just work").</span></div><div class="gmail_extra"><font face="arial, sans-serif">definitely!</font></div><div class="gmail_extra">
<font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">>One concern we had was performance and portability.</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>Does Tern handle larger projects of javascript well ? </span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">By using node.js, tern can handle big file. But if you try to parse a big framework like dojo it takes time.</span></div>
<div class="gmail_extra"><font face="arial, sans-serif">Today Eclipse freezes, but I must do that in background.</font></div>
<div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">>Can we avoid it have to parse</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>constantly ? </span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">>can one just tell it to parse one file as oppose to all files all the time ?</span></div>
<div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">When you open completion, it parses one time the whole files and after it parses the current file.</span></div><div class="gmail_extra">I must improve the completion performance by using the "part" feature of tern (not need to parse each time the whole file).</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Today I use Tern for completion, find type in HTML editor. But Tern is enable to manage search and refactoring.<br><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">>Have you found the bundled binaries to work across various OS's ?</span></div><div class="gmail_extra"><font face="arial, sans-serif">No I have just Windows and my friend pascal has Linux.</font></div>
<div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">Have a nice days.</font></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font></div>
<div class="gmail_extra"><font face="arial, sans-serif">Regards Angelo<br>
</font><br><div class="gmail_quote">2014-02-26 21:36 GMT+01:00 Victor Rubezhny <span dir="ltr"><<a href="mailto:vrubezhny@exadel.com" target="_blank">vrubezhny@exadel.com</a>></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>On 02/26/2014 11:59 PM, Alexey Kazakov wrote:<br>
> Hi Angelo!<br>
><br>
> I actually tried some old AngularJS Eclipse plugins available in<br>
> December. Latter I tried the new one and saw a lot of cool stuff like<br>
> {{}} support. It's very nice.<br>
><br>
>> AngularJS Eclipse extends the WTP HTML Editor (I don't have created a<br>
>> new HTML editor).<br>
> There is AngularJS Editor which extends WTP HTML Editor. And I have to<br>
> use this editor if I want to have full support of AngularJS stuff like<br>
> {{}} code completion or code highlighting. Has it been changed?<br>
><br>
> On 02/26/2014 08:05 AM, Max Rydahl Andersen wrote:<br>
>> I tried installing OSX osgi bundle provided node.js and it seems to NPE<br>
>> for me ;/<br>
> We didn't try the OSX version but there was a bug in the Linux one.<br>
> Victor Rebezhny created a PR to fix it and Angelo has already merged it<br>
> - <a href="https://github.com/angelozerr/tern.java/pull/14" target="_blank">https://github.com/angelozerr/tern.java/pull/14</a><br>
> There is one more issue with node.js on Linux actually. It's impossible<br>
> to use a local installation of node.js since the command "node" is<br>
> already used at least in some popular distributives like Ubuntu. So if<br>
> you chose to use a local node.js instead of the bundled one then<br>
> "nodejs" command should be used instead of "node".<br>
<br>
</div>It looks like the issue is a common thing for linuxes. And may be not<br>
only for linuxes.<br>
In ubuntu you cannot use "node" (because it's reserved for other util,<br>
not node.js)<br>
in fedora the node.js is not installed to /usr/local/bin/ directory. So,<br>
due to make it work I had to manually create a link to "node" in<br>
/usr/local/bin/ directory.<br>
IMHO, there should be a possibility for a user to point Tern.java to<br>
node.js executable in preferences instead of having some hardly<br>
predefined path, because the path and the name of node.js executable<br>
could be different for different OS distributions.<br>
<div><div>><br>
> _______________________________________________<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/mailman/listinfo/jbosstools-dev</a><br>
<br>
_______________________________________________<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/mailman/listinfo/jbosstools-dev</a><br>
</div></div></blockquote></div><br></div></div></div>