No hints or autocomplete

Got back to Windows 10 2004 build and am experiencing lack of layovers while moving the mouse pointer over definitions. I last solved a related problem by disabling a custom cargo xcheck command in the settings.

Using Visual Studio Code.

Current but related settings:

{
    "rust-analyzer.discoverProjectRunner": null,
    "rust-analyzer.linkedProjects": [],
    "rust-analyzer.restartServerOnConfigChange": true
}

There is no log, just normal emitted problems from rustc.

This rocks! Aw yeah! No completion or inlay hints yet.

Are we hint yet? Let's see if going to Windows 10 22H2 works.

image

Update (9/4/2024 11:07 AM):

Updated to Windows 10 22H2:

Edition Windows 10 Home Single Language
Version 22H2
Installed on ‎9/‎3/‎2024
OS build 19045.4780
Experience Windows Feature Experience Pack 1000.19060.1000.0

Issue not solved.

No idea how to solve this.

Update: the only solution I found was to use JetBrains RustRover instead of Visual Studio Code

I can say that for me in any IDE Rust autocomplete is broken more or less half the time. Much good it is to use a statically typed language.

Maybe somebody should work on that in some of the regular releases?

cargo install cargo-expand

will get you a nightly build of cargo additional and all features will work. Check your toml file and add

lsp-rs crate 
cargo add lsp-rs

Gaurav

I did this and I got an infinite number of error messages like this:

  --> /Users/alpercugun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/net2-0.2.39/src/tcp.rs:18:5
   |
18 | use sys::c;
   |     ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0432]: unresolved import `sys`
  --> /Users/alpercugun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/net2-0.2.39/src/udp.rs:18:5
   |
18 | use sys::c;
   |     ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0432]: unresolved import `sys`
  --> /Users/alpercugun/.cargo/registry/src/index.crates.io-6f17d22bba15001f/net2-0.2.39/src/socket.rs:20:5
   |

it looks like lsp-rs is using rust 2015 for some reason

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.