Skip to content

Restoring a session containing a neo-tree sidebar breaks neo-tree #740

@dhazel

Description

@dhazel

Thanks for the great plugin!

Neovim version: 0.8.2
OS: Windows 10

Steps to reproduce:

  1. Open neovim
  2. Open the neo-tree sidebar, :Neotree
  3. Save the session, :mksession mysession.vim
  4. Close neovim
  5. Open neovim
  6. Restore the session, :source mysession.vim
  7. Observe that the sidebar is created but neo-tree does not render in the sidebar
  8. Attempt to toggle the neotree sidebar, :Neotree
  9. Observe that neo-tree does not render and an error is thrown in messages:
Error executing vim.schedule lua callback: ...vim-data/lazy/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:867: Failed to rename buffer
stack traceback:
	[C]: in function 'nvim_buf_set_name'
	...vim-data/lazy/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:867: in function 'create_window'
	...vim-data/lazy/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:1015: in function 'draw'
	...vim-data/lazy/neo-tree.nvim/lua/neo-tree/ui/renderer.lua:1177: in function 'show_nodes'
	...ree.nvim/lua/neo-tree/sources/filesystem/lib/fs_scan.lua:98: in function 'render_context'
	...ree.nvim/lua/neo-tree/sources/filesystem/lib/fs_scan.lua:126: in function <...ree.nvim/lua/neo-tree/sources/filesystem/lib/fs_scan.lua:125>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions