I am using this plugin on a computer where nodejs was installed via NVM. I tried setting the exectutible option in the sublime plugin settings, but I kept getting this error :
Error when executing importjs:
env: node: No such file or directory
This is because node was not defined in the path as well as importjs because I don't have a global install of node, rather it's only installed via NVM.
Specifying a set of paths to prepend to the PATH environment variable is more flexible and it's the method used by other sublime plugins (for example: SublimeLinter/SublimeLinter3)
Sorry @alebiavati, I completely missed this PR. This looks 👍, I'll merge and release a new version soon. I'm also pushing some new things on top of your changes before doing that.
I am using this plugin on a computer where nodejs was installed via NVM. I tried setting the
exectutible
option in the sublime plugin settings, but I kept getting this error :This is because
node
was not defined in the path as well asimportjs
because I don't have a global install of node, rather it's only installed via NVM.Specifying a set of paths to prepend to the PATH environment variable is more flexible and it's the method used by other sublime plugins (for example: SublimeLinter/SublimeLinter3)