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.22k stars 258 forks source link

Mason won't install Ltex-ls #1729

Closed jacopoaltieri closed 3 weeks ago

jacopoaltieri commented 3 weeks ago

Greetings. I have a neovim-lua configuration with mason as my LSP provider. In my mason.lua file i correctly have


            -- list of servers for mason to install
            ensure_installed = {
                "tsserver",
                "html",
                "cssls",
                "tailwindcss",
                "svelte",
                "lua_ls",
                "ltex",
                "graphql",
                "emmet_ls",
                "prismals",
                "pyright",
            },
        })```

However, when opening a .tex file i get the following error message: " ...ps/neovim/current/share/nvim/runtime/lua/vim/lsp/rpc.lua:800: Spawning language server with cmd: `{ "ltex-ls.bat" }` failed. The language server is either not installed, missing from PATH, or not executable."

If I run `:LspInstall` I am given the option to install ltex. I complete the installation, reopen vim, but the problem persists. Moreover, if I run once again the command, the same option is given to me.

I am pretty new to the neovim and mason world, so If I didn't provide some information needed please ask me for it and I will post everything relevant.
Thanks

_Originally posted by @jacopoaltieri in https://github.com/williamboman/mason.nvim/discussions/1728_