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

bug v3: Preview goes on inifinite error loop if buffer is deleted while symbols / definitions are open. #426

Closed
3 tasks done
arieldd opened this issue May 11, 2024 · 1 comment · Fixed by #437
Closed
3 tasks done
Assignees
Labels

Comments

@arieldd
Copy link

arieldd commented May 11, 2024

Did you check docs and existing issues?

  • I have read all the trouble.nvim docs
  • I have searched the existing issues of trouble.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.10.0-dev-3116+gc1396afa7

Operating system/version

WSL - Ubuntu 22

Describe the bug

When closing a buffer via buffer delete (:bd) when either LSP symbols or definitions window is open, Preview keeps trying to index a null value and goes on an infinite error loop.

image

Steps To Reproduce

1- Open any file with LSP symbols support
2- Toggle LSP Symbols window
3- Close buffer with :bd
4- If it does not trigger on first try, navigate to one of the symbols and try again.

Expected Behavior

Either symbols / definitions windows close with the buffer or they stay open without errors.

@arieldd
Copy link
Author

arieldd commented May 12, 2024

This can also be triggered when attempting to open Symbols window when no buffer is open, e.g. from an Alpha Dashboard.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants