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.98k stars 281 forks source link

Mason doesn't register commands #1818

Closed paulusel closed 1 month ago

paulusel commented 1 month ago

I've searched open issues for similar requests

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

Problem description

Installed mason with lazy as a dependency for lsp-zero. Lazy says mason is loaded. Checkhealth reports no problems. But there is no Mason command and its variants(:Mason not editor command). But I can find help pages of mason.

Expected behavior

Expected to find mason command

Steps to reproduce

Install meson with lazy

Neovim version (>= 0.7)

NVIM v0.10.2 Build type: RelWithDebInfo LuaJIT 2.1.1727870382

Operating system/version

Linux 6.6.58-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 23 Oct 2024 17:28:15 +0000 x86_64 GNU/Linux

Healthcheck output

==============================================================================
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] ~

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 built on linux-gnu.`
- OK curl: `curl 8.10.1 (x86_64-pc-linux-gnu) libcurl/8.10.1 OpenSSL/3.3.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.64.0 nghttp3/1.6.0`
- OK gzip: `gzip 1.13`
- OK tar: `tar (GNU tar) 1.35`
- OK bash: `GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- OK Go: `go version go1.23.2 linux/amd64`
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- OK cargo: `cargo 1.82.0 (8f40fc59f 2024-08-21)`
- OK Ruby: `ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]`
- OK node: `v22.10.0`
- OK PHP: `PHP 8.3.13 (cli) (built: Oct 23 2024 07:04:22) (NTS)`
- OK luarocks: `/usr/bin/luarocks 3.11.1`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.12.7`
- OK java: `openjdk version "23" 2024-09-17`
- OK RubyGem: `3.5.16`
- OK npm: `10.9.0`
- OK javac: `javac 23`
- OK pip: `pip 24.2 from /usr/lib/python3.12/site-packages/pip (python 3.12)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 5000. Limit: 5000. Reset: Fri 25 Oct 2024 11:40:37 AM EAT.

Screenshots

No response

paulusel commented 1 month ago

Running setup with lua require('mason').setup() seemed to do it. So I made config spec of lazy to be

config=function()
     require('mason').setup()
end

And now it seems like fixed.