defuz / RustAutoComplete

A SublimeText binding for RACER (Rust auto completion tool)
MIT License
105 stars 20 forks source link

Allow CARGO_HOME to be set in config #37

Open lorenz opened 8 years ago

lorenz commented 8 years ago

With a Multirust-rs/Rustup installation, the search path is no longer necessary, instead there is CARGO_HOME, which is needed to enable autocompletion on third-party crates. Can RustAutoComplete support that?

dchammond commented 8 years ago

@lorenz I too am using a rustup installation. Can you show me what user preferences you set to allow this extension to keep working?

lorenz commented 8 years ago

@dchammond Are you using my fork? If yes, you can use

{
  "racer": "/home/your_user/.cargo/bin/racer",
  "cargo_home": "/home/your_user/.cargo",
  "search_paths": [
    "/wherever/you/clone/rust"
  ]
}

You need to have clone of the Rust repository for the autocompletion of the standard library to work and put its location into search_paths.