racer-rust / racer

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

Unreadable completions #1162

Closed murtyjones closed 3 years ago

murtyjones commented 3 years ago

Running the example in the readme, racer complete std::io::B, yields:

MATCH BufRead,1833,10,/Users/murtyjones/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/io/mod.rs,Trait,pub trait BufRead: Read
MATCH Bytes,2461,11,/Users/murtyjones/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/io/mod.rs,Struct,pub struct Bytes<R>
MATCH BufReader,48,11,/Users/murtyjones/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/io/buffered/bufreader.rs,Struct,pub struct BufReader<R>
MATCH BufWriter,69,11,/Users/murtyjones/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/io/buffered/bufwriter.rs,Struct,pub struct BufWriter<W: Write>

which I'm guessing isn't the intended format of the output (if it is, it's hard to read)

macOS Catalina 10.15.7 rustc 1.52.0-nightly (caca2121f 2021-03-05) racer 2.1.44 echo $RUST_SRC_PATH: /Users/murtyjones/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library

murtyjones commented 3 years ago

From reading around it seems that this is the intended output, I just found it hard to read