rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Fails to install from source

Open tamayotchi opened this issue 4 years ago • 8 comments

I was trying to configure rust with nvim, but when I try to install the rust-analyzer gives me the following error, what am I missing?

error[E0308]: mismatched types
  --> crates/hir-def/src/intern.rs:62:25
   |
62 |             None => Err(shard),
   |                         ^^^^^ expected struct `parking_lot::RawRwLock`, found struct `dashmap::RawRwLock`
   |
   = note: expected struct `lock_api::RwLockWriteGuard<'_, parking_lot::RawRwLock, HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>>`
              found struct `lock_api::RwLockWriteGuard<'_, dashmap::RawRwLock, hashbrown::map::HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>>`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `hir-def` due to previous error
error: failed to compile `rust-analyzer v0.0.0 (/home/juantamayo/trash/rust-analyzer/crates/rust-analyzer)`, intermediate artifacts can be found at `/home/juantamayo/trash/rust-analyzer/target`
Error: install server

Caused by:
    command exited with non-zero code `cargo install --path crates/rust-analyzer --locked --force --features force-always-assert`: 101

image

tamayotchi avatar May 22 '22 06:05 tamayotchi

Did something update your Cargo.lock perhaps? It should build with that toolchain

Veykril avatar May 22 '22 10:05 Veykril

Did something update your Cargo.lock perhaps? It should build with that toolchain

Yep, my bad, thank you so much

tamayotchi avatar May 22 '22 16:05 tamayotchi

I'm seeing the exact same compilation error when trying to bump cargo-modules' ra_ap_… dependencies to "0.0.104":

ra_ap_base_db = "0.0.104"
ra_ap_cfg = "0.0.114"
ra_ap_hir = "0.0.104"
ra_ap_ide = "0.0.104"
ra_ap_ide_db = "0.0.104"
ra_ap_paths = "0.0.104"
ra_ap_proc_macro_api = "0.0.104"
ra_ap_project_model = "0.0.104"
ra_ap_syntax = "0.0.104"
ra_ap_rust-analyzer = "0.0.104"
ra_ap_text_edit = "0.0.104"
ra_ap_vfs = "0.0.104"

@Veykril any hint as to what I'd have to do to fix it as a depender?

regexident avatar Jun 04 '22 22:06 regexident

Do you have multiple versions of lock_api in your dependencies? This is the only issue I can think of that for some reason the lock_api version dashmap uses differs from the lock_api used in hir-def. Otherwise I don't see how this issue can occur

Veykril avatar Jun 04 '22 22:06 Veykril

Hm, doesn't look like it tries to use different versions of lock_api. 🤔

Before updating rust-analyzer dependencies:

$ cargo tree | grep lock_api
│       ├── lock_api v0.4.5
│       │   ├── lock_api v0.4.5 (*)

After:

$ cargo tree | grep lock_api
│   │   │   │   ├── lock_api v0.4.7
│       ├── lock_api v0.4.7 (*)
│       │   ├── lock_api v0.4.7 (*)
│   │   ├── lock_api v0.4.7 (*)
│   │   │   ├── lock_api v0.4.7 (*)
Pruned dependency tree
$ cargo tree
cargo-modules
├── ra_ap_base_db v0.0.104
│   ├── ra_ap_profile v0.0.104
│   │   ├── countme v3.0.1
│   │   │   ├── dashmap v5.3.4
│   │   │   │   ├── lock_api v0.4.7 👈
│   │   │   │   │   └── scopeguard v1.1.0
│   │   │   │   ...
│   │   │   ...
│   │   ...
│   ...
│   └── salsa v0.17.0-pre.2
│       ├── lock_api v0.4.7 (*) 👈
│       ├── parking_lot v0.11.2
│       │   ├── lock_api v0.4.7 (*) 👈
│       │   ...
│       ...
├── ra_ap_hir v0.0.104
│   ├── ra_ap_hir_def v0.0.104
│   │   ├── lock_api v0.4.7 (*) 👈
│   │   ├── parking_lot v0.12.1
│   │   │   ├── lock_api v0.4.7 (*) 👈
│   │   │   ...
│   │   ...
│   ...
...
Full dependency tree
$ cargo tree
cargo-modules
├── anyhow v1.0.57
├── env_logger v0.9.0
│   ├── atty v0.2.14
│   │   └── libc v0.2.126
│   ├── humantime v2.1.0
│   ├── log v0.4.17
│   │   └── cfg-if v1.0.0
│   ├── regex v1.5.6
│   │   ├── aho-corasick v0.7.18
│   │   │   └── memchr v2.5.0
│   │   ├── memchr v2.5.0
│   │   └── regex-syntax v0.6.26
│   └── termcolor v1.1.3
├── indoc v1.0.6 (proc-macro)
├── json v0.12.4
├── log v0.4.17 (*)
├── petgraph v0.6.2
│   ├── fixedbitset v0.4.1
│   └── indexmap v1.8.2
│       └── hashbrown v0.11.2
│       [build-dependencies]
│       └── autocfg v1.1.0
├── ra_ap_base_db v0.0.104
│   ├── ra_ap_cfg v0.0.104
│   │   ├── ra_ap_tt v0.0.104
│   │   │   ├── ra_ap_stdx v0.0.104
│   │   │   │   ├── always-assert v0.1.2
│   │   │   │   │   └── log v0.4.17 (*)
│   │   │   │   └── libc v0.2.126
│   │   │   └── smol_str v0.1.23
│   │   │       └── serde v1.0.137
│   │   │           └── serde_derive v1.0.137 (proc-macro)
│   │   │               ├── proc-macro2 v1.0.39
│   │   │               │   └── unicode-ident v1.0.0
│   │   │               ├── quote v1.0.18
│   │   │               │   └── proc-macro2 v1.0.39 (*)
│   │   │               └── syn v1.0.96
│   │   │                   ├── proc-macro2 v1.0.39 (*)
│   │   │                   ├── quote v1.0.18 (*)
│   │   │                   └── unicode-ident v1.0.0
│   │   └── rustc-hash v1.1.0
│   ├── ra_ap_profile v0.0.104
│   │   ├── cfg-if v1.0.0
│   │   ├── countme v3.0.1
│   │   │   ├── dashmap v5.3.4
│   │   │   │   ├── cfg-if v1.0.0
│   │   │   │   ├── hashbrown v0.12.1
│   │   │   │   ├── lock_api v0.4.7
│   │   │   │   │   └── scopeguard v1.1.0
│   │   │   │   │   [build-dependencies]
│   │   │   │   │   └── autocfg v1.1.0
│   │   │   │   └── parking_lot_core v0.9.3
│   │   │   │       ├── cfg-if v1.0.0
│   │   │   │       ├── libc v0.2.126
│   │   │   │       └── smallvec v1.8.0
│   │   │   ├── once_cell v1.12.0
│   │   │   └── rustc-hash v1.1.0
│   │   ├── libc v0.2.126
│   │   ├── once_cell v1.12.0
│   │   └── ra_ap_la-arena v0.0.104
│   ├── ra_ap_stdx v0.0.104 (*)
│   ├── ra_ap_syntax v0.0.104
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── indexmap v1.8.2 (*)
│   │   ├── itertools v0.10.3
│   │   │   └── either v1.6.1
│   │   ├── once_cell v1.12.0
│   │   ├── ra_ap_parser v0.0.104
│   │   │   ├── drop_bomb v0.1.5
│   │   │   ├── ra_ap_limit v0.0.104
│   │   │   └── rustc-ap-rustc_lexer v725.0.0
│   │   │       └── unicode-xid v0.2.3
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_text_edit v0.0.104
│   │   │   ├── itertools v0.10.3 (*)
│   │   │   └── text-size v1.1.0
│   │   ├── rowan v0.15.5
│   │   │   ├── countme v3.0.1 (*)
│   │   │   ├── hashbrown v0.12.1
│   │   │   ├── memoffset v0.6.5
│   │   │   │   [build-dependencies]
│   │   │   │   └── autocfg v1.1.0
│   │   │   ├── rustc-hash v1.1.0
│   │   │   └── text-size v1.1.0
│   │   ├── rustc-ap-rustc_lexer v725.0.0 (*)
│   │   ├── rustc-hash v1.1.0
│   │   └── smol_str v0.1.23 (*)
│   ├── ra_ap_test_utils v0.0.104
│   │   ├── dissimilar v1.0.4
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── rustc-hash v1.1.0
│   │   └── text-size v1.1.0
│   ├── ra_ap_tt v0.0.104 (*)
│   ├── ra_ap_vfs v0.0.104
│   │   ├── fst v0.4.7
│   │   ├── indexmap v1.8.2 (*)
│   │   ├── ra_ap_paths v0.0.104
│   │   └── rustc-hash v1.1.0
│   ├── rustc-hash v1.1.0
│   └── salsa v0.17.0-pre.2
│       ├── crossbeam-utils v0.8.8
│       │   ├── cfg-if v1.0.0
│       │   └── lazy_static v1.4.0
│       ├── indexmap v1.8.2 (*)
│       ├── lock_api v0.4.7 (*)
│       ├── log v0.4.17 (*)
│       ├── oorandom v11.1.3
│       ├── parking_lot v0.11.2
│       │   ├── instant v0.1.12
│       │   │   └── cfg-if v1.0.0
│       │   ├── lock_api v0.4.7 (*)
│       │   └── parking_lot_core v0.8.5
│       │       ├── cfg-if v1.0.0
│       │       ├── instant v0.1.12 (*)
│       │       ├── libc v0.2.126
│       │       └── smallvec v1.8.0
│       ├── rustc-hash v1.1.0
│       ├── salsa-macros v0.17.0-pre.2 (proc-macro)
│       │   ├── heck v0.3.3
│       │   │   └── unicode-segmentation v1.9.0
│       │   ├── proc-macro2 v1.0.39 (*)
│       │   ├── quote v1.0.18 (*)
│       │   └── syn v1.0.96 (*)
│       └── smallvec v1.8.0
├── ra_ap_cfg v0.0.115
│   ├── ra_ap_tt v0.0.115
│   │   ├── ra_ap_stdx v0.0.115
│   │   │   ├── always-assert v0.1.2 (*)
│   │   │   └── libc v0.2.126
│   │   └── smol_str v0.1.23 (*)
│   └── rustc-hash v1.1.0
├── ra_ap_hir v0.0.104
│   ├── arrayvec v0.7.2
│   ├── either v1.6.1
│   ├── itertools v0.10.3 (*)
│   ├── once_cell v1.12.0
│   ├── ra_ap_base_db v0.0.104 (*)
│   ├── ra_ap_cfg v0.0.104 (*)
│   ├── ra_ap_hir_def v0.0.104
│   │   ├── anymap v0.12.1
│   │   ├── arrayvec v0.7.2
│   │   ├── bitflags v1.3.2
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── dashmap v5.3.4 (*)
│   │   ├── drop_bomb v0.1.5
│   │   ├── either v1.6.1
│   │   ├── fst v0.4.7
│   │   ├── indexmap v1.8.2 (*)
│   │   ├── itertools v0.10.3 (*)
│   │   ├── lock_api v0.4.7 (*)
│   │   ├── once_cell v1.12.0
│   │   ├── parking_lot v0.12.1
│   │   │   ├── lock_api v0.4.7 (*)
│   │   │   └── parking_lot_core v0.9.3 (*)
│   │   ├── ra_ap_base_db v0.0.104 (*)
│   │   ├── ra_ap_cfg v0.0.104 (*)
│   │   ├── ra_ap_hir_expand v0.0.104
│   │   │   ├── cov-mark v2.0.0-pre.1
│   │   │   ├── either v1.6.1
│   │   │   ├── hashbrown v0.12.1
│   │   │   ├── itertools v0.10.3 (*)
│   │   │   ├── ra_ap_base_db v0.0.104 (*)
│   │   │   ├── ra_ap_cfg v0.0.104 (*)
│   │   │   ├── ra_ap_la-arena v0.0.104
│   │   │   ├── ra_ap_limit v0.0.104
│   │   │   ├── ra_ap_mbe v0.0.104
│   │   │   │   ├── cov-mark v2.0.0-pre.1
│   │   │   │   ├── ra_ap_parser v0.0.104 (*)
│   │   │   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   │   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   │   │   ├── ra_ap_tt v0.0.104 (*)
│   │   │   │   ├── rustc-hash v1.1.0
│   │   │   │   ├── smallvec v1.8.0
│   │   │   │   └── tracing v0.1.34
│   │   │   │       ├── cfg-if v1.0.0
│   │   │   │       ├── pin-project-lite v0.2.9
│   │   │   │       ├── tracing-attributes v0.1.21 (proc-macro)
│   │   │   │       │   ├── proc-macro2 v1.0.39 (*)
│   │   │   │       │   ├── quote v1.0.18 (*)
│   │   │   │       │   └── syn v1.0.96 (*)
│   │   │   │       └── tracing-core v0.1.26
│   │   │   │           └── lazy_static v1.4.0
│   │   │   ├── ra_ap_profile v0.0.104 (*)
│   │   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   │   ├── ra_ap_tt v0.0.104 (*)
│   │   │   ├── rustc-hash v1.1.0
│   │   │   └── tracing v0.1.34 (*)
│   │   ├── ra_ap_la-arena v0.0.104
│   │   ├── ra_ap_limit v0.0.104
│   │   ├── ra_ap_mbe v0.0.104 (*)
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   ├── ra_ap_tt v0.0.104 (*)
│   │   ├── rustc-hash v1.1.0
│   │   ├── smallvec v1.8.0
│   │   └── tracing v0.1.34 (*)
│   ├── ra_ap_hir_expand v0.0.104 (*)
│   ├── ra_ap_hir_ty v0.0.104
│   │   ├── arrayvec v0.7.2
│   │   ├── chalk-ir v0.81.0
│   │   │   ├── bitflags v1.3.2
│   │   │   ├── chalk-derive v0.81.0 (proc-macro)
│   │   │   │   ├── proc-macro2 v1.0.39 (*)
│   │   │   │   ├── quote v1.0.18 (*)
│   │   │   │   ├── syn v1.0.96 (*)
│   │   │   │   └── synstructure v0.12.6
│   │   │   │       ├── proc-macro2 v1.0.39 (*)
│   │   │   │       ├── quote v1.0.18 (*)
│   │   │   │       ├── syn v1.0.96 (*)
│   │   │   │       └── unicode-xid v0.2.3
│   │   │   └── lazy_static v1.4.0
│   │   ├── chalk-recursive v0.81.0
│   │   │   ├── chalk-derive v0.81.0 (proc-macro) (*)
│   │   │   ├── chalk-ir v0.81.0 (*)
│   │   │   ├── chalk-solve v0.81.0
│   │   │   │   ├── chalk-derive v0.81.0 (proc-macro) (*)
│   │   │   │   ├── chalk-ir v0.81.0 (*)
│   │   │   │   ├── ena v0.14.0
│   │   │   │   │   └── log v0.4.17 (*)
│   │   │   │   ├── indexmap v1.8.2 (*)
│   │   │   │   ├── itertools v0.10.3 (*)
│   │   │   │   ├── petgraph v0.5.1
│   │   │   │   │   ├── fixedbitset v0.2.0
│   │   │   │   │   └── indexmap v1.8.2 (*)
│   │   │   │   ├── rustc-hash v1.1.0
│   │   │   │   └── tracing v0.1.34 (*)
│   │   │   ├── rustc-hash v1.1.0
│   │   │   └── tracing v0.1.34 (*)
│   │   ├── chalk-solve v0.81.0 (*)
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── ena v0.14.0 (*)
│   │   ├── itertools v0.10.3 (*)
│   │   ├── once_cell v1.12.0
│   │   ├── ra_ap_base_db v0.0.104 (*)
│   │   ├── ra_ap_hir_def v0.0.104 (*)
│   │   ├── ra_ap_hir_expand v0.0.104 (*)
│   │   ├── ra_ap_la-arena v0.0.104
│   │   ├── ra_ap_limit v0.0.104
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   ├── rustc-hash v1.1.0
│   │   ├── scoped-tls v1.0.0
│   │   ├── smallvec v1.8.0
│   │   ├── tracing v0.1.34 (*)
│   │   └── typed-arena v2.0.1
│   ├── ra_ap_profile v0.0.104 (*)
│   ├── ra_ap_stdx v0.0.104 (*)
│   ├── ra_ap_syntax v0.0.104 (*)
│   ├── ra_ap_tt v0.0.104 (*)
│   ├── rustc-hash v1.1.0
│   └── smallvec v1.8.0
├── ra_ap_ide v0.0.104
│   ├── cov-mark v2.0.0-pre.1
│   ├── crossbeam-channel v0.5.4
│   │   ├── cfg-if v1.0.0
│   │   └── crossbeam-utils v0.8.8 (*)
│   ├── dot v0.1.4
│   ├── either v1.6.1
│   ├── itertools v0.10.3 (*)
│   ├── oorandom v11.1.3
│   ├── pulldown-cmark v0.9.1
│   │   ├── bitflags v1.3.2
│   │   ├── memchr v2.5.0
│   │   └── unicase v2.6.0
│   │       [build-dependencies]
│   │       └── version_check v0.9.4
│   ├── pulldown-cmark-to-cmark v10.0.1
│   │   └── pulldown-cmark v0.9.1 (*)
│   ├── ra_ap_cfg v0.0.104 (*)
│   ├── ra_ap_hir v0.0.104 (*)
│   ├── ra_ap_ide_assists v0.0.104
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── either v1.6.1
│   │   ├── itertools v0.10.3 (*)
│   │   ├── ra_ap_hir v0.0.104 (*)
│   │   ├── ra_ap_ide_db v0.0.104
│   │   │   ├── arrayvec v0.7.2
│   │   │   ├── cov-mark v2.0.0-pre.1
│   │   │   ├── either v1.6.1
│   │   │   ├── fst v0.4.7
│   │   │   ├── indexmap v1.8.2 (*)
│   │   │   ├── itertools v0.10.3 (*)
│   │   │   ├── once_cell v1.12.0
│   │   │   ├── ra_ap_base_db v0.0.104 (*)
│   │   │   ├── ra_ap_hir v0.0.104 (*)
│   │   │   ├── ra_ap_limit v0.0.104
│   │   │   ├── ra_ap_parser v0.0.104 (*)
│   │   │   ├── ra_ap_profile v0.0.104 (*)
│   │   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   │   ├── ra_ap_text_edit v0.0.104 (*)
│   │   │   ├── rayon v1.5.3
│   │   │   │   ├── crossbeam-deque v0.8.1
│   │   │   │   │   ├── cfg-if v1.0.0
│   │   │   │   │   ├── crossbeam-epoch v0.9.8
│   │   │   │   │   │   ├── cfg-if v1.0.0
│   │   │   │   │   │   ├── crossbeam-utils v0.8.8 (*)
│   │   │   │   │   │   ├── lazy_static v1.4.0
│   │   │   │   │   │   ├── memoffset v0.6.5 (*)
│   │   │   │   │   │   └── scopeguard v1.1.0
│   │   │   │   │   │   [build-dependencies]
│   │   │   │   │   │   └── autocfg v1.1.0
│   │   │   │   │   └── crossbeam-utils v0.8.8 (*)
│   │   │   │   ├── either v1.6.1
│   │   │   │   └── rayon-core v1.9.3
│   │   │   │       ├── crossbeam-channel v0.5.4 (*)
│   │   │   │       ├── crossbeam-deque v0.8.1 (*)
│   │   │   │       ├── crossbeam-utils v0.8.8 (*)
│   │   │   │       └── num_cpus v1.13.1
│   │   │   │           └── libc v0.2.126
│   │   │   │   [build-dependencies]
│   │   │   │   └── autocfg v1.1.0
│   │   │   ├── rustc-hash v1.1.0
│   │   │   └── tracing v0.1.34 (*)
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   ├── ra_ap_text_edit v0.0.104 (*)
│   │   └── rustc-hash v1.1.0
│   ├── ra_ap_ide_completion v0.0.104
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── either v1.6.1
│   │   ├── itertools v0.10.3 (*)
│   │   ├── once_cell v1.12.0
│   │   ├── ra_ap_base_db v0.0.104 (*)
│   │   ├── ra_ap_hir v0.0.104 (*)
│   │   ├── ra_ap_ide_db v0.0.104 (*)
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   ├── ra_ap_text_edit v0.0.104 (*)
│   │   ├── rustc-hash v1.1.0
│   │   └── smallvec v1.8.0
│   ├── ra_ap_ide_db v0.0.104 (*)
│   ├── ra_ap_ide_diagnostics v0.0.104
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── either v1.6.1
│   │   ├── itertools v0.10.3 (*)
│   │   ├── ra_ap_cfg v0.0.104 (*)
│   │   ├── ra_ap_hir v0.0.104 (*)
│   │   ├── ra_ap_ide_db v0.0.104 (*)
│   │   ├── ra_ap_profile v0.0.104 (*)
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   ├── ra_ap_text_edit v0.0.104 (*)
│   │   └── rustc-hash v1.1.0
│   ├── ra_ap_ide_ssr v0.0.104
│   │   ├── cov-mark v2.0.0-pre.1
│   │   ├── itertools v0.10.3 (*)
│   │   ├── ra_ap_hir v0.0.104 (*)
│   │   ├── ra_ap_ide_db v0.0.104 (*)
│   │   ├── ra_ap_parser v0.0.104 (*)
│   │   ├── ra_ap_syntax v0.0.104 (*)
│   │   ├── ra_ap_text_edit v0.0.104 (*)
│   │   └── rustc-hash v1.1.0
│   ├── ra_ap_profile v0.0.104 (*)
│   ├── ra_ap_stdx v0.0.104 (*)
│   ├── ra_ap_syntax v0.0.104 (*)
│   ├── ra_ap_text_edit v0.0.104 (*)
│   ├── rustc-hash v1.1.0
│   ├── tracing v0.1.34 (*)
│   └── url v2.2.2
│       ├── form_urlencoded v1.0.1
│       │   ├── matches v0.1.9
│       │   └── percent-encoding v2.1.0
│       ├── idna v0.2.3
│       │   ├── matches v0.1.9
│       │   ├── unicode-bidi v0.3.8
│       │   └── unicode-normalization v0.1.19
│       │       └── tinyvec v1.6.0
│       │           └── tinyvec_macros v0.1.0
│       ├── matches v0.1.9
│       ├── percent-encoding v2.1.0
│       └── serde v1.0.137 (*)
├── ra_ap_ide_db v0.0.104 (*)
├── ra_ap_paths v0.0.104
├── ra_ap_proc_macro_api v0.0.104
│   ├── memmap2 v0.5.4
│   │   └── libc v0.2.126
│   ├── object v0.28.4
│   │   └── memchr v2.5.0
│   ├── ra_ap_paths v0.0.104
│   ├── ra_ap_profile v0.0.104 (*)
│   ├── ra_ap_stdx v0.0.104 (*)
│   ├── ra_ap_tt v0.0.104 (*)
│   ├── serde v1.0.137 (*)
│   ├── serde_json v1.0.81
│   │   ├── indexmap v1.8.2 (*)
│   │   ├── itoa v1.0.2
│   │   ├── ryu v1.0.10
│   │   └── serde v1.0.137 (*)
│   ├── snap v1.0.5
│   └── tracing v0.1.34 (*)
├── ra_ap_project_model v0.0.104
│   ├── anyhow v1.0.57
│   ├── cargo_metadata v0.14.2
│   │   ├── camino v1.0.9
│   │   │   └── serde v1.0.137 (*)
│   │   ├── cargo-platform v0.1.2
│   │   │   └── serde v1.0.137 (*)
│   │   ├── semver v1.0.9
│   │   │   └── serde v1.0.137 (*)
│   │   ├── serde v1.0.137 (*)
│   │   └── serde_json v1.0.81 (*)
│   ├── expect-test v1.3.0
│   │   ├── dissimilar v1.0.4
│   │   └── once_cell v1.12.0
│   ├── ra_ap_base_db v0.0.104 (*)
│   ├── ra_ap_cfg v0.0.104 (*)
│   ├── ra_ap_la-arena v0.0.104
│   ├── ra_ap_paths v0.0.104
│   ├── ra_ap_profile v0.0.104 (*)
│   ├── ra_ap_stdx v0.0.104 (*)
│   ├── ra_ap_toolchain v0.0.104
│   │   └── home v0.5.3
│   ├── rustc-hash v1.1.0
│   ├── semver v1.0.9 (*)
│   ├── serde v1.0.137 (*)
│   ├── serde_json v1.0.81 (*)
│   └── tracing v0.1.34 (*)
├── ra_ap_rust-analyzer v0.0.104
│   ├── always-assert v0.1.2 (*)
│   ├── anyhow v1.0.57
│   ├── crossbeam-channel v0.5.4 (*)
│   ├── dissimilar v1.0.4
│   ├── itertools v0.10.3 (*)
│   ├── lsp-server v0.6.0
│   │   ├── crossbeam-channel v0.5.4 (*)
│   │   ├── log v0.4.17 (*)
│   │   ├── serde v1.0.137 (*)
│   │   └── serde_json v1.0.81 (*)
│   ├── lsp-types v0.92.1
│   │   ├── bitflags v1.3.2
│   │   ├── serde v1.0.137 (*)
│   │   ├── serde_json v1.0.81 (*)
│   │   ├── serde_repr v0.1.8 (proc-macro)
│   │   │   ├── proc-macro2 v1.0.39 (*)
│   │   │   ├── quote v1.0.18 (*)
│   │   │   └── syn v1.0.96 (*)
│   │   └── url v2.2.2 (*)
│   ├── num_cpus v1.13.1 (*)
│   ├── oorandom v11.1.3
│   ├── parking_lot v0.12.1 (*)
│   ├── ra_ap_cfg v0.0.104 (*)
│   ├── ra_ap_flycheck v0.0.104
│   │   ├── cargo_metadata v0.14.2 (*)
│   │   ├── crossbeam-channel v0.5.4 (*)
│   │   ├── jod-thread v0.1.2
│   │   ├── ra_ap_paths v0.0.104
│   │   ├── ra_ap_stdx v0.0.104 (*)
│   │   ├── ra_ap_toolchain v0.0.104 (*)
│   │   ├── serde v1.0.137 (*)
│   │   ├── serde_json v1.0.81 (*)
│   │   └── tracing v0.1.34 (*)
│   ├── ra_ap_hir v0.0.104 (*)
│   ├── ra_ap_hir_def v0.0.104 (*)
│   ├── ra_ap_hir_ty v0.0.104 (*)
│   ├── ra_ap_ide v0.0.104 (*)
│   ├── ra_ap_ide_db v0.0.104 (*)
│   ├── ra_ap_ide_ssr v0.0.104 (*)
│   ├── ra_ap_proc_macro_api v0.0.104 (*)
│   ├── ra_ap_proc_macro_srv v0.0.104
│   │   ├── libloading v0.7.3
│   │   │   └── cfg-if v1.0.0
│   │   ├── memmap2 v0.5.4 (*)
│   │   ├── object v0.28.4 (*)
│   │   ├── ra_ap_mbe v0.0.104 (*)
│   │   ├── ra_ap_paths v0.0.104
│   │   ├── ra_ap_proc_macro_api v0.0.104 (*)
│   │   └── ra_ap_tt v0.0.104 (*)
│   ├── ra_ap_profile v0.0.104 (*)
│   ├── ra_ap_project_model v0.0.104 (*)
│   ├── ra_ap_stdx v0.0.104 (*)
│   ├── ra_ap_syntax v0.0.104 (*)
│   ├── ra_ap_toolchain v0.0.104 (*)
│   ├── ra_ap_tt v0.0.104 (*)
│   ├── ra_ap_vfs v0.0.104 (*)
│   ├── ra_ap_vfs-notify v0.0.104
│   │   ├── crossbeam-channel v0.5.4 (*)
│   │   ├── jod-thread v0.1.2
│   │   ├── notify v5.0.0-pre.14
│   │   │   ├── bitflags v1.3.2
│   │   │   ├── crossbeam-channel v0.5.4 (*)
│   │   │   ├── filetime v0.2.16
│   │   │   │   ├── cfg-if v1.0.0
│   │   │   │   └── libc v0.2.126
│   │   │   ├── fsevent-sys v4.1.0
│   │   │   │   └── libc v0.2.126
│   │   │   ├── libc v0.2.126
│   │   │   └── walkdir v2.3.2
│   │   │       └── same-file v1.0.6
│   │   ├── ra_ap_paths v0.0.104
│   │   ├── ra_ap_vfs v0.0.104 (*)
│   │   ├── tracing v0.1.34 (*)
│   │   └── walkdir v2.3.2 (*)
│   ├── rayon v1.5.3 (*)
│   ├── rustc-hash v1.1.0
│   ├── serde v1.0.137 (*)
│   ├── serde_json v1.0.81 (*)
│   ├── threadpool v1.8.1
│   │   └── num_cpus v1.13.1 (*)
│   ├── tracing v0.1.34 (*)
│   ├── tracing-log v0.1.3
│   │   ├── lazy_static v1.4.0
│   │   ├── log v0.4.17 (*)
│   │   └── tracing-core v0.1.26 (*)
│   ├── tracing-subscriber v0.3.11
│   │   ├── lazy_static v1.4.0
│   │   ├── matchers v0.1.0
│   │   │   └── regex-automata v0.1.10
│   │   │       └── regex-syntax v0.6.26
│   │   ├── regex v1.5.6 (*)
│   │   ├── sharded-slab v0.1.4
│   │   │   └── lazy_static v1.4.0
│   │   ├── thread_local v1.1.4
│   │   │   └── once_cell v1.12.0
│   │   ├── tracing v0.1.34 (*)
│   │   ├── tracing-core v0.1.26 (*)
│   │   └── tracing-log v0.1.3 (*)
│   ├── tracing-tree v0.2.1
│   │   ├── ansi_term v0.12.1
│   │   ├── atty v0.2.14 (*)
│   │   ├── tracing-core v0.1.26 (*)
│   │   ├── tracing-log v0.1.3 (*)
│   │   └── tracing-subscriber v0.3.11 (*)
│   └── xflags v0.2.4
│       └── xflags-macros v0.2.4 (proc-macro)
├── ra_ap_syntax v0.0.104 (*)
├── ra_ap_text_edit v0.0.104 (*)
├── ra_ap_vfs v0.0.104 (*)
├── structopt v0.3.26
│   ├── clap v2.34.0
│   │   ├── ansi_term v0.12.1
│   │   ├── atty v0.2.14 (*)
│   │   ├── bitflags v1.3.2
│   │   ├── strsim v0.8.0
│   │   ├── textwrap v0.11.0
│   │   │   └── unicode-width v0.1.9
│   │   ├── unicode-width v0.1.9
│   │   └── vec_map v0.8.2
│   ├── lazy_static v1.4.0
│   └── structopt-derive v0.4.18 (proc-macro)
│       ├── heck v0.3.3 (*)
│       ├── proc-macro-error v1.0.4
│       │   ├── proc-macro-error-attr v1.0.4 (proc-macro)
│       │   │   ├── proc-macro2 v1.0.39 (*)
│       │   │   └── quote v1.0.18 (*)
│       │   │   [build-dependencies]
│       │   │   └── version_check v0.9.4
│       │   ├── proc-macro2 v1.0.39 (*)
│       │   ├── quote v1.0.18 (*)
│       │   └── syn v1.0.96 (*)
│       │   [build-dependencies]
│       │   └── version_check v0.9.4
│       ├── proc-macro2 v1.0.39 (*)
│       ├── quote v1.0.18 (*)
│       └── syn v1.0.96 (*)
└── yansi v0.5.1
[dev-dependencies]
├── assert_cmd v2.0.4
│   ├── bstr v0.2.17
│   │   ├── lazy_static v1.4.0
│   │   ├── memchr v2.5.0
│   │   └── regex-automata v0.1.10 (*)
│   ├── doc-comment v0.3.3
│   ├── predicates v2.1.1
│   │   ├── difflib v0.4.0
│   │   ├── itertools v0.10.3 (*)
│   │   └── predicates-core v1.0.3
│   ├── predicates-core v1.0.3
│   ├── predicates-tree v1.0.5
│   │   ├── predicates-core v1.0.3
│   │   └── termtree v0.2.4
│   └── wait-timeout v0.2.0
│       └── libc v0.2.126
├── bitflags v1.3.2
├── insta v1.14.1
│   ├── console v0.15.0
│   │   ├── libc v0.2.126
│   │   ├── once_cell v1.12.0
│   │   └── terminal_size v0.1.17
│   │       └── libc v0.2.126
│   ├── once_cell v1.12.0
│   ├── serde v1.0.137 (*)
│   ├── serde_json v1.0.81 (*)
│   ├── serde_yaml v0.8.24
│   │   ├── indexmap v1.8.2 (*)
│   │   ├── ryu v1.0.10
│   │   ├── serde v1.0.137 (*)
│   │   └── yaml-rust v0.4.5
│   │       └── linked-hash-map v0.5.4
│   └── similar v2.1.0
└── shellwords v1.1.0
    ├── lazy_static v1.4.0
    └── regex v1.5.6 (*)

regexident avatar Jun 06 '22 20:06 regexident

@regexident found the problem, dashmap broke semver by changing they hashmap type the expose from std to hashbrown in a minor release, 5.2.0 used std's hashmap, 5.3.0 uses hashbrowns. So adding dashmap = "=5.2.0 to the Cargo.toml of cargo-modules makes it compile again (minus the changes required for the rust-analyzer api changes).

See https://github.com/xacrimon/dashmap/pull/194

Veykril avatar Jun 09 '22 15:06 Veykril

Turns out that is intended given we are using an untable feature, so we need to pin the dashmap version we use from now on

Veykril avatar Jun 09 '22 16:06 Veykril

That did it!

Thank you so much for looking into this @Veykril and following through with the dashmap folks, you saved the day!

regexident avatar Jun 10 '22 13:06 regexident