Giter Site home page Giter Site logo

Comments (14)

regexident avatar regexident commented on June 21, 2024 1

Did a cargo clean and tried re-building, which it did without issues:

build log
$ cargo build
   Compiling proc-macro2 v1.0.40
   Compiling quote v1.0.20
   Compiling unicode-ident v1.0.1
   Compiling syn v1.0.98
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling libc v0.2.135
   Compiling once_cell v1.15.0
   Compiling log v0.4.17
   Compiling hashbrown v0.12.3
   Compiling serde_derive v1.0.145
   Compiling serde v1.0.145
   Compiling scopeguard v1.1.0
   Compiling rustc-hash v1.1.0
   Compiling smallvec v1.10.0
   Compiling parking_lot_core v0.9.3
   Compiling crossbeam-utils v0.8.10
   Compiling unicode-xid v0.2.3
   Compiling pin-project-lite v0.2.9
   Compiling either v1.7.0
   Compiling bitflags v1.3.2
   Compiling ra_ap_la-arena v0.0.134
   Compiling memchr v2.5.0
   Compiling text-size v1.1.0
   Compiling unicode-segmentation v1.9.0
   Compiling ra_ap_paths v0.0.134
   Compiling fst v0.4.7
   Compiling ra_ap_limit v0.0.134
   Compiling lazy_static v1.4.0
   Compiling drop_bomb v0.1.5
   Compiling parking_lot_core v0.8.5
   Compiling cov-mark v2.0.0-pre.1
   Compiling dissimilar v1.0.4
   Compiling version_check v0.9.4
   Compiling oorandom v11.1.3
   Compiling serde_json v1.0.86
   Compiling fixedbitset v0.2.0
   Compiling itoa v1.0.2
   Compiling ryu v1.0.10
   Compiling rayon-core v1.9.3
   Compiling arrayvec v0.7.2
   Compiling anymap v1.0.0-beta.2
   Compiling scoped-tls v1.0.0
   Compiling typed-arena v2.0.1
   Compiling regex-syntax v0.6.26
   Compiling tinyvec_macros v0.1.0
   Compiling camino v1.0.9
   Compiling thiserror v1.0.37
   Compiling semver v1.0.14
   Compiling percent-encoding v2.2.0
   Compiling pulldown-cmark v0.9.1
   Compiling unicode-bidi v0.3.8
   Compiling snap v1.0.5
   Compiling home v0.5.4
   Compiling protobuf v3.1.0
   Compiling same-file v1.0.6
   Compiling anyhow v1.0.66
   Compiling ansi_term v0.12.1
   Compiling jod-thread v0.1.2
   Compiling ra_ap_proc_macro_srv v0.0.134
   Compiling unicode-width v0.1.9
   Compiling xflags-macros v0.3.0
   Compiling vec_map v0.8.2
   Compiling dot v0.1.4
   Compiling strsim v0.8.0
   Compiling ra_ap_rust-analyzer v0.0.134
   Compiling humantime v2.1.0
   Compiling fixedbitset v0.4.1
   Compiling termcolor v1.1.3
   Compiling json v0.12.4
   Compiling yansi v0.5.1
   Compiling indoc v1.0.7
   Compiling instant v0.1.12
   Compiling libloading v0.7.3
   Compiling tracing-core v0.1.30
   Compiling thread_local v1.1.4
   Compiling rustc-ap-rustc_lexer v725.0.0
   Compiling itertools v0.10.5
   Compiling indexmap v1.9.1
   Compiling lock_api v0.4.9
   Compiling memoffset v0.6.5
   Compiling crossbeam-epoch v0.9.9
   Compiling rayon v1.5.3
   Compiling sharded-slab v0.1.4
   Compiling expect-test v1.4.0
   Compiling tinyvec v1.6.0
   Compiling heck v0.3.3
   Compiling ra_ap_toolchain v0.0.134
   Compiling form_urlencoded v1.1.0
   Compiling walkdir v2.3.2
   Compiling unicase v2.6.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling textwrap v0.11.0
   Compiling ra_ap_parser v0.0.134
   Compiling xflags v0.3.0
   Compiling ra_ap_text_edit v0.0.134
   Compiling regex-automata v0.1.10
   Compiling unicode-normalization v0.1.20
   Compiling crossbeam-channel v0.5.6
   Compiling always-assert v0.1.2
   Compiling ena v0.14.0
   Compiling tracing-log v0.1.3
   Compiling num_cpus v1.13.1
   Compiling atty v0.2.14
   Compiling fsevent-sys v4.1.0
   Compiling memmap2 v0.5.4
   Compiling filetime v0.2.16
   Compiling aho-corasick v0.7.18
   Compiling object v0.29.0
   Compiling ra_ap_stdx v0.0.134
   Compiling threadpool v1.8.1
   Compiling clap v2.34.0
   Compiling matchers v0.1.0
   Compiling idna v0.3.0
   Compiling notify v5.0.0
   Compiling dashmap v5.4.0
   Compiling parking_lot v0.11.2
   Compiling parking_lot v0.12.1
   Compiling crossbeam-deque v0.8.1
   Compiling ra_ap_vfs v0.0.134
   Compiling petgraph v0.5.1
   Compiling petgraph v0.6.2
   Compiling countme v3.0.1
   Compiling regex v1.5.6
   Compiling ra_ap_profile v0.0.134
   Compiling rowan v0.15.10
   Compiling ra_ap_test_utils v0.0.134
   Compiling pulldown-cmark-to-cmark v10.0.4
   Compiling env_logger v0.9.1
   Compiling synstructure v0.12.6
   Compiling tracing-attributes v0.1.23
   Compiling salsa-macros v0.17.0-pre.2
   Compiling chalk-derive v0.86.0
   Compiling thiserror-impl v1.0.37
   Compiling serde_repr v0.1.8
   Compiling structopt-derive v0.4.18
   Compiling chalk-ir v0.86.0
   Compiling salsa v0.17.0-pre.2
   Compiling structopt v0.3.26
   Compiling tracing v0.1.37
   Compiling protobuf-support v3.1.0
   Compiling tracing-subscriber v0.3.16
   Compiling ra_ap_vfs-notify v0.0.134
   Compiling chalk-solve v0.86.0
   Compiling tracing-tree v0.2.1
   Compiling chalk-recursive v0.86.0
   Compiling scip v0.1.1
   Compiling smol_str v0.1.23
   Compiling cargo-platform v0.1.2
   Compiling url v2.3.1
   Compiling ra_ap_tt v0.0.134
   Compiling ra_ap_syntax v0.0.134
   Compiling ra_ap_cfg v0.0.134
   Compiling cargo_metadata v0.15.0
   Compiling ra_ap_proc_macro_api v0.0.134
   Compiling ra_ap_lsp-server v0.0.134
   Compiling lsp-types v0.93.1
   Compiling ra_ap_flycheck v0.0.134
   Compiling ra_ap_base_db v0.0.134
   Compiling ra_ap_mbe v0.0.134
   Compiling ra_ap_project_model v0.0.134
   Compiling ra_ap_hir_expand v0.0.134
   Compiling ra_ap_hir_def v0.0.134
   Compiling ra_ap_hir_ty v0.0.134
   Compiling ra_ap_hir v0.0.134
   Compiling ra_ap_ide_db v0.0.134
   Compiling ra_ap_ide_ssr v0.0.134
   Compiling ra_ap_ide_completion v0.0.134
   Compiling ra_ap_ide_diagnostics v0.0.134
   Compiling ra_ap_ide_assists v0.0.134
   Compiling ra_ap_ide v0.0.134
   Compiling cargo-modules v0.5.13 (<SNIP>/cargo-modules)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 32s

@amolgawai / @JoshuaKimsey would you mind sharing the output from your build? My suspicion is that it somehow picks a different dependency crate version. 🤔

from cargo-modules.

f4184f avatar f4184f commented on June 21, 2024 1

Hi @regexident, thanks for you quick response. I can confirm that cargo build for latest git main branch works fine and it builds release binary cargo-modules, but it fails from cargo install. I did try again with cargo clean & cargo install and it failed:

build log
user@neon folder % cargo clean

user@neon folder % cargo install cargo-modules 
    Updating crates.io index
  Downloaded cargo-modules v0.5.13
  Downloaded 1 crate (954.4 KB) in 0.29s
  Installing cargo-modules v0.5.13
  Downloaded serde v1.0.147
  Downloaded xflags-macros v0.3.1
  Downloaded xflags v0.3.1
  Downloaded serde_derive v1.0.147
  Downloaded libc v0.2.136
  Downloaded cargo_metadata v0.15.1
  Downloaded 6 crates (774.8 KB) in 0.33s
   Compiling proc-macro2 v1.0.47
   Compiling quote v1.0.21
   Compiling unicode-ident v1.0.5
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.103
   Compiling autocfg v1.1.0
   Compiling libc v0.2.136
   Compiling log v0.4.17
   Compiling once_cell v1.15.0
   Compiling hashbrown v0.12.3
   Compiling serde_derive v1.0.147
   Compiling serde v1.0.147
   Compiling scopeguard v1.1.0
   Compiling rustc-hash v1.1.0
   Compiling smallvec v1.10.0
   Compiling parking_lot_core v0.9.4
   Compiling crossbeam-utils v0.8.12
   Compiling pin-project-lite v0.2.9
   Compiling either v1.8.0
   Compiling bitflags v1.3.2
   Compiling memchr v2.5.0
   Compiling text-size v1.1.0
   Compiling ra_ap_la-arena v0.0.134
   Compiling unicode-segmentation v1.10.0
   Compiling ra_ap_paths v0.0.134
   Compiling unicode-xid v0.2.4
   Compiling parking_lot_core v0.8.5
   Compiling lazy_static v1.4.0
   Compiling fst v0.4.7
   Compiling drop_bomb v0.1.5
   Compiling ra_ap_limit v0.0.134
   Compiling cov-mark v2.0.0-pre.1
   Compiling version_check v0.9.4
   Compiling dissimilar v1.0.4
   Compiling oorandom v11.1.3
   Compiling serde_json v1.0.87
   Compiling fixedbitset v0.2.0
   Compiling ryu v1.0.11
   Compiling itoa v1.0.4
   Compiling rayon-core v1.9.3
   Compiling arrayvec v0.7.2
   Compiling anymap v1.0.0-beta.2
   Compiling typed-arena v2.0.1
   Compiling thiserror v1.0.37
   Compiling scoped-tls v1.0.0
   Compiling regex-syntax v0.6.27
   Compiling tinyvec_macros v0.1.0
   Compiling semver v1.0.14
   Compiling camino v1.1.1
   Compiling home v0.5.4
   Compiling unicode-bidi v0.3.8
   Compiling percent-encoding v2.2.0
   Compiling snap v1.0.5
   Compiling pulldown-cmark v0.9.2
   Compiling anyhow v1.0.66
   Compiling ansi_term v0.12.1
   Compiling protobuf v3.1.0
   Compiling same-file v1.0.6
   Compiling unicode-width v0.1.10
   Compiling jod-thread v0.1.2
   Compiling ra_ap_proc_macro_srv v0.0.134
   Compiling xflags-macros v0.3.1
   Compiling vec_map v0.8.2
   Compiling ra_ap_rust-analyzer v0.0.134
   Compiling strsim v0.8.0
   Compiling dot v0.1.4
   Compiling fixedbitset v0.4.2
   Compiling termcolor v1.1.3
   Compiling humantime v2.1.0
   Compiling yansi v0.5.1
   Compiling json v0.12.4
   Compiling indoc v1.0.7
   Compiling instant v0.1.12
   Compiling libloading v0.7.3
   Compiling tracing-core v0.1.30
   Compiling thread_local v1.1.4
   Compiling itertools v0.10.5
   Compiling indexmap v1.9.1
   Compiling lock_api v0.4.9
   Compiling memoffset v0.6.5
   Compiling crossbeam-epoch v0.9.11
   Compiling rayon v1.5.3
   Compiling rustc-ap-rustc_lexer v725.0.0
   Compiling sharded-slab v0.1.4
   Compiling heck v0.3.3
   Compiling expect-test v1.4.0
   Compiling tinyvec v1.6.0
   Compiling ra_ap_toolchain v0.0.134
   Compiling form_urlencoded v1.1.0
   Compiling unicase v2.6.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling walkdir v2.3.2
   Compiling textwrap v0.11.0
   Compiling ra_ap_parser v0.0.134
   Compiling xflags v0.3.1
   Compiling regex-automata v0.1.10
   Compiling ra_ap_text_edit v0.0.134
   Compiling unicode-normalization v0.1.22
   Compiling always-assert v0.1.2
   Compiling ena v0.14.0
   Compiling tracing-log v0.1.3
   Compiling num_cpus v1.13.1
   Compiling atty v0.2.14
   Compiling fsevent-sys v4.1.0
   Compiling memmap2 v0.5.7
   Compiling filetime v0.2.18
   Compiling crossbeam-channel v0.5.6
   Compiling aho-corasick v0.7.19
   Compiling object v0.29.0
   Compiling ra_ap_stdx v0.0.134
   Compiling matchers v0.1.0
   Compiling threadpool v1.8.1
   Compiling clap v2.34.0
   Compiling idna v0.3.0
   Compiling petgraph v0.5.1
   Compiling petgraph v0.6.2
   Compiling dashmap v5.4.0
   Compiling parking_lot v0.11.2
   Compiling parking_lot v0.12.1
   Compiling ra_ap_vfs v0.0.134
   Compiling notify v5.0.0
   Compiling crossbeam-deque v0.8.2
   Compiling regex v1.6.0
   Compiling countme v3.0.1
   Compiling ra_ap_profile v0.0.134
   Compiling rowan v0.15.10
   Compiling pulldown-cmark-to-cmark v10.0.4
   Compiling ra_ap_test_utils v0.0.134
   Compiling env_logger v0.9.1
   Compiling synstructure v0.12.6
   Compiling tracing-attributes v0.1.23
   Compiling salsa-macros v0.17.0-pre.2
   Compiling chalk-derive v0.86.0
   Compiling thiserror-impl v1.0.37
   Compiling serde_repr v0.1.9
   Compiling structopt-derive v0.4.18
   Compiling chalk-ir v0.86.0
   Compiling salsa v0.17.0-pre.2
   Compiling structopt v0.3.26
   Compiling tracing v0.1.37
   Compiling protobuf-support v3.1.0
   Compiling tracing-subscriber v0.3.16
   Compiling ra_ap_vfs-notify v0.0.134
   Compiling chalk-solve v0.86.0
   Compiling tracing-tree v0.2.1
   Compiling scip v0.1.1
   Compiling chalk-recursive v0.86.0
   Compiling smol_str v0.1.23
   Compiling cargo-platform v0.1.2
   Compiling url v2.3.1
   Compiling ra_ap_tt v0.0.134
   Compiling ra_ap_syntax v0.0.134
   Compiling ra_ap_cfg v0.0.134
   Compiling cargo_metadata v0.15.1
   Compiling ra_ap_proc_macro_api v0.0.134
   Compiling ra_ap_lsp-server v0.0.134
   Compiling lsp-types v0.93.2
   Compiling ra_ap_flycheck v0.0.134
   Compiling ra_ap_base_db v0.0.134
   Compiling ra_ap_mbe v0.0.134
   Compiling ra_ap_project_model v0.0.134
   Compiling ra_ap_hir_expand v0.0.134
   Compiling ra_ap_hir_def v0.0.134
   Compiling ra_ap_hir_ty v0.0.134
   Compiling ra_ap_hir v0.0.134
   Compiling ra_ap_ide_db v0.0.134
   Compiling ra_ap_ide_diagnostics v0.0.134
   Compiling ra_ap_ide_completion v0.0.134
   Compiling ra_ap_ide_assists v0.0.134
   Compiling ra_ap_ide_ssr v0.0.134
   Compiling ra_ap_ide v0.0.134
error[E0063]: missing field `position_encoding` in initializer of `ServerCapabilities`
  --> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/ra_ap_rust-analyzer-0.0.134/src/caps.rs:21:5
   |
21 |     ServerCapabilities {
   |     ^^^^^^^^^^^^^^^^^^ missing `position_encoding`

For more information about this error, try `rustc --explain E0063`.
The following warnings were emitted during compilation:

warning: Could not find `.git/HEAD` from manifest dir!

error: could not compile `ra_ap_rust-analyzer` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-modules v0.5.13`, intermediate artifacts can be found at `/var/folders/p6/6d84bbm53qx148s1z7c8ggdh0000gn/T/cargo-installoQstDL`

from cargo-modules.

regexident avatar regexident commented on June 21, 2024 1

Nice! Thanks everybody for helping out!

Depending on rust-analyzer as a library can be quite "interesting" sometimes. 😅
(Especially since cargo-modules seems to be the only public project actively depending of it.)

from cargo-modules.

regexident avatar regexident commented on June 21, 2024

hi @f4184f, thanks for the report! I just published v0.5.13.
Would you mind giving it a try and reporting back if it resolved the issue for you?

from cargo-modules.

amolgawai avatar amolgawai commented on June 21, 2024

Just tried the update, still the same error.

from cargo-modules.

amolgawai avatar amolgawai commented on June 21, 2024

I am on stable rust 1.64 on Mac.

from cargo-modules.

regexident avatar regexident commented on June 21, 2024

I am on stable rust 1.64 on Mac.

Hm weird. So am I. 🤔

from cargo-modules.

JoshuaKimsey avatar JoshuaKimsey commented on June 21, 2024

Can confirm the error just happened on Linux. Rust version: rustc 1.64.0 (a55dd71d5 2022-09-19)

error[E0063]: missing field `position_encoding` in initializer of `ServerCapabilities`
  --> /home/jkimsey/.cargo/registry/src/github.com-1ecc6299db9ec823/ra_ap_rust-analyzer-0.0.134/src/caps.rs:21:5
   |
21 |     ServerCapabilities {
   |     ^^^^^^^^^^^^^^^^^^ missing `position_encoding`

For more information about this error, try `rustc --explain E0063`.
The following warnings were emitted during compilation:

warning: Could not find `.git/HEAD` from manifest dir!

error: could not compile `ra_ap_rust-analyzer` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-modules v0.5.13`, intermediate artifacts can be found at `/tmp/cargo-installEbfDzQ`

from cargo-modules.

regexident avatar regexident commented on June 21, 2024

Thanks @f4184f, that I can reproduce!

I'll try to investigate this later today (I hope), unless somebody else beats me to it.

from cargo-modules.

regexident avatar regexident commented on June 21, 2024

Actually, could you all try v0.5.14, (which installs fine for me) and let me know if it fixes the issue?

It seems to "fix" the upstream semver issue by pinning lsp-types to "=0.93.1" until the folks behind rust-analyzer resolve rust-lang/rust-analyzer#13481.

from cargo-modules.

f4184f avatar f4184f commented on June 21, 2024

Thanks @regexident for resolving the issue, i can confirm now install of latest version v0.5.14 worked fine!

user@neon folder % cargo-modules --version
cargo-modules 0.5.14

from cargo-modules.

amolgawai avatar amolgawai commented on June 21, 2024

I also confirm that v0.5.14 was installed without any errors.

from cargo-modules.

olivier-fs avatar olivier-fs commented on June 21, 2024

Builds fine on Windows 10 + stable rust-1.64.0 too.

   ...
   ...
   Compiling lsp-types v0.93.1
   Compiling ra_ap_base_db v0.0.134
   Compiling ra_ap_mbe v0.0.134
   Compiling ra_ap_flycheck v0.0.134
   Compiling ra_ap_project_model v0.0.134
   Compiling ra_ap_hir_expand v0.0.134
   Compiling ra_ap_hir_def v0.0.134
   Compiling ra_ap_hir_ty v0.0.134
   Compiling ra_ap_hir v0.0.134
   Compiling ra_ap_ide_db v0.0.134
   Compiling ra_ap_ide_assists v0.0.134
   Compiling ra_ap_ide_diagnostics v0.0.134
   Compiling ra_ap_ide_completion v0.0.134
   Compiling ra_ap_ide_ssr v0.0.134
   Compiling ra_ap_ide v0.0.134
   Compiling cargo-modules v0.5.14
    Finished release [optimized] target(s) in 5m 34s
   Replacing C:\Users\olivier\.cargo\bin\cargo-modules.exe
    Replaced package `cargo-modules v0.5.12` with `cargo-modules v0.5.14` (executable `cargo-modules.exe`)

$ cargo --version
cargo 1.64.0 (387270bc7 2022-09-16)

from cargo-modules.

JoshuaKimsey avatar JoshuaKimsey commented on June 21, 2024

Sorry for just now getting back! Yes, the newest version installs properly now. Thanks for the quick fix! :)

from cargo-modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.