After closing vscode and reopening the project Rust analyzer fails to locate a module

⚓ Rust    📅 2025-06-21    👤 surdeus    👁️ 7      

surdeus

Warning

This post was published 53 days ago. The information described in this article may have changed.

Hello,

Yesterday I worked on a project with this structure:
Rust analyzer worked. I shut down my IDE (vscode) and the terminal session and reopened both today. Now I get a tooltip message when hovering over the code within the vm/mod.rs file:
This file is not included anywhere in the module tree, so rust-analyzer can't offer IDE services.
But I do not understand what could be the issue in the structure of my project. It is as the Rust book instructs.
Does anyone have an idea?

// lib.rs
pub mod vm;
src/
-vm/
-- mod.rs
-lib.rs
-main.rs

7 posts - 3 participants

Read full topic

🏷️ rust_feed