cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 160 forks source link

Eclipse Plugin + OSX : cannot find Node.js #19

Closed renaudpawlak closed 8 years ago

renaudpawlak commented 8 years ago

From @tdebroc on December 22, 2015 9:2

I have node js in my path in my terminal but Eclipse can't find it: cannot find Node.js: install first and make sure that the 'node' command is in your execution path jsweet-examples Unknown JSweet Problem

Copied from original issue: cincheo/jsweet-examples#11

renaudpawlak commented 8 years ago

Make sure that:

  1. even when you close the terminal and restart it, node and npm are still in your path
  2. you restart Eclipse too so that the path is up-to-date for Eclipse Keep me posted
tdebroc commented 8 years ago

I had verified 1 and 2, they were ok. It seems Eclipse doesn't find my environnement path, don't know why ...

renaudpawlak commented 8 years ago

Would you mind checking the content of "Window > Show view > Error log" and send me the content of it after a clean project?

I will try to reproduce the issue. Is it happening on the jsweet-examples project? Which version of Eclipse are you using?

renaudpawlak commented 8 years ago

I forgot to ask: on what OS are you running Eclipse?

tdebroc commented 8 years ago

Yes It's in jsweet-examples example, Eclipse Mars 4.5.1 on OSX 10.10.4

Here it's logs as you asked (filtered for classpath and paths):

!MESSAGE Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! !MESSAGE JSweet: full build... !MESSAGE source dirs: [/jsweet-examples/src/test/java, /jsweet-examples/src/main/java] !MESSAGE compiling with classpath: {{MY CLASSPATH}} !MESSAGE compiling [{{MY PATH}}/git/jsweet-quickstart/src/main/java/quickstart/QuickStart.java] jsweet.lang.Globals.;jsweet.util.Globals.;jsweet.dom.Globals.;def.jquery.Globals.;def.underscore.Globals.* !MESSAGE Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

renaudpawlak commented 8 years ago

There is a trick to get access to the actual path variable under Mac OSX... http://superuser.com/questions/28344/path-env-variable-on-mac-os-x-and-or-eclipse

renaudpawlak commented 8 years ago

Note that this is more or less a bug because the plugin should be able to work without have the users to perform complex conf to make it work. I plan to get a Mac to make all this smoother for Mac users in future developments.

renaudpawlak commented 8 years ago

It should be fixed now. (I had to get a Mac to fix it ;)) Just update the Eclipse plugin and it should work...

tdebroc commented 8 years ago

Indeed, I just tried, works perfectly thanks !