racer icon indicating copy to clipboard operation
racer copied to clipboard

Can't get basic autocomplete from crate (non-Git)

Open bruno-medeiros opened this issue 9 years ago • 2 comments

So I have this code:

extern crate serde_json;

use serde_json::Value;

fn main() {
    let x = Value::Null;
}

with Cargo.toml:

[package]
name = "hello_world"
version = "0.0.1"

[dependencies]
serde = "0.8.0"
serde_json = "0.8"

And I don't seem to get any completion nor find-definition related to serde_json, Value, etc..

Happens with either latest racer from master or from crates.io . Is this case supposed to work? I think it used to work some time ago, but I'm not sure.

bruno-medeiros avatar Nov 03 '16 16:11 bruno-medeiros

Does it work if you specify serde_json with a 3-part version in Cargo.toml?

TedDriggs avatar Jun 13 '17 20:06 TedDriggs

@TedDriggs I have the csv dependency in Cargo.toml, but racer does not find any completion for it when I ran it through emacs with spacemacs and in terminal.

weaming avatar Oct 08 '18 06:10 weaming