Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Invalid window id nvim_win_close when closing lazygit #154

Open
Labels
bugSomething isn't working
@ReeSilva

Description

Description

For the past 3 or 4 weeks, I've been experiencing a weird error when closing LazyGit with q key binding. Even though the window close successfully, I receive a notification error saying that the window's ID is invalid.

I've tried to go further to reproduce, but I stopped at this line: https://github.com/kdheepak/lazygit.nvim/blob/main/lua/lazygit.lua#L28

Looks like that, for some reason, Lazygit is now being considered a valid window.

This is the log that I receive as a message:

...pack/myNeovimPackages/start/lazygit.nvim/lua/lazygit.lua:29: Invalid window id: 1017
stack traceback:
	[C]: in function 'nvim_win_close'
	...pack/myNeovimPackages/start/lazygit.nvim/lua/lazygit.lua:29: in function <...pack/myNeovimPackages/start/lazygit.nvim/lua/lazygit.lua:18>

I've tried to remove ~/.local/state/nvim, (削除) /.local/share/nvimand (削除ここまで)/.cache/nvim` to ensure nothing was lost there, but the problem persists.

Also, I've tried to disable several modules that could be interfering, including test LazyGit with and without plenary.nvim.

This is my config: https://github.com/reesilva/Neve.git

Also, I would be happy to help with any more infos if needed, just let me know :D

To Reproduce

Here are the steps to reproduce:

  1. Launch Neovim
  2. Open Lazygit either with :LazyGit or with a key binding
  3. Close Lazygit's window with q key binding

The window will close, but an error msg will be emitted.

Expected behavior

What is expected to happen:

Screenshots

Image

Desktop (please complete the following information):

  • nvim --version:
NVIM v0.11.2
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /