racer-rust / racer

Rust Code Completion utility
MIT License
3.36k stars 278 forks source link

Racer won't compile #1079

Closed vv9k closed 4 years ago

vv9k commented 4 years ago

Hi, i'm trying to install Racer through cargo. I've ran this command cargo +nightly install racer.

This is the error message:

   Compiling rustc-ap-rustc_errors v606.0.0
error[E0407]: method `mixed_site` is not a member of trait `server::Span`
   --> /home/wojtek/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-syntax-606.0.0/ext/proc_macro_server.rs:669:5
    |
669 | /     fn mixed_site(&mut self) -> Self::Span {
670 | |         self.mixed_site
671 | |     }
    | |_____^ not a member of trait `server::Span`

   Compiling serde_json v1.0.41
   Compiling racer-interner v0.1.0
   Compiling rls-span v0.5.2
   Compiling racer-cargo-metadata v0.1.1
error: aborting due to previous error

For more information about this error, try `rustc --explain E0407`.
error: Could not compile `rustc-ap-syntax`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `racer v2.1.28`, intermediate artifacts can be found at `/tmp/cargo-installYGbVd4`

Caused by:
  build failed

KERNEL VERSION: 5.3.7-arch1-2-ARCH

vv9k commented 4 years ago

I thought I had nightly installed... running rustup toolchain add nightly fixed the problem.