tanepiper / SublimeText-Nodejs

nodejs snippets and bindings for Sublime Text 3
Do What The F*ck You Want To Public License
1.13k stars 262 forks source link

node_command doesn't work with flags #99

Open AlexVPopov opened 5 years ago

AlexVPopov commented 5 years ago

Hello 👋 I have installed node via homebrew.

This works:

{
   "node_command": "/usr/local/bin/node"
}

However, neither this:

{
   "node_command": "/usr/local/bin/node --experimental-modules"
}

nor this:

{
   "node_command": "/usr/local/bin/node --experimental-modules $file"
}

works.

Does the node_command option support command flags?

varp commented 5 years ago

Hi, Do you get any errors or something else to figure out what the problem is? How you understand that it is not work?

AlexVPopov commented 5 years ago

Hi, @varp. Yes, this is the error, that I get:

screenshot 2019-03-05 05 54 40

However, this is strange, because /usr/local/bin/node is in the path and if I remove --experimental-modules it works and I don't get the error.

varp commented 5 years ago

Thx @AlexVPopov. I'll give you an answer ASAP. Maximum a couple of days. Please wait.

AlexVPopov commented 5 years ago

Hey @varp, no worries, the plugin works for me nicely as it is. Thank you for your help!

varp commented 5 years ago

Okay, @AlexVPopov. I've added support for passing arguments to the node_command and npm_command settings. Will be in the next release or you can install the package by git.

varp commented 5 years ago

At the moment you should install it from my fork https://github.com/varp/SublimeText-Nodejs

AlexVPopov commented 5 years ago

Hey @varp, thank you very much for your effort! Should I close this issue?

varp commented 5 years ago

I'll do it when a release will be ready