Galooshi / sublime-import-js

Sublime Text plugin for ImportJS
MIT License
24 stars 2 forks source link

Replaced `exectutible` option with `paths` option #12

Closed alebiavati closed 8 years ago

alebiavati commented 8 years ago

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)

trotzig commented 8 years ago

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.