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

Installing awk-language-server always fails #1808

Open
3 tasks done
JohnWilliston opened this issue Oct 11, 2024 · 2 comments
Open
3 tasks done

Installing awk-language-server always fails #1808

JohnWilliston opened this issue Oct 11, 2024 · 2 comments

Comments

@JohnWilliston
Copy link

I've searched open issues for similar requests

  • Yes

I've manually reviewed logs to find potential errors

  • Yes

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

  • Yes

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
Copy link
Author

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.

@JohnWilliston
Copy link
Author

I suppose I should also add that Mason refuses to recognize the awk-language-server even when I've installed it manually. It keeps insisting it's not installed. I have subsequently learned that I could manually install it with the very command that Mason says fails for some unknown reason, then add just a bit of config to my nvim-lspconfig setup.

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