Open fe2-Nyxar opened 1 month ago
local lsp = require("lsp-zero") require('mason').setup({}) require('mason-lspconfig').setup({ ensure_installed = { "lua_ls" --[["eslint", "tsserver", "bashls", "intelephense", "sqls", "cssls", "cssmodules_ls", "css_variables",--]] --"nil_ls" }, }) local lspconfig = require("lspconfig") lspconfig.lua_ls.setup({}) ``` and i got an error : ```client 1 quit with code 127 and 0 signal``` :LspLog's results
[start][date] LSP logging initiated [Error][date] ../vim/lsp/rcp.lua "rcp" "/home/.../.local/share/nvim/mason/bin/lua-language-server stderr "/home/.../.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server" stderr "/home/.../.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server/libexec/bin/lua-language-server" cannot execute: required file not found \n ```
it looks like it's trying to look for some executables but it can't find for some reason
NVIM v0.9.4 Build type: Release LuaJIT 2.1.1693350652
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: " /nix/store/.../share/nvim "
Linux nixos 6.1.91
:LspLog
lua_lsp for now
1- install lazy.vim 2- install lsp-zero and all other packages with it 3- copy and paste what i have wrote
It doesn't work, no autocompletion or anything like that
it should work :)
i don't know how to copy outside neovim
[START][2024-05-26 21:11:24] LSP logging initiated [ERROR][2024-05-26 21:11:24] .../vim/lsp/rpc.lua:734 "rpc" "/home/nyxar/.local/share/nvim/mason/bin/lua-language-server" "stderr" "/home/nyxar/.local/share/nvim/mason/bin/lua-language-server: line 3: /home/nyxar/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: cannot execute: required file not found\n" [ERROR][2024-05-26 21:11:33] .../vim/lsp/rpc.lua:734 "rpc" "/home/nyxar/.local/share/nvim/mason/bin/lua-language-server" "stderr" "/home/nyxar/.local/share/nvim/mason/bin/lua-language-server: line 3: /home/nyxar/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: cannot execute: required file not found\n" [ERROR][2024-05-26 21:11:50] .../vim/lsp/rpc.lua:734 "rpc" "/home/nyxar/.local/share/nvim/mason/bin/lua-language-server" "stderr" "/home/nyxar/.local/share/nvim/mason/bin/lua-language-server: line 3: /home/nyxar/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server: cannot execute: required file not found\n"
No response
I get the same thing but only on windows
does the issue solved if yes tell me how, having same issue on NixOS
Problem description
[start][date] LSP logging initiated [Error][date] ../vim/lsp/rcp.lua "rcp" "/home/.../.local/share/nvim/mason/bin/lua-language-server stderr "/home/.../.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server" stderr "/home/.../.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server/libexec/bin/lua-language-server" cannot execute: required file not found \n ```
Why do you think this is an issue with mason-lspconfig.nvim?
it looks like it's trying to look for some executables but it can't find for some reason
Neovim version (>= 0.7)
NVIM v0.9.4 Build type: Release LuaJIT 2.1.1693350652
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: " /nix/store/.../share/nvim "
Operating system/version
Linux nixos 6.1.91
I've manually reviewed the Nvim LPS client log (
:LspLog
) to find potential errorsI've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig
Affected language servers
lua_lsp for now
Steps to reproduce
1- install lazy.vim 2- install lsp-zero and all other packages with it 3- copy and paste what i have wrote
Actual behavior
It doesn't work, no autocompletion or anything like that
Expected behavior
it should work :)
LspInfo
LspLog
Healthcheck
Screenshots or recordings
No response