SublimeText-Nodejs icon indicating copy to clipboard operation
SublimeText-Nodejs copied to clipboard

node_command doesn't work with flags

Open AlexVPopov opened this issue 5 years ago • 8 comments

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?

AlexVPopov avatar Feb 26 '19 14:02 AlexVPopov

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

varp avatar Mar 05 '19 03:03 varp

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.

AlexVPopov avatar Mar 05 '19 03:03 AlexVPopov

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

varp avatar Mar 05 '19 05:03 varp

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

AlexVPopov avatar Mar 05 '19 13:03 AlexVPopov

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 avatar Mar 13 '19 06:03 varp

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

varp avatar Mar 13 '19 07:03 varp

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

AlexVPopov avatar Mar 13 '19 08:03 AlexVPopov

I'll do it when a release will be ready

varp avatar Mar 13 '19 08:03 varp