-
-
Notifications
You must be signed in to change notification settings - Fork 623
Vim:E444: Cannot close last window #2191
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
Comments
Unfortunately I cannot reproduce with "Clean Room" Replication, the file opens without any issue. It appears that you have many other plugins and automations running that may interfere. Please produce a clean room replicator so that we can reproduce / fix this. |
@alex-courtis Thank you for your reply, as investigated, it's related to the "noice" plugin |
@alex-courtis this is the minimal config to reproduce .config/nvim/init.lua
|
Just found there's no issue if I close the notify messagebox before I enter the new created file. It looks like the winnr related. |
I was not able to replicate with the above configuration:
That is not a clean room configuration - there are a lot of plugins there. Please produce a Clean Room Replication without lazy or any of the other plugins, except for those absolutely needed to replicate the issue. |
Ya, I see, it's plugin compatibility issue. |
Minimal config
reproduce steps:
CleanShot.2023-05-08.at.22.13.42.mp4 |
Reproduced with clean room config:
|
This is timing related - problem only occurs when opening the file whilst the noice info messages is shown. Removing |
The issue appears to be that noice creates 2 new floating windows for the message. @virezox I would be most grateful if you tested a fix: cd /path/to/nvim-tree.lua
git pull
git checkout 2191-disregard-floating-windows-when-opening-window-on-edit |
@alex-courtis Perfect, it was fixed as tested. |
@alex-courtis I'm getting this error and I don't use noice. |
Please open new issue following clean room replication. https://github.com/nvim-tree/nvim-tree.lua/wiki/Troubleshooting#clean-room-replication |
Description
E5108: Error executing lua: ...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:205: Vim:E444: Cannot close last window
stack traceback:
[C]: in function 'nvim_win_close'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:205: in function 'close'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:214: in function 'close_this_tab_only'
...cal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/view.lua:227: in function 'close'
...y/nvim-tree.lua/lua/nvim-tree/actions/node/open-file.lua:348: in function 'fn'
...ocal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/api.lua:139: in function 'edit'
...ocal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/api.lua:149: in function 'f'
...ocal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/api.lua:32: in function <...ocal/share/nvim/lazy/nvim-tree.lua/lua/nvim-tree/api.lua:30>
Neovim version
Operating system and version
macOS 13.3.1 (a)
nvim-tree version
270c955
Minimal config
Steps to reproduce
I enable "actions.open_file.quit_on_open"
reproduce steps:
if I disable the "quit_on_open", no this issue there.
Expected behavior
No response
Actual behavior
CleanShot.2023-05-06.at.23.10.01.mp4
The text was updated successfully, but these errors were encountered: