Hi,

At first I have commited an improvment about Node.js preferences. Now you can set the node.js path. See attached screenshot.
The combo is filled with default path according the OS. If your node is not installed in the default path, it searchs in your PATH env if you have a node path to retrieve the well path.

> I updated the plugin and I can see the node and npm binaries are not
> executable
> so I get an error like:
>
> Cannot run program
> "/Users/max/products/eclipse/luna/eclipse/plugins/tern.eclipse.ide.server.nodejs.embed.macosx.cocoa.x86_64_1.0.0.201402271715/nodejs/node-v0.10.22-macosx-x86_64/bin/node"
> (in directory "/Users/max/Documents/workspace-luna3/dfdf"): error=13,
> Permission denied
>
> When I chmod +X those files it seem to start working.
I wasn't required to change "executable" attribute on my Fedora 20
x86_64. What kind of problem it could be: the problem of OSX or wrong
executable attribute for "node" and "executable" binaries in repository?

It's my friend Pascal who has created this embed node.js, I will answer you but now he is on holiday.
But with my improvement, you can try to install node.js in your computer and use "Native Node.js".

If you want to see the command line of node.js + teh JSON request/response used with tern server, you can see those traces in Eclipse Console.
See https://github.com/angelozerr/tern.java/wiki/Tern-Console

>> Perhaps it should better to have an install URL per OS?
> noo - not necessary. You can mark a bundle to just apply to a specific
> OS via Eclipse-PlatformFilter
>
> See
> https://github.com/jbosstools/jbosstools-xulrunner/blob/master/plugins/org.mozilla.xulrunner.gtk.linux.x86/META-INF/MANIFEST.MF#L9
> as an example.
>
> I would suggest making the feature default require these plugins so any
> install by default would work.

Many thank's for your information. I will speak to Pascal about this idea.

>> Today Eclipse freezes, but I must do that in background.
> Is there an issue for this somewhere ?

There is 2 issues about tern performance : 

 * "Parse JS file of tern doc with monitor" => https://github.com/angelozerr/tern.java/issues/5
 * "Improve performance with JS Editor and tern completion" => https://github.com/angelozerr/tern.java/issues/6
 
>
>>> Can we avoid it have to parse
>>> constantly ?
>>> can one just tell it to parse one file as oppose to all files all the
>>> time
>> ?
>> When you open completion, it parses one time the whole files and after
>> it
>> parses the current file.
>> I must improve the completion performance by using the "part" feature
>> of
>> tern (not need to parse each time the whole file).
>> Today I use Tern for completion, find type in HTML editor. But Tern is
>> enable to manage search and refactoring.
>>> Have you found the bundled binaries to work across various OS's ?
>> No I have just Windows and my friend pascal has Linux.
>>
>> Have a nice days.
>>
>> Regards Angelo
>>
>> 2014-02-26 21:36 GMT+01:00 Victor Rubezhny <vrubezhny@exadel.com>:
> /max
>
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev

_______________________________________________
jbosstools-dev mailing list
jbosstools-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosstools-dev