-
-
Notifications
You must be signed in to change notification settings - Fork 325
Open
Labels
Description
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 am using the git-bash in Windows. I am also using the Kickstart.nvim as my starting point.
I have set the shell in Neovim as the bash using,
vim.opt_global.shell = '"C:\\Program Files\\Git\\bin\\bash.exe" -f'
When I run :LspInfo, it is showing that,
- Client: `ltex` (id: 2, bufnr: [1])
root directory: Running in single file mode.
filetypes: bib, gitcommit, markdown, org, plaintex, rst, rnoweb, tex, pandoc, quarto, rmd, context, html, xhtml, mail, text
cmd: ~\AppData\Local\nvim-data\mason\bin\ltex-ls.CMD
version: `?` (Failed to get version) Tried:
`C:\Users\Kai\AppData\Local\nvim-data\mason\bin\ltex-ls.CMD --version`
`C:\Users\Kai\AppData\Local\nvim-data\mason\bin\ltex-ls.CMD -version`
`C:\Users\Kai\AppData\Local\nvim-data\mason\bin\ltex-ls.CMD version`
`C:\Users\Kai\AppData\Local\nvim-data\mason\bin\ltex-ls.CMD --help`
I think the problem is, even though I am setting my shell to be bash, Mason is installing the cmd versions in the bin and so it cannot actually run the LSP properly.
Expected behavior
getting the right version
Steps to reproduce
- set the Neovim
shellasbash - install
ltex-ls - run
:LspInfo
Affected packages
All
Neovim version (>= 0.7)
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
Operating system/version
Windows 11 v23H2
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-11-12-dense-sharon` is installed.
mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send`
- WARNING wget: not available
- ADVICE:
- spawn: wget failed with exit code - and signal -. wget is not executable
- OK curl: `curl 7.84.0 (x86_64-w64-mingw32) libcurl/7.84.0 OpenSSL/1.1.1q (Schannel) zlib/1.2.12 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.3 libssh2/1.10.0 nghttp2/1.48.0
`
- OK gzip: `gzip 1.12`
- OK tar: `tar (GNU tar) 1.34`
- OK pwsh: `7.4.6 Microsoft Windows 10.0.22631 Win32NT
`
- OK 7z: `7-Zip 9.10 beta Copyright (c) 1999-2009 Igor Pavlov 2009-12-22
`
mason.nvim [Languages] ~
- WARNING Go: not available
- ADVICE:
- spawn: go failed with exit code - and signal -. go 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 Ruby: `ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x64-mingw-ucrt]
`
- OK cargo: `cargo 1.82.0 (8f40fc59f 2024-08-21)`
- 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 luarocks: unsupported version `luarocks 2.0.2
`
- ADVICE:
- Luarocks version must be >= 3.0.0.
- OK node: `v21.6.2
`
- OK python: `Python 3.11.3
`
- OK julia: `julia version 1.11.1`
- OK pip: `pip 24.3.1 from C:\Users\Kai\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)
`
- OK python venv: `Ok`
- OK npm: `10.2.4`
- OK RubyGem: `3.5.3
`
mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 5000. Limit: 5000. Reset: 11/12/2024 9:05:54 AM.
Screenshots or recordings
No response