Comments (11)
The neovim is not finding the LSP in the neovim PATH because it has not yet been added to the neovim PATH. This task is handled by Mason
. But if nvim-lspconfig
tries to access the LSP server before the appropriate PATH gets added by Mason
then we encounter the error:
Spawning language server with cmd: `lua-language-server` failed. The language server is either not installed, missing from PATH, or not executable.
The solution is given here:
williamboman/nvim-lsp-installer#509 (reply in thread)
So you need to make sure that Mason
gets loaded before nvim-lspconfig
does, i.e. require("mason").setup()
runs before require("nvim-lspconfig").setup()
If you are using Lazy.nvim
then this solves the problem, adding mason
as a dependency of nvim-lspconfig
.
{
"neovim/nvim-lspconfig",
dependencies = {
"williamboman/mason.nvim",
},
}
from kickstart.nvim.
You don't have any other configuration?
from kickstart.nvim.
I'm also getting lua errors. I've tried deleting all the directories and starting over. Also upgraded all packages with brew
90 ## The following errors have been detected:
91 - ERROR: vim(highlights): ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 2765 for language vim
92 vim(highlights) is concatenated from the following files:
93 | [ERROR]:"/Users/martinphee/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/vim/highlights.scm", failed to load: ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 2765 for language vim
from kickstart.nvim.
No I moved the whole /nvim
dir to somewhere else before starting this. @tjdevries
This issue was happening in v8.1.0
and v8.0.0
, I fixed it by installing v0.9.0-dev
.
from kickstart.nvim.
Hm, 0.9 fixed it for you?
from kickstart.nvim.
yes
from kickstart.nvim.
Can you try with latest version of how we're initializing and running the servers? should be better now.
from kickstart.nvim.
Yes, thanks @tjdevries, the language server is fixed. But I still get this error in 0.8.1
version:
from kickstart.nvim.
Have you run ":TSUpdate" in the old version?
from kickstart.nvim.
I think "yes". I can't be sure thought, hard to remember as I tried everything!
from kickstart.nvim.
Will close now cause I think all of this should be handled by Mason now.
from kickstart.nvim.
Related Issues (20)
- Align color scheme with kitty HOT 5
- Initial start causes OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0 on plugin install on Windows HOT 5
- References highlight blinks every time the cursor is moved HOT 5
- LSP for html config HOT 8
- Telescope bindings don't work. HOT 11
- How do I add language specific LSP keymaps? HOT 6
- Language server does not install using termux on android HOT 1
- Language servers removed from `servers` table still take affect HOT 3
- telescope(?) issue in `init.lua` HOT 6
- Can we please enable DISCUSSIONS on this repo? HOT 4
- Telescope Current Buffer Fuzzy Find is showing last result HOT 4
- Debug Test For Go Not Working HOT 7
- Isnβt `hlsearch` the default option? Iβm missing something?
- Custom location of `lazy-lock.json` file HOT 3
- turn inlay hints on by default? HOT 6
- Initialization problem HOT 4
- Very slow with large C++ files in insert mode. HOT 2
- neodev has been deprecated in favour of lazydev
- Help with custom plugins / not loading HOT 3
- Warning on missing a parameter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kickstart.nvim.