I just noticed emilk posted an issue about rapier & vscode & rust-analyzer. I'm interested in getting this working, or at least debugging it some.
I would recommend trying to create a more minimal version of the same project structure to hopefully reproduce it
So the point at where rust-analyzer registers a dependency is where I believe this problem lies. I will get a minimal reproduction happening, hopefully someone can point out where the code is that currently assumes (in this case) that the file to open is src/lib.rs, when it is actually ../../src/lib.rs, as indicated by the cargo.toml
we should be getting this info from cargo
It appears to be registered correctly (path is correct).
SO, I'm still working on it, but It's in the server setup code that I think the problem is.... so some people will already know how terrifying, soul destroying and plain frustrating it is. I'll at least get some better debug outputs (with file names) from a run, debugging hasnt really helped as everything is indexed by id & hidden in inscrutable hashtables etc..
Probably also found some bugs that affect debugging the server on start (doing the RA_WAIT_DBG thing causes issues with version checking hanging indefinately & probably timing out..)