Open
Description
I've searched open issues for similar requests
- Yes
I've recently downloaded the latest plugin version of mason.nvim
- Yes
Problem description
It seems that packages related to cargo cannot be downloaded and compiled through Mason due to the crate
not being found.
rustc
version: 1.84.0 (9fc6b4312 2025-01-07)
cargo
version: 1.84.0 (66221abde 2024-11-19)
wsl2
version:
Expected behavior
cargo install succeeded through Mason
Affected packages
nil && neocmakelsp
Mason output
for *nil*
Installing crate nil@2024-08-06…
Updating git repository `https://github.com/oxalica/nil`
Installing nil v0.0.0 (https://github.com/oxalica/nil?tag=2024-08-06#70df3712)
Updating crates.io index
warning: package `futures-util v0.3.30` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
Compiling proc-macro2 v1.0.86
Compiling unicode-ident v1.0.12
Compiling autocfg v1.3.0
Compiling serde v1.0.204
Compiling memchr v2.7.4
Compiling libc v0.2.155
Compiling once_cell v1.19.0
Compiling serde_json v1.0.122
Compiling pin-project-lite v0.2.14
Compiling rand_core v0.6.4
Compiling siphasher v0.3.11
Compiling tinyvec_macros v0.1.1
Compiling cfg-if v1.0.0
Compiling log v0.4.22
Compiling regex-syntax v0.8.4
Compiling hashbrown v0.14.5
Compiling tinyvec v1.8.0
Compiling rustc-hash v1.1.0
Compiling rustix v0.38.34
Compiling ryu v1.0.18
Compiling text-size v1.1.1
Compiling phf_shared v0.11.2
Compiling rand v0.8.5
Compiling tracing-core v0.1.32
Compiling itoa v1.0.11
Compiling countme v3.0.1
Compiling thiserror v1.0.63
Compiling linux-raw-sys v0.4.14
Compiling percent-encoding v2.3.1
Compiling parking_lot_core v0.8.6
Compiling memoffset v0.9.1
Compiling slab v0.4.9
Compiling aho-corasick v1.1.3
Compiling lock_api v0.4.12
Compiling smallvec v1.13.2
Compiling bitflags v2.6.0
Compiling phf_generator v0.11.2
Compiling anyhow v1.0.86
Compiling unicode-bidi v0.3.15
Compiling syn v1.0.109
Compiling phf_codegen v0.11.2
Compiling quote v1.0.36
Compiling unicode-normalization v0.1.23
Compiling rowan v0.15.15
Compiling form_urlencoded v1.2.1
Compiling indexmap v1.9.3
Compiling num-traits v0.2.19
Compiling instant v0.1.13
Compiling socket2 v0.5.7
Compiling signal-hook-registry v1.4.2
Compiling mio v1.0.1
Compiling syn v2.0.72
Compiling bytes v1.7.1
Compiling scopeguard v1.2.0
Compiling futures-sink v0.3.30
Compiling futures-core v0.3.30
Compiling crossbeam-utils v0.8.20
Compiling unicode-segmentation v1.11.0
Compiling futures-channel v0.3.30
Compiling idna v0.5.0
Compiling heck v0.3.3
Compiling paste v1.0.15
Compiling pin-utils v0.1.0
Compiling futures-io v0.3.30
Compiling hashbrown v0.12.3
Compiling futures-task v0.3.30
Compiling equivalent v1.0.1
Compiling regex-syntax v0.6.29
Compiling indexmap v2.3.0
Compiling parking_lot v0.11.2
Compiling phf v0.11.2
Compiling oorandom v11.1.4
Compiling lazy_static v1.5.0
Compiling bitflags v1.3.2
Compiling tower-layer v0.3.2
Compiling tower-service v0.3.2
Compiling either v1.13.0
Compiling smol_str v0.2.2
Compiling regex-automata v0.4.7
Compiling itertools v0.13.0
Compiling sharded-slab v0.1.7
Compiling tracing-log v0.2.0
Compiling ordered-float v4.2.2
Compiling thread_local v1.1.8
Compiling macro_rules_attribute-proc_macro v0.2.0
Compiling termcolor v1.4.1
Compiling if_chain v1.0.2
Compiling la-arena v0.3.1
Compiling unicode-width v0.1.13
Compiling codespan-reporting v0.11.1
Compiling macro_rules_attribute v0.2.0
error[E0463]: can't find crate for `macro_rules_attribute_proc_macro`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macro_rules_attribute-0.2.0/src/lib.rs:25:11
|
25 | pub use ::macro_rules_attribute_proc_macro::macro_rules_attribute;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `macro_rules_attribute_proc_macro`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macro_rules_attribute-0.2.0/src/lib.rs:189:11
|
189 | pub use ::macro_rules_attribute_proc_macro::macro_rules_attribute as apply;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `macro_rules_attribute_proc_macro`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macro_rules_attribute-0.2.0/src/lib.rs:253:11
|
253 | pub use ::macro_rules_attribute_proc_macro::macro_rules_derive;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `macro_rules_attribute_proc_macro`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macro_rules_attribute-0.2.0/src/lib.rs:525:11
|
525 | pub use ::macro_rules_attribute_proc_macro::derive;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `macro_rules_attribute_proc_macro`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macro_rules_attribute-0.2.0/src/lib.rs:531:11
|
531 | pub use ::macro_rules_attribute_proc_macro::Custom;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error[E0463]: can't find crate for `paste`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/macro_rules_attribute-0.2.0/src/lib.rs:566:11
|
566 | ::paste::paste,
| ^^^^^ can't find crate
For more information about this error, try `rustc --explain E0463`.
error: could not compile `macro_rules_attribute` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `nil v0.0.0 (https://github.com/oxalica/nil?tag=2024-08-06#70df3712)`, intermediate artifacts can be found at `/tmp/cargo-installVPhnvn`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
spawn: cargo failed with exit code 101 and signal 0.
for *neocmakelsp*
Installing crate neocmakelsp@0.8.16…
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Updating crates.io index
Installing neocmakelsp v0.8.16
Blocking waiting for file lock on package cache
Updating crates.io index
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Updating crates.io index
Compiling proc-macro2 v1.0.92
Compiling unicode-ident v1.0.14
Compiling memchr v2.7.4
Compiling serde v1.0.217
Compiling autocfg v1.4.0
Compiling stable_deref_trait v1.2.0
Compiling smallvec v1.13.2
Compiling libc v0.2.169
Compiling writeable v0.5.5
Compiling litemap v0.7.4
Compiling cfg-if v1.0.0
Compiling icu_locid_transform_data v1.5.0
Compiling crunchy v0.2.2
Compiling parking_lot_core v0.9.10
Compiling pin-project-lite v0.2.16
Compiling tiny-keccak v2.0.2
Compiling crossbeam-utils v0.8.21
Compiling serde_json v1.0.135
Compiling once_cell v1.20.2
Compiling icu_properties_data v1.5.0
Compiling shlex v1.3.0
Compiling utf16_iter v1.0.5
Compiling icu_normalizer_data v1.5.0
Compiling write16 v1.0.0
Compiling futures-sink v0.3.31
Compiling cc v1.2.7
Compiling scopeguard v1.2.0
Compiling futures-core v0.3.31
Compiling utf8_iter v1.0.4
Compiling regex-syntax v0.8.5
Compiling ryu v1.0.18
Compiling utf8parse v0.2.2
Compiling itoa v1.0.14
Compiling lock_api v0.4.12
Compiling slab v0.4.9
Compiling anstyle-parse v0.2.6
Compiling futures-channel v0.3.31
Compiling tracing-core v0.1.33
Compiling syn v1.0.109
Compiling log v0.4.22
Compiling hashbrown v0.14.5
Compiling futures-io v0.3.31
Compiling aho-corasick v1.1.3
Compiling anstyle v1.0.10
Compiling is_terminal_polyfill v1.70.1
Compiling percent-encoding v2.3.1
Compiling quote v1.0.38
Compiling anstyle-query v1.1.2
Compiling colorchoice v1.0.3
Compiling syn v2.0.96
Compiling pin-utils v0.1.0
Compiling futures-task v0.3.31
Compiling mio v1.0.3
Compiling signal-hook-registry v1.4.2
Compiling socket2 v0.5.8
Compiling anstream v0.6.18
Compiling form_urlencoded v1.2.1
Compiling parking_lot v0.12.3
Compiling strsim v0.11.1
Compiling heck v0.5.0
Compiling getrandom v0.2.15
Compiling httparse v1.9.5
Compiling equivalent v1.0.1
Compiling hashbrown v0.15.2
Compiling clap_lex v0.7.4
Compiling bytes v1.9.0
Compiling const-random-macro v0.1.16
Compiling crossbeam-epoch v0.9.18
Compiling bstr v1.11.3
Compiling clap_builder v4.5.26
Compiling csv-core v0.1.11
Compiling bitflags v1.3.2
Compiling tower-service v0.3.3
Compiling tower-layer v0.3.3
Compiling sync_wrapper v1.0.2
Compiling tree-sitter-language v0.1.3
Compiling streaming-iterator v0.1.9
Compiling lazy_static v1.5.0
Compiling const-random v0.1.18
error[E0463]: can't find crate for `const_random_macro`
--> /home/wsl2avatar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/const-random-0.1.18/src/lib.rs:13:9
|
13 | pub use const_random_macro::const_random;
| ^^^^^^^^^^^^^^^^^^ can't find crate
Compiling overload v0.1.1
For more information about this error, try `rustc --explain E0463`.
error: could not compile `const-random` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `neocmakelsp v0.8.16`, intermediate artifacts can be found at `/tmp/cargo-install9RWmqz`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
spawn: cargo failed with exit code 101 and signal 0.
Installation log
[ERROR Mon 27 Jan 2025 12:02:05 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=neocmakelsp) error=spawn: cargo failed with exit code 101 and signal 0.
[INFO Mon 27 Jan 2025 12:03:39 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=nil) {}
[INFO Mon 27 Jan 2025 12:03:39 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=neocmakelsp) {}
[ERROR Mon 27 Jan 2025 12:04:02 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=neocmakelsp) error=spawn: cargo failed with exit code 101 and signal 0.
[ERROR Mon 27 Jan 2025 12:04:02 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=nil) error=spawn: cargo failed with exit code 101 and signal 0.
[INFO Mon 27 Jan 2025 11:27:06 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=clang-format) {}
[ERROR Mon 27 Jan 2025 11:27:07 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/providers/init.lua:81: Provider "pypi" "get_supported_python_versions" failed: "Package does not specify supported Python versions."
[ERROR Mon 27 Jan 2025 11:27:08 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/providers/init.lua:81: Provider "pypi" "get_supported_python_versions" failed: "Package does not specify supported Python versions."
[ERROR Mon 27 Jan 2025 11:27:08 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/providers/init.lua:92: No provider implementation succeeded for pypi.get_supported_python_versions
[INFO Mon 27 Jan 2025 11:27:16 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=clang-format)
[INFO Mon 27 Jan 2025 11:28:17 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=yq) {}
[INFO Mon 27 Jan 2025 11:28:26 AM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=yq)
[INFO Mon 27 Jan 2025 03:05:28 PM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=nil) {}
[ERROR Mon 27 Jan 2025 03:05:38 PM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=nil) error=spawn: cargo failed with exit code 101 and signal 0.
[INFO Mon 27 Jan 2025 03:15:24 PM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=nil) {}
[INFO Mon 27 Jan 2025 03:15:24 PM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=neocmakelsp) {}
[ERROR Mon 27 Jan 2025 03:15:45 PM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=neocmakelsp) error=spawn: cargo failed with exit code 101 and signal 0.
[ERROR Mon 27 Jan 2025 03:15:45 PM CST] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=nil) error=spawn: cargo failed with exit code 101 and signal 0.
Neovim version (>= 0.7)
NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info
Operating system/version
Ubuntu 20.04.6LTS x86_64 (wsl2)
Healthcheck
mason: require("mason.health").check()
mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers:
mason.providers.registry-api
mason.providers.client
- OK neovim version >= 0.7.0
mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2025-01-27-crude-voyage` is installed.
mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send`
- OK wget: `GNU Wget 1.20.3 built on linux-gnu.`
- OK curl: `curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3`
- OK gzip: `gzip 1.10`
- OK tar: `tar (GNU tar) 1.30`
- OK bash: `GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`
mason.nvim [Languages] ~
- WARNING Go: not available
- ADVICE:
- spawn: go failed with exit code - and signal -. go is not executable
- WARNING Composer: not available
- ADVICE:
- spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
- ADVICE:
- spawn: php failed with exit code - and signal -. php is not executable
- WARNING luarocks: not available
- ADVICE:
- spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- WARNING Ruby: not available
- ADVICE:
- spawn: ruby failed with exit code - and signal -. ruby is not executable
- WARNING javac: not available
- ADVICE:
- spawn: javac failed with exit code - and signal -. javac is not executable
- WARNING java: not available
- ADVICE:
- spawn: java failed with exit code - and signal -. java is not executable
- WARNING julia: not available
- ADVICE:
- spawn: julia failed with exit code - and signal -. julia is not executable
- WARNING RubyGem: not available
- ADVICE:
- spawn: gem failed with exit code - and signal -. gem is not executable
- OK python: `Python 3.9.5`
- OK node: `v22.12.0`
- OK cargo: `cargo 1.84.0 (66221abde 2024-11-19)`
- OK npm: `10.9.0`
- OK pip: `pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.9)`
- OK python venv: `Ok`
mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 27. Remaining: 33. Limit: 60. Reset: Mon 27 Jan 2025 03:27:15 PM CST.
Install and authenticate via gh-cli to increase rate limit.