rust-lang / rust-lang/rust-mode
rust-mode doesn't find rustfmt by default
Nobody has claimed this yet.
- Dominant language
- Emacs Lisp
- Stars
- 1.3k
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
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 find rustfmt in my ~/.cargo/bin directory even if this is part of my PATH 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the autoformat-on-save setup from the README and inspect how rust-mode locates rustfmt relative to ~/.cargo/bin and PATH. Compare the default-install behavior with the /usr/local/bin symlink workaround; done means a standard Rust install is found or the README documents the required setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, emacs-lisp, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100