I'm new to rust, and trying making a small app for practicing, but every time i create a new module with file unme.rs, and refer to it with mod unme in root, while vscode and rust-analyzer in rustup are fine, RA extension keep displaying file not included in module tree rust-analyzer (unlinked-file) and blocking another work like code hinting.
It drives me nut, i try all i can think, do dry build with Cargo, change to old file path style..etc, it's still yelling at me. And even more strange, somehow the extension depicts both uppercase and snake case in file name, lead to it forces to have both name its root file, in my case is it needs to see mod unme and mod Unme in main.rs,
I don't know me or something happend with RA extentsion, either, but i kinda stress. Maybe put everything in main.rs root is recommended ?!
Hi, yes, normal way it should like you said, but problem is RA extension, it doesn't recognize module name and blocking that module from vscode, like i say above, if i delete the uppercase one then extension can't see that module, tho Cargo can still build and run fine, and therefore issue the unlinked-file and that file complete treats as text file in vscode, let alone main.rs