Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing vim.schedule lua callback: ...vim/0.10.0/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:237: attempt to get length of local 'diagnostics' (a nil value) #14

Closed
dcy opened this issue Jun 21, 2024 · 1 comment

Comments

@dcy
Copy link

dcy commented Jun 21, 2024

When i open xxx.proto, or in insert mode. I will get this error:

Error executing vim.schedule lua callback: ...vim/0.10.0/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:237: attempt
 to get length of local 'diagnostics' (a nil value)
stack traceback:
        ...vim/0.10.0/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:237: in function 'handle_diagnostics'
        ...vim/0.10.0/share/nvim/runtime/lua/vim/lsp/diagnostic.lua:293: in function 'on_publish_diagnostics'
        ...aiyun/.local/share/nvim/lazy/go.nvim/lua/go/lsp_diag.lua:38: in function 'handler'
        .../neovim/0.10.0/share/nvim/runtime/lua/vim/lsp/client.lua:1005: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
@BrotifyPacha
Copy link
Contributor

This should fix it #15

@lasorda lasorda closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants