NvChad / ui

Lightweight & high performance UI plugin for nvchad
GNU General Public License v3.0
161 stars 120 forks source link

lsasagas code action preview crashes tabuflilne with invalid buffer id. #285

Open Nirajgns opened 3 months ago

Nirajgns commented 3 months ago

....local/share/nvim/lazy/ui/lua/nvchad/tabufline/utils.lua:37: Invalid buffer id: 118 stack traceback: ^I[C]: in function 'buf_name' ^I....local/share/nvim/lazy/ui/lua/nvchad/tabufline/utils.lua:37: in function 'gen_unique_name' ^I....local/share/nvim/lazy/ui/lua/nvchad/tabufline/utils.lua:51: in function 'style_buf' ^I...ocal/share/nvim/lazy/ui/lua/nvchad/tabufline/modules.lua:74: in function <...ocal/share/nvim/lazy/ui/lua/nvchad/tabufline/modules.lua:60> ^I...ocal/share/nvim/lazy/ui/lua/nvchad/tabufline/modules.lua:117: in function <...ocal/share/nvim/lazy/ui/lua/nvchad/tabufline/modules.lua:107> ^I[C]: in function 'nvim_exec2' ^Ivim/_editor.lua: in function 'cmd' ^I.../share/nvim/lazy/nvim-notify/lua/notify/service/init.lua:63: in function 'push' ^I...ocal/share/nvim/lazy/nvim-notify/lua/notify/instance.lua:77: in function <...ocal/share/nvim/lazy/nvim-notify/lua/notify/instance.lua:41> ^I...e/nvim/lazy/noice.nvim/lua/noice/view/backend/notify.lua:169: in function '_notify' ^I...e/nvim/lazy/noice.nvim/lua/noice/view/backend/notify.lua:199: in function 'show' ^I...local/share/nvim/lazy/noice.nvim/lua/noice/view/init.lua:155: in function <...local/share/nvim/lazy/noice.nvim/lua/noice/view/init.lua:153> ^I[C]: in function 'xpcall' ^I...local/share/nvim/lazy/noice.nvim/lua/noice/util/call.lua:149: in function <...local/share/nvim/lazy/noice.nvim/lua/noice/util/call.lua:134> ^I...local/share/nvim/lazy/noice.nvim/lua/noice/view/init.lua:162: in function 'display' ^I.../share/nvim/lazy/noice.nvim/lua/noice/message/router.lua:223: in function <.../share/nvim/lazy/noice.nvim/lua/noice/message/router.lua:156> ^I[C]: in function 'xpcall' ^I...local/share/nvim/lazy/noice.nvim/lua/noice/util/call.lua:149: in function <...local/share/nvim/lazy/noice.nvim/lua/noice/util/call.lua:134> ^I[C]: in function 'pcall' ^I...local/share/nvim/lazy/noice.nvim/lua/noice/util/init.lua:146: in function '' ^Ivim/_editor.lua: in function '' ^Ivim/_editor.lua: in function <vim/_editor.lua:0>

siduck commented 3 months ago

looks like a bug from lspsaga's end

siduck commented 3 months ago

vim.api.nvim_create_autocmd("BufAdd", {
  callback = function(args)
    if vim.bo[args.buf].buflisted then
      print(args.buf)
    end
  end,
}) 

image

So when i go through the actions window and when cursor is on 3rd , then the below window shows up

and then the above autocmd gets triggered, i dont see any buflisted buffer and yet it gets triggered!

@glepnir any idea?

glepnir commented 3 months ago

action preview buffer is not listed.

siduck commented 3 months ago

action preview buffer is not listed.

yes i know, but try the autocmd, it still prints buf number cuz the buffer is listed, so weird

glepnir commented 3 months ago

can close . i had push a commit for fix. forget set it.

siduck commented 1 month ago

can close . i had push a commit for fix. forget set it.

its happening again, weird

KevinNitroG commented 1 month ago

can close . i had push a commit for fix. forget set it.

Good day @glepnir! It seems the issue still hasn't been resolved. Could you please take another look at it?