racer-rust / racer

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

Racer does not autocomplete code from prelude #1033

Open mdnttns opened 5 years ago

mdnttns commented 5 years ago

Racer v2.1.21 does not autocomplete code if I don't specify the full path to the part in Rust prelude.

There is no output when I run this command in a terminal: racer complete Vec::

But in this case racer returns autocompletion for Vec: racer complete std::vec::Vec

sonng commented 4 years ago

I’m on v2.1.28, and I have the same result.

Is this an issue or it’s working as intended?

jmegner commented 4 years ago

I believe I have the same issue using RLS v1.38.0 in VS Code. In particular, I had to add a "use std::core::Into;" to get into() to be suggested for an OsString object.