Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #43

Closed
ckoehler opened this issue Jun 13, 2023 · 2 comments
Closed

[Bug] #43

ckoehler opened this issue Jun 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ckoehler
Copy link

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

@ckoehler ckoehler added the bug Something isn't working label Jun 13, 2023
@ckoehler
Copy link
Author

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

@avucic
Copy link

avucic commented Jul 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants