-
Notifications
You must be signed in to change notification settings - Fork 24
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
Don't default to hardcoded absolute paths #59
Comments
Hello, Of course, that's what we planned first! Sadly, it turned not that simple, at least for OSX, and would have required a lot of users fiddling. In the end, we turned to settings, providing explicit pathes that anyone can change. About And if I focus on linux only, I highly doubt that there's a common sensible place that all distro use to install things either. Not even talking about when compiling things by hand. Lastly, from experience, we had a LOT of issues where users put directories instead of the full path in the settings field for racer. Even when showing explicit requirements, users get confused. I'm a bit scared of what might happen if they dont even SEE a real path there. So hardcoded default values feel just as sensible (providing explicit requirements) as system guessed paths that wont ever work for a lot of users. Anyway, if you're confident it's a better option, then you're welcome to change it and provide a pull request. |
I completely undestand. I still think there's a better solution though. For the racer tool you could use a 2 steps process where you first run Same for |
We would happily consider a robust pull request. |
This is a grip point for me because I am synchronizing my atom setting between an OS X machine and a Linux machine, and hard coded path do not play well here ... I could give it a try, but I am not sure I understood all the constraints here. What is the problem with having I think this is better than relying on |
Happily, this changed a year ago: http://blog.atom.io/2016/03/17/atom-1-6-and-1-7-beta.html#environment-patching-on-os-x It's now common for Atom packages to read from the environment. I'll try to find time for a PR. Very much hoping someone can beat me to it. :) @Luthaf I have the same problem: my Atom config is shared between Mac and Linux. Everything works except for this package. |
Looks like the PATH fix is already written: #60 |
Since the dawn of time Unix supported searching for binary in
$PATH
. Please just useracer
as the default value for the utility instead of/usr/local/bin/racer
which is still worse than the standard/usr/bin/racer
.Also maybe also use
/usr/src/rust/src
? Any official package, when provided by a Linux distro, would use this path anyway.Thanks!
The text was updated successfully, but these errors were encountered: