Skip to content

Instantly share code, notes, and snippets.

@Turupawn
Created May 2, 2025 18:58
Show Gist options
  • Save Turupawn/49b02b00bb91b2501788c0a909662144 to your computer and use it in GitHub Desktop.
Save Turupawn/49b02b00bb91b2501788c0a909662144 to your computer and use it in GitHub Desktop.
Error trying to install vs code language server
$ cargo install --git https://github.com/ethereum/fe.git fe-language-server
Updating git repository `https://github.com/ethereum/fe.git`
Installing fe-language-server v0.26.0 (https://github.com/ethereum/fe.git#72622894)
Updating crates.io index
Updating git repository `https://github.com/micahscopes/async-lsp`
Updating git repository `https://github.com/salsa-rs/salsa`
Locking 265 packages to latest compatible versions
Adding codespan-reporting v0.11.1 (available: v0.12.0)
Adding cranelift-entity v0.115.1 (available: v0.119.0)
Adding derive_more v1.0.0 (available: v2.0.1)
Downloaded rust-embed-utils v8.7.0
Downloaded event-listener-strategy v0.5.4
Downloaded synstructure v0.13.2
Downloaded signal-hook-registry v1.4.5
Downloaded foldhash v0.1.5
Downloaded boxcar v0.2.11
Downloaded smallvec v2.0.0-alpha.11
Downloaded sha2 v0.10.9
Downloaded errno v0.3.11
Downloaded rust-embed-impl v8.7.0
Downloaded thin-vec v0.2.14
Downloaded clap_derive v4.5.32
Downloaded async-executor v1.13.2
Downloaded smallvec v1.15.0
Downloaded quote v1.0.40
Downloaded anyhow v1.0.98
Downloaded once_cell v1.21.3
Downloaded icu_locid_transform_data v1.5.1
Downloaded value-bag v1.11.1
Downloaded ordermap v0.5.7
Downloaded serde v1.0.219
Downloaded insta v1.43.1
Downloaded indexmap v2.9.0
Downloaded hashbrown v0.15.3
Downloaded borsh v1.5.7
Downloaded socket2 v0.5.9
Downloaded serde_derive v1.0.219
Downloaded proc-macro2 v1.0.95
Downloaded icu_normalizer_data v1.5.1
Downloaded clap_builder v4.5.37
Downloaded clap v4.5.37
Downloaded portable-atomic v1.11.0
Downloaded async-std v1.13.1
Downloaded icu_properties_data v1.5.1
Downloaded syn v2.0.101
Downloaded libc v0.2.172
Downloaded tokio v1.44.2
Downloaded rust-embed v8.7.0
Downloaded 38 crates (5.0 MB) in 1.49s
Compiling proc-macro2 v1.0.95
Compiling unicode-ident v1.0.18
Compiling autocfg v1.4.0
Compiling pin-project-lite v0.2.16
Compiling crossbeam-utils v0.8.21
Compiling cfg-if v1.0.0
Compiling once_cell v1.21.3
Compiling futures-core v0.3.31
Compiling typenum v1.18.0
Compiling version_check v0.9.5
Compiling futures-io v0.3.31
Compiling libc v0.2.172
Compiling smallvec v1.15.0
Compiling parking v2.2.1
Compiling stable_deref_trait v1.2.0
Compiling bitflags v2.9.0
Compiling semver v1.0.26
Compiling fastrand v2.3.0
Compiling rustix v0.38.44
Compiling linux-raw-sys v0.4.15
Compiling writeable v0.5.5
Compiling icu_locid_transform_data v1.5.1
Compiling tracing-core v0.1.33
Compiling parking_lot_core v0.9.10
Compiling litemap v0.7.5
Compiling generic-array v0.14.7
Compiling futures-lite v2.6.0
Compiling icu_properties_data v1.5.1
Compiling slab v0.4.9
Compiling lock_api v0.4.12
Compiling async-task v4.7.1
Compiling scopeguard v1.2.0
Compiling memchr v2.7.4
Compiling value-bag v1.11.1
Compiling rustc_version v0.4.1
Compiling allocator-api2 v0.2.21
Compiling foldhash v0.1.5
Compiling equivalent v1.0.2
Compiling icu_normalizer_data v1.5.1
Compiling concurrent-queue v2.5.0
Compiling quote v1.0.40
Compiling log v0.4.27
Compiling logos-codegen v0.15.0
Compiling atomic-waker v1.1.2
Compiling lazy_static v1.5.0
Compiling piper v0.2.4
Compiling event-listener v5.4.0
Compiling syn v2.0.101
Compiling hashbrown v0.15.3
Compiling crossbeam-epoch v0.9.18
Compiling fnv v1.0.7
Compiling cpufeatures v0.2.17
Compiling regex-syntax v0.8.5
Compiling rayon-core v1.12.1
Compiling event-listener-strategy v0.5.4
Compiling heck v0.5.0
Compiling beef v0.5.2
Compiling async-lock v3.4.0
Compiling async-channel v2.3.1
Compiling hashbrown v0.14.5
Compiling futures-sink v0.3.31
Compiling same-file v1.0.6
Compiling pin-utils v0.1.0
Compiling futures-channel v0.3.31
Compiling crossbeam-deque v0.8.6
Compiling parking_lot v0.12.3
Compiling blocking v1.6.1
Compiling walkdir v2.5.0
Compiling signal-hook-registry v1.4.5
Compiling crypto-common v0.1.6
Compiling block-buffer v0.10.4
Compiling num-traits v0.2.19
Compiling futures-task v0.3.31
Compiling digest v0.10.7
Compiling either v1.15.0
Compiling write16 v1.0.0
Compiling serde v1.0.219
Compiling regex-syntax v0.6.29
Compiling utf16_iter v1.0.5
Compiling sha2 v0.10.9
Compiling portable-atomic v1.11.0
Compiling utf8_iter v1.0.4
Compiling indexmap v2.9.0
Compiling rustc-hash v1.1.0
Compiling text-size v1.1.1
Compiling countme v3.0.1
Compiling rust-embed-utils v8.7.0
Compiling rustc-hash v2.1.1
Compiling camino v1.1.9
Compiling paste v1.0.15
Compiling fe-parser v0.26.0 (/home/lenn/.cargo/git/checkouts/fe-18014dd957b80a1f/7262289/crates/parser)
Compiling overload v0.1.1
Compiling nu-ansi-term v0.46.0
Compiling rowan v0.16.1
Compiling dashmap v6.1.0
Compiling hashlink v0.10.0
Compiling rayon v1.10.0
Compiling async-executor v1.13.2
Compiling tracing-log v0.2.0
Compiling sharded-slab v0.1.7
Compiling crossbeam-queue v0.3.12
Compiling thread_local v1.1.8
Compiling boxcar v0.2.11
Compiling serde_json v1.0.140
Compiling utf8parse v0.2.2
Compiling smallvec v2.0.0-alpha.11
Compiling unwrap-infallible v0.1.5
Compiling percent-encoding v2.3.1
Compiling salsa-macro-rules v0.19.0 (https://github.com/salsa-rs/salsa?rev=296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc#296a8c78)
Compiling thin-vec v0.2.14
Compiling anstyle-parse v0.2.6
Compiling form_urlencoded v1.2.1
Compiling num-integer v0.1.46
Compiling ordermap v0.5.7
Compiling regex-automata v0.4.9
Compiling anstyle-query v1.1.2
Compiling nu-ansi-term v0.50.1
Compiling regex-automata v0.1.10
Compiling similar v2.7.0
Compiling cranelift-bitset v0.115.1
Compiling colorchoice v1.0.3
Compiling is_terminal_polyfill v1.70.1
Compiling itoa v1.0.15
Compiling ryu v1.0.20
Compiling thiserror v2.0.12
Compiling smol_str v0.3.2
Compiling anstyle v1.0.10
Compiling cranelift-entity v0.115.1
Compiling num-bigint v0.4.6
Compiling anstream v0.6.18
Compiling async-fs v2.1.2
Compiling socket2 v0.5.9
Compiling mio v1.0.3
Compiling anyhow v1.0.98
Compiling dot2 v1.0.0
Compiling matchers v0.1.0
Compiling insta v1.43.1
Compiling strsim v0.11.1
Compiling event-listener v2.5.3
Compiling bytes v1.10.1
Compiling synstructure v0.13.2
Compiling tower-service v0.3.3
Compiling bitflags v1.3.2
Compiling regex v1.11.1
Compiling tower-layer v0.3.3
Compiling clap_lex v0.7.4
Compiling dogged v0.2.0
Compiling fe-hir-analysis v0.26.0 (/home/lenn/.cargo/git/checkouts/fe-18014dd957b80a1f/7262289/crates/hir-analysis)
Compiling clap_builder v4.5.37
Compiling ena v0.14.3
Compiling waitpid-any v0.2.1
Compiling async-channel v1.9.0
Compiling itertools v0.14.0
Compiling kv-log-macro v1.0.7
Compiling if_chain v1.0.2
Compiling termcolor v1.4.1
Compiling unicode-width v0.1.14
Compiling futures-timer v3.0.3
Compiling codespan-reporting v0.11.1
Compiling tower v0.5.2
Compiling patricia_tree v0.9.0
Compiling glob v0.3.2
Compiling tracing-attributes v0.1.28
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.7.5
Compiling zerovec-derive v0.10.3
Compiling displaydoc v0.2.5
Compiling icu_provider_macros v1.5.0
Compiling futures-macro v0.3.31
Compiling serde_derive v1.0.219
Compiling derive_more-impl v1.0.0
Compiling logos-derive v0.15.0
Compiling salsa-macros v0.19.0 (https://github.com/salsa-rs/salsa?rev=296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc#296a8c78)
Compiling rust-embed-impl v8.7.0
Compiling tokio-macros v2.5.0
Compiling zerofrom v0.1.6
Compiling futures-util v0.3.31
Compiling tracing v0.1.41
Compiling thiserror-impl v2.0.12
Compiling yoke v0.7.5
Compiling polling v3.7.4
Compiling logos v0.15.0
Compiling zerovec v0.10.4
Compiling tracing-subscriber v0.3.19
Compiling serde_repr v0.1.20
Compiling async-io v2.4.0
Compiling rust-embed v8.7.0
Compiling tokio v1.44.2
Compiling clap_derive v4.5.32
Compiling async-signal v0.2.10
Compiling tinystr v0.7.6
Compiling icu_collections v1.5.0
Compiling icu_locid v1.5.0
Compiling derive_more v1.0.0
Compiling salsa v0.19.0 (https://github.com/salsa-rs/salsa?rev=296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc#296a8c78)
Compiling async-process v2.3.0
Compiling async-net v2.0.0
Compiling icu_provider v1.5.0
Compiling tracing-tree v0.4.0
Compiling smol v2.0.2
Compiling icu_locid_transform v1.5.0
Compiling fe-test-utils v0.1.0 (/home/lenn/.cargo/git/checkouts/fe-18014dd957b80a1f/7262289/crates/test-utils)
Compiling futures-executor v0.3.31
Compiling futures v0.3.31
Compiling async-global-executor v2.4.1
Compiling futures-batch v0.6.1
Compiling async-std v1.13.1
Compiling icu_properties v1.5.1
Compiling fe-common v0.26.0 (/home/lenn/.cargo/git/checkouts/fe-18014dd957b80a1f/7262289/crates/common)
Compiling act-locally v0.1.1
Compiling clap v4.5.37
Compiling fe-hir v0.26.0 (/home/lenn/.cargo/git/checkouts/fe-18014dd957b80a1f/7262289/crates/hir)
Compiling icu_normalizer v1.5.0
Compiling async-compat v0.2.4
Compiling idna_adapter v1.2.0
error[E0658]: cannot cast `dyn HirDb` to `dyn InputDb`, trait upcasting coercion is experimental
--> crates/hir/src/hir_def/module_tree.rs:204:82
|
204 | ...t, self.input_ingot.root_file(self.db));
| ^^^^^^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&'db (dyn HirDb + 'static)` into `&(dyn InputDb + 'static)`
error[E0658]: cannot cast `dyn HirDb` to `dyn InputDb`, trait upcasting coercion is experimental
--> crates/hir/src/hir_def/module_tree.rs:225:47
|
225 | let root = self.input_ingot.root_file(self.db);
| ^^^^^^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&'db (dyn HirDb + 'static)` into `&(dyn InputDb + 'static)`
Compiling idna v1.0.3
error[E0658]: cannot cast `dyn LowerHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/lower/mod.rs:38:34
|
38 | let ingot = module_tree_impl(db, ingot).ingot;
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&(dyn LowerHirDb + 'static)` into `&(dyn HirDb + 'static)`
error[E0658]: cannot cast `dyn LowerHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/lower/mod.rs:39:26
|
39 | map_file_to_mod_impl(db, ingot, file)
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&(dyn LowerHirDb + 'static)` into `&(dyn HirDb + 'static)`
error[E0658]: cannot cast `dyn LowerHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/lower/mod.rs:47:22
|
47 | scope_graph_impl(db, top_mod)
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&'db (dyn LowerHirDb + 'static)` into `&(dyn HirDb + 'static)`
error[E0658]: cannot cast `dyn LowerHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/lower/mod.rs:52:22
|
52 | module_tree_impl(db, ingot)
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&(dyn LowerHirDb + 'static)` into `&(dyn HirDb + 'static)`
error[E0658]: cannot cast `dyn SpannedHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/span/transition.rs:132:32
|
132 | let root = top_mod_ast(db, top_mod).syntax().clone();
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&(dyn SpannedHirDb + 'static)` into `&(dyn HirDb + 'static)`
error[E0658]: cannot cast `dyn SpannedHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/span/transition.rs:262:31
|
262 | let ast = top_mod_ast(db, *self);
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&(dyn SpannedHirDb + 'static)` into `&(dyn HirDb + 'static)`
error[E0658]: cannot cast `dyn SpannedHirDb` to `dyn HirDb`, trait upcasting coercion is experimental
--> crates/hir/src/span/mod.rs:104:33
|
104 | HirOrigin::raw(&top_mod_ast(db, item))
| ^^
|
= note: see issue #65991 <https://github.com/rust-lang/rust/issues/65991> for more information
= note: required when coercing `&(dyn SpannedHirDb + 'static)` into `&(dyn HirDb + 'static)`
Compiling url v2.5.4
Compiling lsp-types v0.95.1
For more information about this error, try `rustc --explain E0658`.
error: could not compile `fe-hir` (lib) due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `fe-language-server v0.26.0 (https://github.com/ethereum/fe.git#72622894)`, intermediate artifacts can be found at `/tmp/cargo-installFENX0p`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment