diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-10-14 20:43:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 00:43:25 +0000 |
| commit | bf4710d8c398b0634029f0a5be7622dfc216f50d (patch) | |
| tree | 663914483946cc3455a15e019a8c9a776ae8ee06 /test/functional/vimscript/executable_spec.lua | |
| parent | c8d6f3cf8a121985e6b2d96b27fdb6131cc7309e (diff) | |
| download | rneovim-bf4710d8c398b0634029f0a5be7622dfc216f50d.tar.gz rneovim-bf4710d8c398b0634029f0a5be7622dfc216f50d.tar.bz2 rneovim-bf4710d8c398b0634029f0a5be7622dfc216f50d.zip | |
fix(lsp): "attempt to index nil config" #36189
Problem:
If a client doesn't have a config then an error may be thrown.
Probably caused by: 2f78ff816b03661b5f74d0624e973eaca0d64ef1
Lua callback: …/lsp.lua:442: attempt to index local 'config' (a nil value)
stack traceback:
…/lsp.lua:442: in function 'can_start'
…/lsp.lua:479: in function 'lsp_enable_callback'
…/lsp.lua:566: in function <…/lsp.lua:565>
Solution:
Not all clients necessarily have configs.
- Handle `config=nil` in `can_start`.
- If user "enables" an invalid name that happens to match a *client*
name, don't auto-detach the client.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions