Hi Max, Alexey , Victor,
>and it does that without *running* the project javascript ? that is pure tern parsed ?
Yes that"s it. But I think I don't manage the whole case. The angular tern plugin must be improved.
>if yes - that is nice!
Thank's!
>I thought there were things in angularjs context that would not be possible to extract from javascript?
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
to an instance of scope by injecting teh well methods $watch, etc
>Saying this in context of our experiment where we actually ask the browser what is in the angular scope
>at runtime....but maybe these two approaches could simply be merged and we get best of both worlds?
Yes I have seen that with your demo with Livereload.
The pros with this mean is that you get the well methods.
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
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)
I think you cannot do that with LiveReload?
>I tried installing OSX osgi bundle provided node.js and it seems to NPE for me ;/
Yes it was a stupid error and Victor created an issue that I have fixed.
>I thought I actually saw this working but that might have been earlier version.
>I think the default should be that out of box Tern/angularjs integration should use the bundled one and
>then advanced users can decide use native one...optimally default users should not have to care about
>it is using node.
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.
So I have not worked a lot about the node.js topic.
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?