require("mason-registry").get_package("...") returns error "cannot find package..." sometimes
Opened this issue · 2 comments
simonhughxyz commented
I've searched open issues for similar requests
- Yes
I've recently downloaded the latest plugin version of mason.nvim
- Yes
Problem description
When using mason_registry.get_package("...")
on any package, sometimes when starting nvim it results in a cannot find package...
error, other times it does not. There does not seem to be any apparent pattern or reason to this.
Expected behavior
To return the mason package without error.
Steps to reproduce
- Install mason package
- Use
mason_registry.get_package("...")
Neovim version (>= 0.7)
NVIM v0.10.0-dev-1825+gd65c6a0ba
Build type: RelWithDebInfo
LuaJIT 2.1.1702233742
Run "nvim -V1 -v" for more info
Operating system/version
Void linux 6.6.18_1
Healthcheck output
==============================================================================
diffview: require("diffview.health").check()
Checking plugin dependencies ~
- OK nvim-web-devicons installed.
Checking VCS tools ~
- The plugin requires at least one of the supported VCS tools to be valid.
- OK Git found.
- OK Git is up-to-date. (2.44.0)
- WARNING Configured `hg_cmd` is not executable: 'hg'
==============================================================================
dressing: require("dressing.health").check()
dressing.nvim ~
- OK vim.ui.input active
- OK vim.ui.select active: telescope
==============================================================================
gp: require("gp.health").check()
gp.nvim checks ~
- OK require('gp') succeeded
- OK require('gp').setup() has been called
- OK config.openai_api_key is set
- OK curl is installed
- OK grep is installed
- OK ln is installed
- WARNING sox is not installed
- OK no deprecated config options
==============================================================================
lazy: require("lazy.health").check()
lazy.nvim ~
- OK Git installed
- OK no existing packages found by other package managers
- OK packer_compiled.lua not found
==============================================================================
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-03-03-silly-home` 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.21.4 built on linux-gnu.`
- OK curl: `curl 8.6.0 (x86_64-unknown-linux-gnu) libcurl/8.6.0 OpenSSL/3.1.5 zlib/1.3.1 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.59.0`
- OK gzip: `gzip 1.13`
- OK tar: `tar (GNU tar) 1.35`
- OK bash: `GNU bash, version 5.2.21(1)-release (x86_64-unknown-linux-gnu)`
- OK sh: `Ok`
mason.nvim [Languages] ~
- OK cargo: `cargo 1.76.0`
- WARNING Composer: not available
- ADVICE:
- spawn: composer failed with exit code - and signal -. composer is not executable
- OK Go: `go version go1.22.0 linux/amd64`
- OK Ruby: `ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux]`
- OK PHP: `PHP 8.2.13 (cli) (built: Jan 4 2024 02:54:05) (NTS)`
- 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
- OK python: `Python 3.12.2`
- OK node: `v18.19.1`
- OK luarocks: `/usr/bin/luarocks 3.9.1`
- OK RubyGem: `3.4.19`
- OK npm: `10.2.4`
- OK pip: `pip 24.0 from /usr/lib/python3.12/site-packages/pip (python 3.12)`
- OK python venv: `Ok`
mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 1. Remaining: 59. Limit: 60. Reset: Mon 04 Mar 2024 00:31:36 GMT.
Install and authenticate via gh-cli to increase rate limit.
==============================================================================
null-ls: require("null-ls.health").check()
- OK stylua: the command "stylua" is executable.
- ERROR selene: the command "selene" is not executable.
- trail-space: cannot verify if the command is an executable.
- OK black: the command "black" is executable.
- spell: cannot verify if the command is an executable.
- OK codespell: the command "codespell" is executable.
- OK write_good: the command "write-good" is executable.
- OK prettierd: the command "prettierd" is executable.
- OK markdownlint: the command "markdownlint" is executable.
==============================================================================
nvim: require("nvim.health").check()
Configuration ~
- OK no issues found
Runtime ~
- OK $VIMRUNTIME: /usr/local/share/nvim/runtime
Performance ~
- OK Build type: RelWithDebInfo
Remote Plugins ~
- OK Up to date
terminal ~
- key_backspace (kbs) terminfo entry: `key_backspace=\177`
- key_dc (kdch1) terminfo entry: `key_dc=\E[3~`
- $COLORTERM="truecolor"
==============================================================================
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- WARNING `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
- OK `node` found v18.19.1 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: cc (GCC) 13.2.0
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "x86_64",
release = "6.6.18_1",
sysname = "Linux",
version = "#1 SMP PREEMPT_DYNAMIC Mon Feb 26 01:22:07 UTC 2024"
} ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- c ✓ ✓ ✓ ✓ ✓
- comment ✓ . . . .
- cpp ✓ ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓ ✓
- csv ✓ . . . .
- git_config ✓ . ✓ . ✓
- git_rebase ✓ . . . ✓
- gitattributes ✓ ✓ . . ✓
- gitcommit ✓ . . . ✓
- gitignore ✓ . . . .
- go ✓ ✓ ✓ ✓ ✓
- gpg ✓ . . . ✓
- html ✓ ✓ ✓ ✓ ✓
- http ✓ . . . ✓
- ini ✓ . ✓ . .
- javascript ✓ ✓ ✓ ✓ ✓
- jq ✓ ✓ . . ✓
- json ✓ ✓ ✓ ✓ .
- lua ✓ ✓ ✓ ✓ ✓
- make ✓ . ✓ . ✓
- markdown ✓ . ✓ ✓ ✓
- markdown_inline ✓ . . . ✓
- norg ✓ . ✓ . ✓
- norg_meta ✓ . . ✓ .
- org . . . . .
- perl ✓ . ✓ . ✓
- php ✓ ✓ ✓ ✓ ✓
- python ✓ ✓ ✓ ✓ ✓
- query ✓ ✓ ✓ ✓ ✓
- r ✓ ✓ . ✓ ✓
- regex ✓ . . . .
- requirements ✓ . . . ✓
- rst ✓ ✓ . . ✓
- sql ✓ . . ✓ ✓
- ssh_config ✓ ✓ ✓ ✓ ✓
- tmux ✓ . . . ✓
- toml ✓ ✓ ✓ ✓ ✓
- typescript ✓ ✓ ✓ ✓ ✓
- vim ✓ ✓ ✓ . ✓
- vimdoc ✓ . . . ✓
- xml ✓ ✓ ✓ ✓ ✓
- yaml ✓ ✓ ✓ ✓ ✓
- zig ✓ ✓ ✓ ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
==============================================================================
provider: require("provider.health").check()
Clipboard (optional) ~
- OK Clipboard tool found: wl-copy
Python 3 provider (optional) ~
- `g:python3_host_prog` is not set. Searching for python3 in the environment.
- Executable: /usr/bin/python3
- Python version: 3.12.2
- pynvim version: 0.5.0
- OK Latest pynvim is installed.
Python virtualenv ~
- OK no $VIRTUAL_ENV
Ruby provider (optional) ~
- Ruby: ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x86_64-linux]
- WARNING `neovim-ruby-host` not found.
- ADVICE:
- Run `gem install neovim` to ensure the neovim RubyGem is installed.
- Run `gem environment` to ensure the gem bin directory is in $PATH.
- If you are using rvm/rbenv/chruby, try "rehashing".
- See :help |g:ruby_host_prog| for non-standard gem installations.
- You may disable this provider (and warning) by adding `let g:loaded_ruby_provider = 0` to your init.vim
Node.js provider (optional) ~
- Node.js: v18.19.1
- WARNING Missing "neovim" npm (or yarn, pnpm) package.
- ADVICE:
- Run in shell: npm install -g neovim
- Run in shell (if you use yarn): yarn global add neovim
- Run in shell (if you use pnpm): pnpm install -g neovim
- You may disable this provider (and warning) by adding `let g:loaded_node_provider = 0` to your init.vim
Perl provider (optional) ~
- WARNING "Neovim::Ext" cpan module is not installed
- ADVICE:
- See :help |provider-perl| for more information.
- You may disable this provider (and warning) by adding `let g:loaded_perl_provider = 0` to your init.vim
==============================================================================
telescope: health#telescope#check
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 14.1.0
- OK fd: found fd 9.0.0
===== Installed extensions ===== ~
Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured
Telescope Extension: `harpoon` ~
- No healthcheck provided
Telescope Extension: `neorg` ~
- No healthcheck provided
Telescope Extension: `projects` ~
- No healthcheck provided
Telescope Extension: `tmux` ~
- No healthcheck provided
==============================================================================
vim.lsp: require("vim.lsp.health").check()
- LSP log level : WARN
- Log path: /home/simon/.local/state/nvim/lsp.log
- Log size: 3521 KB
vim.lsp: Active Clients ~
- No active clients
==============================================================================
vim.treesitter: require("vim.treesitter.health").check()
- Nvim runtime ABI version: 14
- OK Parser: bash ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/bash.so
- OK Parser: c ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/c.so
- OK Parser: comment ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/comment.so
- OK Parser: cpp ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/cpp.so
- OK Parser: css ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/css.so
- OK Parser: csv ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/csv.so
- OK Parser: git_config ABI: 13, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/git_config.so
- OK Parser: git_rebase ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/git_rebase.so
- OK Parser: gitattributes ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/gitattributes.so
- OK Parser: gitcommit ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/gitcommit.so
- OK Parser: gitignore ABI: 13, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/gitignore.so
- OK Parser: go ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/go.so
- OK Parser: gpg ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/gpg.so
- OK Parser: html ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/html.so
- OK Parser: http ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/http.so
- OK Parser: ini ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/ini.so
- OK Parser: javascript ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/javascript.so
- OK Parser: jq ABI: 13, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/jq.so
- OK Parser: json ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/json.so
- OK Parser: lua ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/lua.so
- OK Parser: make ABI: 13, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/make.so
- OK Parser: markdown ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/markdown.so
- OK Parser: markdown_inline ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/markdown_inline.so
- OK Parser: norg ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/norg.so
- OK Parser: norg_meta ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/norg_meta.so
- OK Parser: org ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/org.so
- OK Parser: perl ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/perl.so
- OK Parser: php ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/php.so
- OK Parser: python ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/python.so
- OK Parser: query ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/query.so
- OK Parser: r ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/r.so
- OK Parser: regex ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/regex.so
- OK Parser: requirements ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/requirements.so
- OK Parser: rst ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/rst.so
- OK Parser: sql ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/sql.so
- OK Parser: ssh_config ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/ssh_config.so
- OK Parser: tmux ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/tmux.so
- OK Parser: toml ABI: 13, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/toml.so
- OK Parser: typescript ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/typescript.so
- OK Parser: vim ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/vim.so
- OK Parser: vimdoc ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/vimdoc.so
- OK Parser: xml ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/xml.so
- OK Parser: yaml ABI: 13, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/yaml.so
- OK Parser: zig ABI: 14, path: /home/simon/.local/share/nvim/lazy/nvim-treesitter/parser/zig.so
==============================================================================
which-key: require("which-key.health").check()
WhichKey: checking conflicting keymaps ~
- WARNING conflicting keymap exists for mode **"i"**, lhs: **"<C-F>"**
- rhs: `<Cmd>exe v:count1 . "ToggleTerm size=80 direction=float"<CR>`
- WARNING conflicting keymap exists for mode **"o"**, lhs: **"an"**
- rhs: `<Cmd>lua require('various-textobjs').number('outer')<CR>`
- WARNING conflicting keymap exists for mode **"o"**, lhs: **"in"**
- rhs: `<Cmd>lua require('various-textobjs').number('inner')<CR>`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **" cs"**
- rhs: `<Cmd>lua require('textcase').current_word('to_snake_case')<CR>`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"ys"**
- rhs: `<Plug>(nvim-surround-normal)`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"yS"**
- rhs: `<Plug>(nvim-surround-normal-line)`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"m"**
- rhs: `<Cmd>lua require'marks'.set()<CR>`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"gb"**
- rhs: `<Plug>(comment_toggle_blockwise)`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"gc"**
- rhs: `<Plug>(comment_toggle_linewise)`
- WARNING conflicting keymap exists for mode **"n"**, lhs: **"dm"**
- rhs: `<Cmd>lua require'marks'.delete()<CR>`
- WARNING conflicting keymap exists for mode **"v"**, lhs: **"in"**
- rhs: `<Cmd>lua require('various-textobjs').number('inner')<CR>`
- WARNING conflicting keymap exists for mode **"v"**, lhs: **"an"**
- rhs: `<Cmd>lua require('various-textobjs').number('outer')<CR>`
Screenshots
No response
Owen000 commented
I'm facing the same error (with tsserver)
loftyshadow commented