-
Notifications
You must be signed in to change notification settings - Fork 35
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
Invalid window id when closing windows #72
Comments
Ran into this issue when I use asyncrun.vim to run python code in a split terminal window. When I closed the terminal, this error occured. |
@numirias hi! Any chance/plans to look into this? Thanks in advance :) |
I am seeing this often with vim-fugitive (tpope/vim-fugitive#1634). From adding some printing etc it appears the window is gone when Semshi asks for the cursor position there.
Here the handler ( I might look into this a bit more later, but it might also make sense to unregister via |
This should not be necessary in general, since it gets triggered via `CursorMoved` already. It also might trigger an error due to `self._vim.current.window` not being a valid window anymore, when `cursor` gets accessed [1]. It also should not be using the global current window's cursor (which might be for another buffer!) to mark selected nodes in the buffer. 1: numirias#72 This might trigger
This should not be necessary in general, since it gets triggered via `CursorMoved` already. It also might trigger an error due to `self._vim.current.window` not being a valid window anymore, when `cursor` gets accessed [1]. It also should not be using the global current window's cursor (which might be for another buffer!) to mark selected nodes in the buffer. 1: numirias#72
#94 should help here / fix this, please give it a try. |
Bumping this up with #94! (Actually similar errors can happen somewhere else, such as |
This should not be necessary in general, since it gets triggered via `CursorMoved` already. It also might trigger an error due to `self._vim.current.window` not being a valid window anymore, when `cursor` gets accessed [1]. It also should not be using the global current window's cursor (which might be for another buffer!) to mark selected nodes in the buffer. 1: numirias#72
Consider the following minimal init.vim file:
Now open nvim and, as in the GIF, do:
:e a.py
and add a single line# foo
.:vsp
:lvim foo % | lopen
<Ctrl-w>
mappings)windo if &buftype == 'quickfix' | lclose | endif
After 6. an
invalid window id
error is triggered:The text was updated successfully, but these errors were encountered: