Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

RLS isn't able to suggest anything from crates anymore, it suggests a set of random symbols instead #1017

Closed
@Tomcc

Description

@Tomcc

Hi,
First of all, I'm not an expert in RLS whatsoever so please excuse me if this turns out to be a setup issue on my side!

My setup is:

  • Rust nightly
  • Windows 10
  • VSCode + official extension
  • rls-preview from rustup

The issue is that well, autocomplete stopped working entirely 😄
Even in small ~400 lines single file projects , autocomplete only seems to work on std types and only in the first chained function call.
Basic stuff like suggesting .unwrap() after a result, or autocompleting anything from any crate I tried won't work.
What is worse is that rather than showing nothing like previous well behaved versions, RLS will show what looks like absolutely unrelated stuff!

As a test, I've reverted to nightly-2018-06-10 (called "old" below) and it shows a marked improvement.

Some examples:
old: shows nothing. Disappointing, but it's hard to deduce that that's a Vec<Receiver<String>> even by looking at it.
new:
image

I've tried the same in trivial cases eg. autocompleting an i32 and that will also show all kinds of weird macros.

old: shows correct autocomplete (socket(), raw, destroy())
new:
image

and even on a simple project:
old: correctly completes each section of this whole sequence:

    let r = Regex::from_str("test").unwrap();
    r.find("testtest").take().unwrap().end;

new:
it only shows this and then more random, wrong autocompletes from std if you go on.
image

For now I'll keep staying on the old version so RLS is not a nuisance, but there's a chance that this is a legit regression and you might want to know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions