edubkendo / atom-racer

Intelligent code completion for Rust in the Atom Editor. Requires Racer.
MIT License
115 stars 24 forks source link

Method completion not working? #68

Open jackwilsdon opened 8 years ago

jackwilsdon commented 8 years ago

I'm not entirely sure what this type of completion is called, however it doesn't seem to be working (does racer even support it?).

Here's the code I'm using:

fn main() {
  let a: [i32, 3] = [1, 2, 3];

  println!("Length: {}", a.len());
}

If I delete .len() from the println! and type a dot, I'd expect the completion to list all of the methods I can call on the array, however nothing happens.

I can confirm the package is working to some extent, as completion for things like std::[anything] works.

Here are the versions of rustc, cargo and racer I am running:

rustc 1.8.0-beta.2 (2879d940a 2016-03-22)
cargo 0.9.0-nightly (8fc3fd8 2016-02-29)
racer 1.2.6
racer:
  racerBinPath: "/Users/jack/.cargo/bin/racer"
  rustSrcPath: "/Users/jack/.rust/src/beta/src"

There's no errors in the developer console or anywhere else I can find.

pmarcelll commented 8 years ago

This is a limitation of racer itself: https://github.com/phildawes/racer/issues/410