CoffeeScript-Sublime-Plugin icon indicating copy to clipboard operation
CoffeeScript-Sublime-Plugin copied to clipboard

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

Open kaener opened this issue 13 years ago • 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. :)

kaener avatar Aug 26 '12 07:08 kaener

That's actually a pretty good translation.

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

Xavura avatar Sep 01 '12 18:09 Xavura

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

Moosh-be avatar Nov 21 '12 20:11 Moosh-be

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).

Xavura avatar Nov 29 '12 13:11 Xavura

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.

Xavura avatar Nov 29 '12 13:11 Xavura