-
Notifications
You must be signed in to change notification settings - Fork 256
Building failed: no method named expect_none
found for enum Option<u32>
in the current scope
#1727
Comments
You'd need to use an older nightly to compile from source ( Building any of those from source typically requires a somewhat narrow range of nightly toolchains.This happens because those auto published crate versions of the internals are just a point-in-time snapshot, and sooner or later they get out of sync with the latest compiler which is what has happened here. #1726 will fix the current state and allow using more recently nightly toolchains, but for now you'd have to use an older one |
Can we know exactly what version |
As mentioned in my last comment there's not an exact single one, but many versions of the nightly compiler that can be used across a range of weeks or sometimes even months. Now that #1726 has been merged you should be able to build RLS using a bleeding edge nightly again. In cases where compilation fails against one of the AP crates, one approach to find a nightly that can be used is to look at the specific version (branch or tag) of racer and/or rustfmt which the version of RLS you're working with depends on. For example, RLS at 78a36bd depended on racer v2.1.44, and looking at the toolchain file for racer v2.1.44 shows |
I tried to build rls with
cargo +nightly build --release --locked
, but got the following errors:The commit I built with is 78a36bd.
Versions:
I'm new to rust development, anyone can help?
The text was updated successfully, but these errors were encountered: