Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mason-packages uninstalled error #1837

Open
2 tasks done
Poiol000 opened this issue Nov 27, 2024 · 0 comments
Open
2 tasks done

mason-packages uninstalled error #1837

Poiol000 opened this issue Nov 27, 2024 · 0 comments

Comments

@Poiol000
Copy link

Poiol000 commented Nov 27, 2024

I've searched open issues for similar requests

  • Yes

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

  • Yes

Problem description

When LazyVim is installed and the Mason plugin is checked, no languages/linters/LSP etc appear in the list. It seems that the mason-registry is uninstalled. Additionally, when the :checkhealth command is executed, it gets stuck.
image

The operation system what I used is macOS 14.7.1, LazyVim latest. The following figure is the mason log after using :MasonLog

image

Expected behavior

Mason-registry has been installed correctly.

Affected packages

mason.nvim

Mason output

No response

Installation log

[ERROR 二 10/15 22:27:43 2024] ...m/lazy/mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:33: Failed to set up lspconfig integration. ...ig.nvim/lua/mason-lspconfig/server_config_extensions.lua:4: module 'lspconfig.server_configurations.omnisharp' not found:
	no field package.preload['lspconfig.server_configurations.omnisharp']
cache_loader: module lspconfig.server_configurations.omnisharp not found
cache_loader_lib: module lspconfig.server_configurations.omnisharp not found
	no file './lspconfig/server_configurations/omnisharp.lua'
	no file '/opt/homebrew/share/luajit-2.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/usr/local/share/lua/5.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/usr/local/share/lua/5.1/lspconfig/server_configurations/omnisharp/init.lua'
	no file '/opt/homebrew/share/lua/5.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/opt/homebrew/share/lua/5.1/lspconfig/server_configurations/omnisharp/init.lua'
	no file './lspconfig/server_configurations/omnisharp.so'
	no file '/usr/local/lib/lua/5.1/lspconfig/server_configurations/omnisharp.so'
	no file '/opt/homebrew/lib/lua/5.1/lspconfig/server_configurations/omnisharp.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './lspconfig.so'
	no file '/usr/local/lib/lua/5.1/lspconfig.so'
	no file '/opt/homebrew/lib/lua/5.1/lspconfig.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
[ERROR 二 10/15 22:29:28 2024] ...m/lazy/mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:33: Failed to set up lspconfig integration. ...ig.nvim/lua/mason-lspconfig/server_config_extensions.lua:4: module 'lspconfig.server_configurations.omnisharp' not found:
	no field package.preload['lspconfig.server_configurations.omnisharp']
cache_loader: module lspconfig.server_configurations.omnisharp not found
cache_loader_lib: module lspconfig.server_configurations.omnisharp not found
	no file './lspconfig/server_configurations/omnisharp.lua'
	no file '/opt/homebrew/share/luajit-2.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/usr/local/share/lua/5.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/usr/local/share/lua/5.1/lspconfig/server_configurations/omnisharp/init.lua'
	no file '/opt/homebrew/share/lua/5.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/opt/homebrew/share/lua/5.1/lspconfig/server_configurations/omnisharp/init.lua'
	no file './lspconfig/server_configurations/omnisharp.so'
	no file '/usr/local/lib/lua/5.1/lspconfig/server_configurations/omnisharp.so'
	no file '/opt/homebrew/lib/lua/5.1/lspconfig/server_configurations/omnisharp.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './lspconfig.so'
	no file '/usr/local/lib/lua/5.1/lspconfig.so'
	no file '/opt/homebrew/lib/lua/5.1/lspconfig.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
[ERROR 二 10/15 22:31:49 2024] ...m/lazy/mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:33: Failed to set up lspconfig integration. ...ig.nvim/lua/mason-lspconfig/server_config_extensions.lua:4: module 'lspconfig.server_configurations.omnisharp' not found:
	no field package.preload['lspconfig.server_configurations.omnisharp']
cache_loader: module lspconfig.server_configurations.omnisharp not found
cache_loader_lib: module lspconfig.server_configurations.omnisharp not found
	no file './lspconfig/server_configurations/omnisharp.lua'
	no file '/opt/homebrew/share/luajit-2.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/usr/local/share/lua/5.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/usr/local/share/lua/5.1/lspconfig/server_configurations/omnisharp/init.lua'
	no file '/opt/homebrew/share/lua/5.1/lspconfig/server_configurations/omnisharp.lua'
	no file '/opt/homebrew/share/lua/5.1/lspconfig/server_configurations/omnisharp/init.lua'
	no file './lspconfig/server_configurations/omnisharp.so'
	no file '/usr/local/lib/lua/5.1/lspconfig/server_configurations/omnisharp.so'
	no file '/opt/homebrew/lib/lua/5.1/lspconfig/server_configurations/omnisharp.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file './lspconfig.so'
	no file '/usr/local/lib/lua/5.1/lspconfig.so'
	no file '/opt/homebrew/lib/lua/5.1/lspconfig.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
[ERROR 五 11/ 1 15:34:38 2024] ...e/nvim/lazy/mason.nvim/lua/mason-core/providers/init.lua:81: Provider "github" "get_latest_release" failed: spawn: wget failed with exit code 4 and signal 0. 
[ERROR 一 11/11 14:01:10 2024] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to download registry archive."
[ERROR 一 11/11 14:01:10 2024] ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"stylua\"".
[ERROR 一 11/11 14:01:10 2024] ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"lua-language-server\"".
[ERROR 三 11/27 10:06:25 2024] ...al/share/nvim/lazy/mason.nvim/lua/mason-core/process.lua:152: Failed to spawn process. cmd="luarocks", err="ENOENT: no such file or directory"
[ERROR 三 11/27 10:30:47 2024] ...im/lazy/mason.nvim/lua/mason-registry/sources/github.lua:146: Failed to install registry GitHubRegistrySource(repo=mason-org/mason-registry). "Failed to download registry archive."
[ERROR 三 11/27 10:30:47 2024] ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"stylua\"".
[ERROR 三 11/27 10:30:47 2024] ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:79: Cannot find package "\"lua-language-server\"".

Neovim version (>= 0.7)

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382

Operating system/version

Darwin MacBook-Pro-2.local 23.6.0 Darwin Kernel Version 23.6.0

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] ~
- ERROR Registry `github.com/mason-org/mason-registry [uninstalled]` is not installed.
  - ADVICE:
    - Run :MasonUpdate to install.

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.24.5 在 darwin23.2.0 上编译。`
- OK curl: `curl 8.7.1 (x86_64-apple-darwin23.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.61.0`
- OK gzip: `Ok`
- OK gtar: `tar (GNU tar) 1.35`
- OK bash: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. Could not find executable "luarocks" in path.
      
- 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
- OK Ruby: `ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]`
- OK Go: `go version go1.22.5 darwin/arm64`
- OK cargo: `cargo 1.81.0`
- OK node: `v22.9.0`
- OK RubyGem: `3.0.3.1`
- OK python: `Python 3.12.6`
- OK java: `openjdk version "11.0.23" 2024-04-16 LTS`
- OK julia: `julia version 1.10.5`
- OK npm: `10.8.3`
- OK javac: `javac 11.0.23`
- OK pip: `pip 24.2 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 60. Limit: 60. Reset: 三 11/27 11:35:05 2024.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant