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

error installing haskell-language-server #370

Open
2 tasks
Wordluc opened this issue Mar 3, 2024 · 0 comments
Open
2 tasks

error installing haskell-language-server #370

Wordluc opened this issue Mar 3, 2024 · 0 comments

Comments

@Wordluc
Copy link

Wordluc commented Mar 3, 2024

Problem description

[ERROR 03/03/2024 18:06:13] ...acker\start\mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=haskell-language-server) error=spawn: pwsh failed with exit code 1 and signal 0.

configuration:

require("mason").setup()
require("mason-lspconfig").setup{
ensure_installed =
{
"omnisharp",
"biome",
"pyright",
"tsserver",
"lua_ls",
"vimls",
"hls"
},
automatic_installation = false,

}
require("lspconfig").lua_ls.setup {
settings = {
Lua = {
diagnostics = {
globals = {'vim'} }
}
}}
require("lspconfig").omnisharp.setup {}
require("lspconfig").biome.setup {}
require("lspconfig").pyright.setup {}
require("lspconfig").tsserver.setup {}
require("lspconfig").vimls.setup {}
require("lspconfig").hls.setup {}

Why do you think this is an issue with mason-lspconfig.nvim?

since i am not able to install a server(other server works)

Neovim version (>= 0.7)

nvim 0.9.5

Operating system/version

windows

I've manually reviewed the Nvim LPS client log (:LspLog) to find potential errors

  • Yes

I've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig

  • Yes

Affected language servers

hls (haskel)

Steps to reproduce

try to istanstall haskel throught mason

Actual behavior

i got an error

Expected behavior

have haskell-language-server

LspInfo

require("mason").setup()
require("mason-lspconfig").setup{
	ensure_installed =
	{
	"omnisharp",
	"biome",
	"pyright",
	"tsserver",
	"lua_ls",
	"vimls",
	"hls"
	},
	automatic_installation = false,


}
require("lspconfig").lua_ls.setup {
	settings = {
		Lua = {
			diagnostics = {
				globals = {'vim'} }
			}
		}}
require("lspconfig").omnisharp.setup {}
require("lspconfig").biome.setup {}
require("lspconfig").pyright.setup {}
require("lspconfig").tsserver.setup {}
require("lspconfig").vimls.setup {}
require("lspconfig").hls.setup {}

LspLog

[ERROR 03/03/2024 18:06:13] ...acker\start\mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=haskell-language-server) error=spawn: pwsh failed with exit code 1 and signal 0.

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-03-03-fickle-vinyl` is installed.

mason.nvim [Core utils] ~
- WARNING unzip: not available
  - ADVICE:
    - spawn: unzip failed with exit code - and signal -. unzip is not executable
- WARNING wget: not available
  - ADVICE:
    - spawn: wget failed with exit code - and signal -. wget is not executable
- OK curl: `curl 8.4.0 (Windows) libcurl/8.4.0 Schannel WinIDN
`
- WARNING gzip: not available
  - ADVICE:
    - spawn: gzip failed with exit code - and signal -. gzip is not executable
- OK tar: `bsdtar 3.6.2 - libarchive 3.6.2 zlib/1.2.5.f-ipp liblzma/5.2.5 bz2lib/1.0.8 libzstd/1.5.4 
`
- OK pwsh: `7.4.1 Microsoft Windows 10.0.22631 Win32NT
`
- WARNING 7z: not available
  - ADVICE:
    - spawn: 7z failed with exit code - and signal -. 7z is not executable

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING cargo: not available
  - ADVICE:
    - spawn: cargo failed with exit code - and signal -. cargo is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- WARNING Ruby: not available
  - ADVICE:
    - spawn: ruby failed with exit code - and signal -. ruby is not executable
- WARNING RubyGem: not available
  - ADVICE:
    - spawn: gem.cmd failed with exit code - and signal -. gem.cmd 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
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK node: `v20.11.1
`
- OK python: `Python 3.12.2
`
- OK java: `openjdk version "11.0.16.1" 2022-08-12 LTS
`
- OK javac: `javac 11.0.16.1
`
- OK npm: `10.2.4`
- OK pip: `pip 24.0 from C:\Python312\Lib\site-packages\pip (python 3.12)

`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 3. Remaining: 57. Limit: 60. Reset: 03/03/2024 18:39:06.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots or recordings

No response

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