famiu/bufdelete.nvim

[Bug]

ckoehler opened this issue · 2 comments

Neovim version

❯ nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.1/share/nvim"

Run :checkhealth for more info

Describe the bug

Error executing Lua callback: ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:161: Vim:Error executing lua callback: ....1/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:148: Vim:Error executing lua callback: Vim:E315: ml_get: invalid lnum: 1
stack traceback:
        [C]: in function 'bufload'
        vim/_editor.lua: in function 'region'
        ...ar/neovim/0.9.1/share/nvim/runtime/lua/vim/highlight.lua:35: in function 'range'
        ...share/nvim/lazy/nvim-ts-rainbow/lua/rainbow/internal.lua:82: in function 'update_range'
        ...share/nvim/lazy/nvim-ts-rainbow/lua/rainbow/internal.lua:186: in function 'cb'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:736: in function '_do_callback'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:176: in function 'invalidate'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:877: in function '_on_detach'
        ...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:73: in function <...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:69>
        [C]: in function 'bdelete'
        ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:161: in function 'buf_kill'
        ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:242: in function '_buf_kill_cmd'
        ...ocal/share/nvim/lazy/bufdelete.nvim/plugin/bufdelete.lua:4: in function <...ocal/share/nvim/lazy/bufdelete.nvim/plugin/bufdelete.lua:4>
stack traceback:
        [C]: in function '__newindex'
        ....1/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:148: in function 'destroy'
        ....1/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:184: in function 'on_detach'
        ....1/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:83: in function 'cb'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:736: in function '_do_callback'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:878: in function '_on_detach'
        ...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:73: in function <...r/neovim/0.9.1/share/nvim/runtime/lua/vim/treesitter.lua:69>
        [C]: in function 'bdelete'
        ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:161: in function 'buf_kill'
        ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:242: in function '_buf_kill_cmd'
        ...ocal/share/nvim/lazy/bufdelete.nvim/plugin/bufdelete.lua:4: in function <...ocal/share/nvim/lazy/bufdelete.nvim/plugin/bufdelete.lua:4>
stack traceback:
        [C]: in function 'bdelete'
        ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:161: in function 'buf_kill'
        ...al/share/nvim/lazy/bufdelete.nvim/lua/bufdelete/init.lua:242: in function '_buf_kill_cmd'
        ...ocal/share/nvim/lazy/bufdelete.nvim/plugin/bufdelete.lua:4: in function <...ocal/share/nvim/lazy/bufdelete.nvim/plugin/bufdelete.lua:4>

Probably related to neovim/neovim#21416, but I don't understand the details.

To Reproduce
Steps to reproduce the behavior:

  1. Open any buffer
  2. :Bdelete

Expected behavior
No error

Actually, this may be a problem in nvim-ts-rainbow: HiPhish/nvim-ts-rainbow2#40

avucic commented

I have same issue with plugin David-Kunz/markid#9 . is the problem related to the bufdelete?