vgit.nvim icon indicating copy to clipboard operation
vgit.nvim copied to clipboard

Conflict with Shatur/neovim-session-manager: `The coroutine failed with this message ... Invalid buffer id: 1`

Open MuhammadSawalhy opened this issue 3 years ago • 1 comments

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

  • nvim --version output: NVIM v0.7.0
  • Operating system: Arch Linux x86_64 [kernel: 5.17.1-arch1-1]
  • Desktop environment: Suckless DWM
  • Plugins commit hash:

MuhammadSawalhy avatar Apr 20 '22 12:04 MuhammadSawalhy

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:

  1. ~, i.e. home directory.
  2. ~/GitHub, which contains many GitHub projects.

Update: temporary fix https://github.com/Shatur/neovim-session-manager/issues/36#issuecomment-1106501886.

nyngwang avatar Apr 22 '22 10:04 nyngwang

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.

stale[bot] avatar Jan 07 '23 06:01 stale[bot]

🤖

MuhammadSawalhy avatar Feb 05 '23 08:02 MuhammadSawalhy

This issue is not happening now. May be a NeoVim bug fix or a fix in the other plugin.

MuhammadSawalhy avatar Feb 05 '23 09:02 MuhammadSawalhy