j-morano / buffer_manager.nvim

A simple plugin to easily manage Neovim buffers.
MIT License
241 stars 12 forks source link

[bug] attempt to call field 'deep_copy' (a nil value) #15

Closed strash closed 1 year ago

strash commented 1 year ago

I'm getting this error when trying to close the buffer_manager popup window.

E5108: Error executing lua ...cker/start/buffer_manager.nvim/lua/buffer_manager/ui.lua:340: attempt to call field 'deep_copy' (a nil value)
stack traceback:
        ...cker/start/buffer_manager.nvim/lua/buffer_manager/ui.lua:340: in function 'set_mark_list'
        ...cker/start/buffer_manager.nvim/lua/buffer_manager/ui.lua:363: in function 'on_menu_save'
        ...cker/start/buffer_manager.nvim/lua/buffer_manager/ui.lua:316: in function 'select_menu_item'
        [string ":lua"]:1: in main chunk
j-morano commented 1 year ago

Hello. I cannot reproduce. How is your config for the plugin? And how do you close the window when you get the error? Or do you always get it?

strash commented 1 year ago

Hi. I couldn't close the window and just closed neovim. And after that I can't reproduce this bug anymore. It happens once, so I don't know what is the cause.

My config:

use({
    "j-morano/buffer_manager.nvim",
    requires = "nvim-lua/plenary.nvim",
    config = function()
        require("buffer_manager").setup({
            width = 100,
            height = 12,
            focus_alternate_buffer = true,
        })
    end
})
j-morano commented 1 year ago

Did it happen again to you? I cannot reproduce.

strash commented 1 year ago

No

j-morano commented 1 year ago

Okay. Thus, if you do not mind, I will close the issue. Feel free to open it again if the problem reappears. Thanks anyway for the feedback!