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.78k stars 273 forks source link

Installing awk-language-server always fails #1808

Open JohnWilliston opened 5 days ago

JohnWilliston commented 5 days ago

I've searched open issues for similar requests

I've manually reviewed logs to find potential errors

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

Problem description

I'm using nvim v0.10.1 on Windows 11 Pro x64. I've got mason installed along with mason-lspconfig and other plugins to enable LSPs for the languages I daily use. Most of them work just fine. But every time I open up mason with :Mason and try to install the awk-language-server, I end up with the following error showing up on the mason floating window.

◍ awk-language-server ▶ # [97/97] spawn: npm.cmd failed with exit code 1 and signal 0.

If I check the mason logs using :MasonLog, here's all I see:

[INFO 10/10/2024 22:01:02] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=awk-language-server) {} [ERROR 10/10/2024 22:01:09] ...m-data/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=awk-language-server) error=spawn: npm.cmd failed with exit code 1 and signal 0. I don't know how to fix this. Any ideas?

Expected behavior

I expect the awk-language-server LSP to be installed just like html, lua, pyright, and so many other LSPs did just fine.

Steps to reproduce

  1. Issue the :Mason command to open the plugin UI.
  2. Move the cursor down to the awk-language-server line and hit the 'I' key to install.

Affected packages

awk-language-server

Neovim version (>= 0.7)

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

Operating system/version

Windows 11 Pro x64

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-10-11-giant-motorcycle` 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 mingw32.
`
- OK curl: `curl 8.9.1 (Windows) libcurl/8.9.1 Schannel zlib/1.3 WinIDN
`
- OK gzip: `gzip 1.3.12
`
- OK tar: `bsdtar 3.7.2 - libarchive 3.7.2 zlib/1.2.5.f-ipp liblzma/5.4.3 bz2lib/1.0.8 libzstd/1.5.4 
`
- OK pwsh: `7.4.5 Microsoft Windows 10.0.22631 Win32NT
`
- OK 7z: `7-Zip (a) 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
`

mason.nvim [Languages] ~
- WARNING cargo: not available
  - ADVICE:
    - spawn: cargo failed with exit code - and signal -. cargo is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer.bat failed with exit code - and signal -. composer.bat is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- OK Go: `go version go1.23.2 windows/amd64`
- OK Ruby: `ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x64-mingw-ucrt]
`
- WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code - and signal -. javac is not executable
- OK node: `v22.9.0
`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.12.2
`
- OK java: `java version "1.8.0_421"
`
- OK pip: `pip 24.2 from C:\Python312\Lib\site-packages\pip (python 3.12)

`
- WARNING luarocks: unsupported version `luarocks 2.0.2
`
  - ADVICE:
    - Luarocks version must be >= 3.0.0.
- OK RubyGem: `3.5.16
`
- OK npm: `10.8.3`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 4. Remaining: 56. Limit: 60. Reset: 10/10/2024 22:07:16.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots or recordings

No response

JohnWilliston commented 5 days ago

Oh, and I meant to add but forgot that I can easily install the awk-language-server using npm at the command line either globally or normally without an error.