nvim-lua / lsp-status.nvim

Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline
MIT License
625 stars 41 forks source link

lsp-status/messaging.lua:98: attempt to index field 'handlers' (a nil value) #22

Closed isvicy closed 3 years ago

isvicy commented 3 years ago
Error detected while processing /Users/aaron/github/dotfiles/neovim/.config/nvim/plugin/lsp.vim:
line   11:
E5113: Error while calling lua chunk: ...acker/start/lsp-status.nvim/lua/lsp-status/messaging.lua:98: attempt to index field 'handlers' (a nil value)

just stealing your dotfile in your repo. Above problems occurs. Does this a setting problem or problem of lsp-status?

BTW nvim version is NVIM v0.5.0-828-g0a95549d6

wbthomason commented 3 years ago

This is an error in the README; I need to update the example to use callbacks rather than handlers (this was recently changed in Neovim)

wbthomason commented 3 years ago

Wait, actually, I'm wrong about that. What's your lsp-status version? The latest version should not have this problem (after d9def2c).

wbthomason commented 3 years ago

Also, please make sure your nvim version is built from the latest master; you need to have this PR merged: https://github.com/neovim/neovim/pull/12655

isvicy commented 3 years ago

upgrade neovim to latest master solved this problem. thx!