Closed dimbleby closed 3 years ago
it should be an easy fix if you want to PR it, just try wrapping dofile in a protected call
indeed that seems to do it, PR made
I am not sure if wrapping the dofile
in a pcall
helps here as it breaks texlab. Essentially, in the latest commit, when the config for texlab is loaded, the new table for texlab is not created in configs.__newindex
.
I replaced the dofile
here with the old call to require
. This works fine.
I am in the process of debugging why this happens, but would love some help.
Texlab works fine for me, can you reproduce with our minimal config? I haven't seen your config, but are you doing something like this? https://github.com/neovim/nvim-lspconfig/pull/861#issuecomment-825862325
I'd recommend matching the recommended method of adding custom language servers per our readme. Anything else is unsupported (if you want, you're free to override our internal use of dofile with require).
No problem! I'm guessing it's what nanotee commented on
Turns out the issue was this line. Not sure why, but removing that (unnecessary) line solves my issue.
How to reproduce the problem from neovim startup
I use the YANG language server and, since it is not natively supported here, I have added custom configuration for it following the pattern in the README, like this:
With configuration like that, open neovim.
Actual behaviour
Expected behaviour
Everything should be fine!
git bisect
reckons that this was introduced at 04f223f3d08388eac74a571516145154bf5af64c.Minimal init.vim or init.lua and code sample
https://github.com/neovim/nvim-lspconfig#example-custom-config
Health check
Checkhealth result
health#lspconfig#check ======================================================================== ## Checking language server protocol configuration - ERROR: gopls: The given command "gopls" is not executable. - INFO: terraformls: configuration checked. - INFO: jedi_language_server: configuration checked. - INFO: rust_analyzer: configuration checked. - ERROR: ccls: The given command "ccls" is not executable.LSP log
N/A