RustAutoComplete icon indicating copy to clipboard operation
RustAutoComplete copied to clipboard

Allow CARGO_HOME to be set in config

Open lorenz opened this issue 8 years ago • 2 comments

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?

lorenz avatar May 12 '16 17:05 lorenz

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

dchammond avatar May 30 '16 18:05 dchammond

@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.

lorenz avatar May 30 '16 19:05 lorenz