Hi, I have a very annoying issue with auto completion, here is my setup:
I have 4 libraries:
- Provider
- Slasher
- Staking
- Testing
Provider, Staking and Slasher dev-depend on Testing, but Testing also depend on all of them (to do testing stuff for them).
Provider was dev-depending on Slasher before I made the Testing library, but I removed it.
Sorry if thats confusing, hopefully will be less confusing from now
In Testing I need to import a struct from Provider, the issue is it doesn't give me auto completion for this struct (and the whole Provider library), when I hover over this struct, it say {unknown}, but everything else works.
So it gives me error when I use wrong type, it gives me errors when the struct missing fields, cargo doesn't complain, etc.
But for some reason the auto completion just ignores the Provider library completely, but rust-analyzer does correctly parse it and give me errors.
My first thought was its because Testing depend on Provider, and Provider dev-depend on Testing, but thats the same case for the Staking library, and the auto completion works perfectly fine for Staking.
My second thought was maybe cache is involved? because I have 2 libraries which previously dev-depend on other libraries, and the auto completion issue is for both of those, but other 2 libraries didn't previously depend on any other library, and they don't have this issue.
But right now, all libraries only dev-depend on Testing and no other library.
I tried removing rust-analyzer, but it didn't work, is there a better way to maybe delete cache?
As you can see, there is no error in first line, but it doesn't find mesh_provider on the second line.