Conflict with Shatur/neovim-session-manager: `The coroutine failed with this message ... Invalid buffer id: 1`
Bug description
I'm not sure which plugin is the guilty here, so I'll open the same issue for both: https://github.com/Shatur/neovim-session-manager/issues/36
VGit was working well when I was using neovim 0.6.1 version but when I updated to 0.7.0 I start getting this issue only when I use Shatur/neovim-session-manager with VGit. for simplicity and make sure that I am right, I've used ~/.config/nvim/simple-init.vim:
How to start Neovim with simple configuration file:
nvim -u ~/.config/nvim/simple-init.vim
The simple configuration:
let g:plug_home = '~/.config/nvim/plugins'
call plug#begin(plug_home)
Plug 'nvim-lua/plenary.nvim'
Plug 'tanvirtin/vgit.nvim'
Plug 'Shatur/neovim-session-manager'
call plug#end()
lua << EOF
require('vgit').setup()
EOF
The error message:
Error executing vim.schedule lua callback: ...ig/nvim/plugins/plenary.nvim/lua/plenary/async/async.lua:14: The coroutine failed
with this message: .../nvim/plugins/vgit.nvim/lua/vgit/features/LiveGutter.lua:30: Invalid buffer id: 1
stack traceback:
[C]: in function 'error'
...ig/nvim/plugins/plenary.nvim/lua/plenary/async/async.lua:14: in function 'callback_or_next'
...ig/nvim/plugins/plenary.nvim/lua/plenary/async/async.lua:40: in function <...ig/nvim/plugins/plenary.nvim/lua/plenar
y/async/async.lua:39>
Environment
I got something similar:
Error executing vim.schedule lua callback: ...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:14: The coroutine failed with this message: .../packer/start/vgit.nvim/lua/vgit/features/LiveGutter.lua:30:
Invalid buffer id: 1
stack traceback:
[C]: in function 'error'
...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:14: in function 'callback_or_next'
...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:40: in function <...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:39>
This happened when I ran nvim . at:
~, i.e. home directory.~/GitHub, which contains many GitHub projects.
Update: temporary fix https://github.com/Shatur/neovim-session-manager/issues/36#issuecomment-1106501886.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🤖
This issue is not happening now. May be a NeoVim bug fix or a fix in the other plugin.