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

racer failed on nightly rustc 1.47.0-nightly (8e21bd063 2020-08-14) #138

Closed
gotope opened this issue Aug 15, 2020 · 2 comments
Closed

racer failed on nightly rustc 1.47.0-nightly (8e21bd063 2020-08-14) #138

gotope opened this issue Aug 15, 2020 · 2 comments

Comments

@gotope
Copy link

gotope commented Aug 15, 2020

macOS, emacs26.3, nightly-x86_64-apple-darwin unchanged - rustc 1.47.0-nightly (8e21bd063 2020-08-14)

$ls $RUST_SRC_PATH/..
Cargo.lock library
$ echo $RUST_SRC_PATH
/Users/pok/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library
$ls $RUST_SRC_PATH/
alloc panic_unwind rustc-std-workspace-alloc stdarch
backtrace proc_macro rustc-std-workspace-core term
core profiler_builtins rustc-std-workspace-std test
panic_abort rtstartup std unwind

error info
Unable to find libstd under RUST_SRC_PATH. N.B. RUST_SRC_PATH variable needs to point to the src directory inside a rust checkout e.g. "/home/foouser/src/rust/src". Current value ""/Users/pok/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/libstd""

@jonas-hagen
Copy link

Same problem here. This is caused by recent changes in rust source paths and racer not yet being aware of it: racer-rust/racer#1125

@demont93
Copy link

Changing rust-src-path from
"$(rustc --print sysroot)/lib/rustlib/src/rust/src"
to
"$(rustc --print sysroot)/lib/rustlib/src/rust/library"
fixed it for me.

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

3 participants