Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kaener opened this issue Aug 26, 2012 · 4 comments
Open

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

kaener opened this issue Aug 26, 2012 · 4 comments
Milestone

Comments

@kaener
Copy link

kaener commented Aug 26, 2012

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

@Xavura
Copy link
Collaborator

Xavura commented Sep 1, 2012

That's actually a pretty good translation.

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

@Moosh-be
Copy link

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

@Xavura
Copy link
Collaborator

Xavura commented Nov 29, 2012

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
Copy link
Collaborator

Xavura commented Nov 29, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants