Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upassertion error: c.num == crate_map.len() as u32 #729
Comments
nikomatsakis
changed the title
assertion error
assertion error: c.num == crate_map.len() as u32
Feb 22, 2018
This comment has been minimized.
This comment has been minimized.
|
When I try in VLS, I just get "RLS: working" seemingly forever. Not sure if there's a way to see more detail. |
This comment has been minimized.
This comment has been minimized.
|
I tried |
nrc
added
the
bug
label
Feb 22, 2018
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
@nrc ah of course I totally forgot that I am using new features :) |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
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. |
This was referenced Mar 22, 2018
This comment has been minimized.
This comment has been minimized.
|
rust-lang/rust#48742 is fixed. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the fix @sinkuu ! |
nikomatsakis commentedFeb 22, 2018
•
edited
I am using the RLS, setup in emacs. I get this error:
when running on the
mathemarepository (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.