Skip to content

bug: encountering error every time I open neo-tree #340

Closed
@macintacos

Description

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.2 Build type: Release LuaJIT 2.1.1727870382

Operating system/version

macOS 14.7.2

Describe the bug

Currently using LazyVim, just updated a few minutes ago. Getting an error whenever I open neo-tree:

   Error  21:29:46 msg_show.lua_error Error detected while processing WinScrolled Autocommands for "*":
21:29:46 msg_show Error executing lua callback: ....local/share/nvim/lazy/snacks.nvim/lua/snacks/scroll.lua:52: Invalid window id: 1035
stack traceback:
	[C]: in function 'nvim_win_get_buf'
	....local/share/nvim/lazy/snacks.nvim/lua/snacks/scroll.lua:52: in function 'get_state'
	....local/share/nvim/lazy/snacks.nvim/lua/snacks/scroll.lua:190: in function 'check'
	....local/share/nvim/lazy/snacks.nvim/lua/snacks/scroll.lua:138: in function <....local/share/nvim/lazy/snacks.nvim/lua/snacks/scroll.lua:134>

Just recently pushed up my config here, I'm naturally not ruling out that I messed something up in my config (although I wasn't seeing this issue pre-update to LazyVim): https://github.com/macintacos/nvim

Steps To Reproduce

  1. Open Neotree
  2. Observe error

Expected Behavior

There would be no error when opening Neotree

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