williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.22k stars 258 forks source link

Error that won't let me update packages #1742

Open mAmineChniti opened 1 week ago

mAmineChniti commented 1 week ago

I've searched open issues for similar requests

I've recently downloaded the latest plugin version of mason.nvim

Problem description

when i open up Mason and it tried to sync so i can update the packages installed it throws an error and stops syncing so i can't update the packages

Expected behavior

To sync and let me be able to update the installed packages

Affected packages

All

Mason output

Error executing vim.schedule lua callback: ...share/nvim/lazy/mason.nvim/lua/mason-core/async/init.lua:79: bad argument #1 to 'status' (coroutine expected)
stack traceback:
    [C]: in function 'status'
    ...share/nvim/lazy/mason.nvim/lua/mason-core/async/init.lua:79: in function 'cb'
    ...share/nvim/lazy/mason.nvim/lua/mason-core/async/init.lua:21: in function 'reject'
    ...cal/share/nvim/lazy/mason.nvim/lua/mason/ui/instance.lua:465: in function 'fn'
    ...cal/share/nvim/lazy/mason.nvim/lua/mason-core/result.lua:128: in function 'on_failure'
    ...are/nvim/lazy/mason.nvim/lua/mason-core/package/init.lua:292: in function 'fn'
    .../nvim/lazy/mason.nvim/lua/mason-core/functional/init.lua:174: in function <.../nvim/lazy/mason.nvim/lua/mason-core/functional/init.lua:173>

Installation log

[ERROR Sat 22 Jun 2024 10:56:47 AM CET] ...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 Sat 22 Jun 2024 10:56:48 AM CET] ...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 Sat 22 Jun 2024 10:56:48 AM CET] ...e/nvim/lazy/mason.nvim/lua/mason-core/providers/init.lua:92: No provider implementation succeeded for pypi.get_supported_python_versions
[INFO  Sat 22 Jun 2024 10:56:53 AM CET] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=clang-format)

Neovim version (>= 0.7)

NVIM v0.11.0-dev-310+g9e436251d Build type: Release LuaJIT 2.1.1716656478

Operating system/version

Linux DESKTOP-0SAJEGJ 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

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: 2024-06-25-glum-subway` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.`
- OK wget: `GNU Wget 1.21.4 built on linux-gnu.`
- OK curl: `curl 8.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7`
- OK gzip: `gzip 1.13`
- OK tar: `tar (GNU tar) 1.35`
- OK bash: `GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- OK Ruby: `ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux-gnu]`
- OK cargo: `cargo 1.79.0 (ffa9cf99a 2024-06-03)`
- OK PHP: `PHP 8.3.6 (cli) (built: Jun 13 2024 15:23:20) (NTS)`
- OK luarocks: `/usr/bin/luarocks 3.8.0`
- OK node: `v20.14.0`
- OK Composer: `Composer version 2.7.6 2024-05-04 23:03:15`
- OK Go: `go version go1.22.2 linux/amd64`
- OK npm: `10.8.1`
- OK java: `openjdk version "22-ea" 2024-03-19`
- OK python: `Python 3.12.3`
- OK julia: `julia version 1.10.3`
- OK javac: `javac 22-ea`
- OK RubyGem: `3.4.20`
- OK pip: `pip 24.0 from /home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.3/lib/python3.12/site-packages/pip (python 3.12)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 26. Remaining: 4974. Limit: 5000. Reset: Tue 25 Jun 2024 02:57:24 PM CET.

Screenshots

WindowsTerminal_LTElAcKCXB

adamwhats commented 1 week ago

@mAmineChniti I've just ran into the same issue with MasonLog showing Provider "pypi" "get_supported_python_versions" failed: "Package does not specify supported Python versions. Turns out I didn't have python3-venv installed, adding that fixed the issue for me.

mAmineChniti commented 1 week ago

@adamwhats i already have python3-venv installed.