Replies: 1 comment
-
Not answering your question but #17534 should fix this. Mapping types back to syntax isnt really possible for us right now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
rust-analyzer crashes often in our large Rust codebase at work, and it's often a pain for me to figure out exactly what code caused the crash.
Here's an example of such a crash from Zed's LSP logs:
I'm building rust-analyzer from source to try and attempt to fix or remedy these errors as I'm encountering them. From a
Ty<Interner>
and theHirDatabase
, is there a way to figure out exactly where in the original source code this type was referenced? Or some other debug utility to add to rust-analyzer to get a better sense of where it's failing?I'm currently using
ty.display(db)
to at least get an idea of what type caused the error, but I'm sometimes getting{unknown}
.Beta Was this translation helpful? Give feedback.
All reactions