Stream: t-compiler/rust-analyzer

Topic: Getting rust-analyzer & vscode working with rapier


rezuralos rezurally (Jun 19 2021 at 05:29, on Zulip):

Hey all.

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.

Florian Diebold (Jun 19 2021 at 06:47, on Zulip):

I would recommend trying to create a more minimal version of the same project structure to hopefully reproduce it

rezuralos rezurally (Jun 19 2021 at 20:44, on Zulip):

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

Jonas Schievink [he/him] (Jun 19 2021 at 21:29, on Zulip):

we should be getting this info from cargo

rezuralos rezurally (Jun 19 2021 at 23:40, on Zulip):

It appears to be registered correctly (path is correct).

rezuralos rezurally (Jun 20 2021 at 06:33, on Zulip):

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..

rezuralos rezurally (Jun 20 2021 at 06:34, on Zulip):

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..)

Last update: Jul 29 2021 at 08:45UTC