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

A symlink at /usr/local/bin/racer that points to wherever your racer binary is does not work. #40

Closed
nelsonjchen opened this issue Jun 24, 2015 · 2 comments

Comments

@nelsonjchen
Copy link

Hmm, I was wondering why everything appeared to work from the command line but not in Atom. I was also wondering why I remember it working before whatever I was doing now. Apparently, I had copied the binary, not a symlink in this newer installation I've done.

Anyway, a symlink at /usr/local/bin/racer that points to wherever the racer binary may be placed after compilation doesn't appear to work. My coffeescript skills are non-existent but I bet it has something to do with this.

@alkama
Copy link
Contributor

alkama commented Jun 24, 2015

Hello @nelsonjchen,
Indeed we didn't assume the path provided would link to a symbolic one.

The change is in fact to be done the line above the one you cite
the

stats = fs.lstatSync(conf_bin);

should become:

stats = fs.statSync(conf_bin);

to stat the file that the symlink refers to instead of stat-ing the link itself.

I'll correct this tonight.

@nelsonjchen
Copy link
Author

Great! Thank you.

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

No branches or pull requests

2 participants