-
Notifications
You must be signed in to change notification settings - Fork 167
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
Closing vimspector tab can raise error or close wrong tab #771
Comments
The snippet in
|
Thanks for the report. I'm not sure this is fixable because neovim... neovim/neovim#16327. Feel free to badger them to fix this - it's the only way. It seems that although tabs aren't correctly invalidated, their tab numbers are updated before TabClosed is called, so there's no way for Vimspector to know that you closed a tab which wasn't the vimspector tab but is now. |
I think this actually broken in Vim too, but in a different (worse?) way. I think we end up closing the wrong tab sometimes :( |
Description
Debugger quit exceptionally when closing a new tab that inserted before vimspector tab.
I found that vimspector session can be queried by tabpagenr in neovim, but that inserting a new tab can lead tabpagenr changed.
Works in vim?
Only broken in Neovim
Works with clean config?
Yes
Sample project works?
Reproducable with sample project
Minimal Reproduction
List of steps to reproduce:
tabpagenr()-1 tabnew
Expected Behaviour
Debugger don't quit.
Actual Behaviour
Debugger quit.
Additional information
No response
Installation Type
Plugin Manager (git clone)
Vimspector version
latest
Debug Info
No response
Log file
No response
Vim version
Python version
No response
Neovim diagnostics
No response
Operating System
No response
Declaration
The text was updated successfully, but these errors were encountered: