Open h3poteto opened 3 years ago
I had the same issue just moments ago, and I even tried to clone the rust source repo.
So I did some investigating, and by running git log -- src/libstd
I noticed the folder was moved.
Given I had rust cloned in ~/Sources/rust/src
, I was trying (setq racer-rust-src-path "~/Sources/rust/src")
.
Therefore based on the git commit, I changed the path to (setq racer-rust-src-path "~/Sources/rust/library")
and it worked!
Thank you. But I have to clone rust source code according to your method.
How should emacs-racer solve it? I'm grateful for the workaround, but I hope the emacs-racer will eventually solve it.
it is already handled by the emacs-racer - https://github.com/racer-rust/emacs-racer/blob/master/racer.el#L93
The problem I had is that I set a custom RUST_PATH in my .zshrc file. (https://github.com/racer-rust/emacs-racer/blob/master/racer.el#L88)
When I run racer in emacs, it says an error.
There is no
libstd
in library directory. On the contrary, there is no file calledlibstd
in the /.rustup` directory.This issue is similar https://github.com/racer-rust/emacs-racer/issues/146 .