Closed olimorris closed 3 years ago
Could you minimise the required config and provide some details on how to use procession? The idea of a minimal config is that it shouldn't take much time for the developer to reproduce the issue. Thanks.
Okay so I isolated the issue further this morning. It seems the event = {'VimEnter *'}
next to plugins, alongside procession is what's causing the issue.
Simplified configs:
init.lua
vim.cmd 'set runtimepath+=~/.config/nvim'
vim.cmd 'set runtimepath+=~/.config/nvim/lua'
vim.cmd 'set runtimepath+=~/.config/nvim/after'
vim.cmd 'set runtimepath+=~/.local/share/nvim/site'
vim.cmd 'set runtimepath+=~/.local/share/nvim/site/after'
vim.cmd 'set packpath+=~/.config/nvim'
vim.cmd 'set packpath+=~/.config/nvim/after'
vim.cmd 'set packpath+=~/.local/share/nvim/site'
vim.cmd 'set packpath+=~/.local/share/nvim/site/after'
require('plugins')
plugins.init.lua
vim.cmd('packadd packer.nvim')
local packer = require("packer")
function packer_spec()
use {'wbthomason/packer.nvim', opt = true}
use {
'dstein64/nvim-scrollview', -- Scrollbars in Neovim
event = { 'VimEnter *'}
}
use {
'lewis6991/gitsigns.nvim', -- Git signs in the signcolumn
config = function() require('gitsigns').setup() end,
requires = {'nvim-lua/plenary.nvim'},
}
use {
'dhruvasagar/vim-prosession', -- Easy session switching and also auto-starts sessions
requires = {'tpope/vim-obsession'} -- Continuously update session files
}
end
packer.startup {
packer_spec,
}
Removing the event on any plugin, in this case nvim-scrollview
, results in the error not occuring. Similarly when vim-prosession
is removed, the error doesn't occur. And as stated above, when I roll back to the previous commit, no error.
I should note that in this scenario I have a session already saved that vim-prosession
that it autoloads by default
I was just coming here to report this exact issue as well, I tried looking to see if there was anything in the session file that referenced a buffer id 2, and also checked my buffer list :ls!
and there is no buffer with an id of 2. I think the fact that I also consistently get a buffer id 2 error might mean it's coming from something in gitsigns?
The description matches exactly what I'm also experiencing. I've pinned gitsigns to 63ba88f
as well as the last point before the error began showing up
I've just recreated the issue and it appears to be because of vim-prosession
unloading buffers during gitsigns attach sequence. Should have a fix soon.
I think this is fixed with 133f1aa39f88cb403e4f474473d20db8ff000f58. Not too sure I understand the specifics fully, but it appears to fix things.
Yep this seems to have resolved the issue for me 👍🏿 thanks
Should be fixed now, please reopen if not.
Describe the bug Pull request #73 (58544f1bc7dc53f36cabd16d6c842a2a0fb7e591) is causing this error for me:
To Reproduce
To Stop the Bug
init.lua:
plugins/init.lua:
Supplementary files:
Additional context System: Mac Neovim version: Nightly