sustained/CoffeeScript-Sublime-Plugin

On Debian binDir must contain /usr/bin and /usr/local/bin

Opened this issue · 4 comments

On Debian Testing+Sid, when I try, for example, check the syntax (Alt+Shift+S), or invoke any other action of this plugin, an error occurs (showed in the new tab or status bar):
/usr/bin/env: node: No such file or directory
This happens with the default settings.

When I correct binDir value to /usr/bin, it just silently fails.

Accidentally discovered that the variable PATH (in terminal) contains /usr/bin and /usr/local/bin, so I tried to set binDir value to /usr/local/bin:/usr/bin … and it worked!

Further investigation revealed that this happens because node is in /usr/bin, but coffee in /usr/local/bin.

Also tried on Ubuntu 12.04 and there is the same situation.

So I thought it's would be nice if plugin use /usr/local/bin:/usr/bin as a default value for binDir.

PS. I'm sorry for my google-translated English. :)

That's actually a pretty good translation.

I'll be sure to incorporate this change for the next release.

where is "binDir" ? in env or in a config file ?

It's in this config. file.

If you installed via Package Control then go to Preferences then Package Settings then CoffeeScript. If not then it's wherever you installed it (probably Preferences then Browse Packages).

On second thought, changing the default binDir to /usr/local/bin:/usr/bin may break things for other people. It's a configuration option for a reason.

I don't know. I'll look into this... it's starting to look like the path stuff needs rethinking anyway.