-
Notifications
You must be signed in to change notification settings - Fork 181
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
rust-mode doesn't find rustfmt by default #450
Comments
I too remember getting this error message: I think your approach to fix the issue is fine. More approaches follow.
As for the README or code changes, I suspect this repo maintainers would be glad to consider/accept PRs with the improvements. Or consider adding a Wiki note on this. Though might be Discussions, if enabled, could be a better place for the topic we're in now. |
We've already had this discussion several times and I've also changed it several times over the last years =) As you already mentioned, this is an emacs issue not rust-mode. Have you guys tried https://github.com/purcell/exec-path-from-shell ? |
Not surprised.
I tried it, but now happily live without it. BTW, my previous message contains a link to the SO thread that suggests this package among the other things. |
I wonder why this still wasn't fixed in emacs. doom-emacs seem to have solved it. |
Looks like
I see this topic was mentioned several times on the dev/bug mailing lists and an overall impression I got:
|
I have installed rust following the guide on rusts website, and installed rust-mode through melpa. When I put the autoformat on save hook into my
.emacs
file, it failed to findrustfmt
in my~/.cargo/bin
directory even if this is part of myPATH
variable.I fixed this with creating a simlink in my
/usr/local/bin
directory, and now, it seems to work. I think it might be good to add this to README or otherwise make it work with default install.The text was updated successfully, but these errors were encountered: