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

Random error from :LspSaga hover_doc #1473

Open
mikehaertl opened this issue Jul 19, 2024 · 1 comment
Open

Random error from :LspSaga hover_doc #1473

mikehaertl opened this issue Jul 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mikehaertl
Copy link
Contributor

mikehaertl commented Jul 19, 2024

Describe the bug

I randomly get this error from LspSaga:

image

For context, my ShowHelp() just calls :LspSaga hover_doc:

" Show documentation for word under cursor using builtin :help for vim and
" help files and LSP for everything else
function! ShowHelp()
    if index(['vim','help'], &filetype) >= 0
        execute 'vert bo h '.expand('<cword>')
    else
        execute 'Lspsaga hover_doc'
    endif
endfunction

Steps to reproduce

I have no clear recipe to reproduce the issue.

Expected behavior

No error.

Neovim version (nvim -v)

0.10.0

lspsaga commit

6f920cf

Terminal name/version

Gnome Terminal 3.44.0

@DrunkenToast
Copy link

I often get this error as well with ts_ls.

Error executing Lua callback: ...ellar/neovim/0.10.2_1/share/nvim/runtime/lua/vim/lsp.lua:900: attempt to index local 'client' (a nil value)
stack traceback:
        ...ellar/neovim/0.10.2_1/share/nvim/runtime/lua/vim/lsp.lua:900: in function 'cancel'
        ...local/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/hover.lua:11: in function 'clean'
        ...local/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/hover.lua:344: in function 'render_hover_doc'
        ...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/command.lua:26: in function <...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/command.lua:25>
        ...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/command.lua:80: in function 'load_command'
        ...r/.local/share/nvim/lazy/lspsaga.nvim/plugin/lspsaga.lua:8: in function <...r/.local/share/nvim/lazy/lspsaga.nvim/plugin/lspsaga.lua:7>
Press ENTER or type command to continue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants