Rust-analyzer's intellisense not working

I have got project hierarchy like this

The issue I am facing is that intellisense works fine in main.rs and in mod.rs for user module but doesn't work for model.rs which is a module of user module.

Hard to help without code, but have you made sure there's a mod model; inside src/user/mod.rs?

there is mod model in mod.rs and mod user in main.rs. Forum doesn't let me attach more than one media file since I am a new user
mod.rs

You can (and should) copy-paste code as text, not images. Enclose it in triple backticks to preserve formatting and get syntax highlighting:

```
fn main() {
    println!("hello, world");
}
```

results in

fn main() {
    println!("hello, world");
}

thanks for the suggestion

If you run cargo check in a terminal, does it produce any errors? If so, what are they (as text, please)?

If code isn't being compiled, for whatever reason, rust-analyzer won't be able to help you with it as much.

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.