Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 78 forks source link

"env: node\r: No such file or directory" for the nodeclipse.js utility installed through NPM #101

Closed ToastShaman closed 10 years ago

ToastShaman commented 10 years ago

Mac OSX 10.9 I am getting the following error:

# nodeclipse -p
env: node\r: No such file or directory 

when I try to run "nodeclipse -p" on an existing node project. It seems that the nodeclipse.js file uses dos line endings. I've manually converted the line endings to unix format and that seemed to resolve the issue.

paulvi commented 10 years ago

Just checked again sources. the only place where "\" used is for escaping new line like "\n" Take a look a look https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/templates/copier.js

Could you give the error with stacktrace & line numbers.

paulvi commented 10 years ago

oh, I got it, that is about line endings in the source file. I will need to convert the endings.

paulvi commented 10 years ago

fixed in v0.8.2 (already published)

grantkl commented 10 years ago

I just installed Nodeclipse today and I'm getting the same error.

$ node -v v0.11.11 $ nodeclipse -v env: node\r: No such file or directory $ nodeclipse -p env: node\r: No such file or directory

{ "name": "nodeclipse", "version": "0.10.5", "description": "nodeclipse CLI - prepare Node.js project to be imported into Eclipse (Nodeclipse)", "main": "copier.js", "scripts": { "test": "test" },

paulvi commented 10 years ago

OK, seems that UNIX line ending were lost.

@grantkl Thank you for letting know.

paulvi commented 10 years ago

fixed with 0.10.6 version

grantkl commented 10 years ago

Thanks for the quick fix. It works now.