-
Notifications
You must be signed in to change notification settings - Fork 255
assertion error: c.num == crate_map.len() as u32 #729
Comments
When I try in VLS, I just get "RLS: working" seemingly forever. Not sure if there's a way to see more detail. |
I tried |
I can repro and the problem is with the mathema crate when it is referencing Serde. I think it is a combination of how rustc is handling the new |
@nrc ah of course I totally forgot that I am using new features :) |
I fixed the direct cause of this by dropping the assumption that crate numbers are sequential. We no longer get this bug, but we get an even weirder one, in:
The definition of |
Sigh, I was way off-base with the above. The problem seems to be an import:
(specifically the first The crate number for structopt is |
rust-lang/rust#48742 Is the Rust issue for the missing crate thing. I'll need some guideance from compiler folk to solve that. I have a solution to non-sequential crate numbers, but it might be unnecessary if they are only non-sequential because of the missing crates. |
rust-lang/rust#48742 is fixed. |
Thanks for the fix @sinkuu ! |
I am using the RLS, setup in emacs. I get this error:
when running on the
mathema
repository (e.g., this commit)I don't know how best to reproduce otherwise -- I can try running in VSCode, but I don't have that setup.
The text was updated successfully, but these errors were encountered: