mason.nvim icon indicating copy to clipboard operation
mason.nvim copied to clipboard

No available packages

Open nilsj2 opened this issue 1 year ago • 5 comments

I've searched open issues for similar requests

  • [X] Yes

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

  • [X] Yes

Problem description

No available packages, when :checkhealth mason is run it does stalls the terminal and when I press Ctrl-c it results in a promise not resolve on time error.

Expected behavior

Packages showing up and healthcheck working

Steps to reproduce

  1. Build nightly version OR latest stable release of neovim on debian
  2. Use either lazyvim or nvchad setup
  3. Attempt to use mason

Neovim version (>= 0.7)

NVIM v0.11.0-dev-680+g4353996d0 Build type: RelWithDebInfo LuaJIT 2.1.1724512491 Run "nvim -V1 -v" for more info

Operating system/version

Linux tkpad 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux

Healthcheck output

Stalls indefinitely, pressing Ctrl-c gives this result

mason: require("mason.health").check()

mason.nvim ~
- ERROR Failed to run healthcheck for "mason" plugin. Exception:
  ...j/.local/share/nvim/lazy/mason.nvim/lua/mason/health.lua:315: async function failed to resolve in time.

Screenshots

image image

nilsj2 avatar Aug 30 '24 11:08 nilsj2

having same issue here

AlphaTechnolog avatar Sep 05 '24 20:09 AlphaTechnolog

even MasonUpdate keeps hanging

AlphaTechnolog avatar Sep 05 '24 20:09 AlphaTechnolog

Same here

version:

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1723675123
Run "nvim -V1 -v" for more info

Tried with my custom config and AstroNvim and in both cases the behaviour is the same as reported here.

mwojtyna avatar Sep 06 '24 22:09 mwojtyna

I think I found the issue. Mason's web api, which is used to check for updates to packages, is hosted on vercel. Output of dig api.mason-registry.dev:

;; ANSWER SECTION:
api.mason-registry.dev. 3342    IN      CNAME   cname.vercel-dns.com.
cname.vercel-dns.com.   972     IN      A       76.76.21.241
cname.vercel-dns.com.   972     IN      A       76.76.21.142

It seems like my ISP has erroneously banned vercel or something, because vercel.com never loads for me, same with any website hosted on vercel like uploadthing.com. Can anyone here confirm if vercel is working for them?

mwojtyna avatar Sep 08 '24 21:09 mwojtyna

I think I found the issue. Mason's web api, which is used to check for updates to packages, is hosted on vercel. Output of dig api.mason-registry.dev:

;; ANSWER SECTION:
api.mason-registry.dev. 3342    IN      CNAME   cname.vercel-dns.com.
cname.vercel-dns.com.   972     IN      A       76.76.21.241
cname.vercel-dns.com.   972     IN      A       76.76.21.142

It seems like my ISP has erroneously banned vercel or something, because vercel.com never loads for me, same with any website hosted on vercel like uploadthing.com. Can anyone here confirm if vercel is working for them?

Yep, this is it! My universities student website wasn't working either I guess they use vercel or some derivative of it. This is the result of dig

;; ANSWER SECTION: medicinska.se. 1564 IN A 76.76.21.164 medicinska.se. 1564 IN A 76.76.21.61

nilsj2 avatar Sep 09 '24 06:09 nilsj2