uga-rosa / cmp-denippet

nvim-cmp source for denippet.vim
MIT License
2 stars 3 forks source link

Sometimes error happens #5

Open ryoppippi opened 1 month ago

ryoppippi commented 1 month ago

(I faced this issue for about a month) Maybe after denops v7 released, this error happens and I cannot type anything without restarting my neovim.

18:24:28 msg_show Error executing lua callback: TextChangedI Autocommands for "*"..function denippet#get_complete_items[2]..<SNR>128_request[1]..denops#plugin#wait[17]..denops#_internal#wait#for, line 4: Vim(return):Error executing  vim.on_key Lua callback: vim/_editor.lua:0: Error executing 'on_key' with ns_ids '16'
    Messages: TextChangedI Autocommands for "*"..function denippet#get_complete_items[2]..<SNR>128_request[1]..denops#plugin#wait[17]..denops#_internal#wait#for[4]..<lambda>80[1]..denops#plugin#is_loaded, line 1: Vim:Interrupt
stack traceback:
    [C]: in function 'error'
    vim/_editor.lua: in function <vim/_editor.lua:0>
    [C]: in function 'denippet#get_complete_items'
    ....local/share/nvim/lazy/cmp-denippet/lua/cmp_denippet.lua:14: in function 'complete'
    ...pippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:326: in function 'complete'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:299: in function 'complete'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:169: in function 'callback'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:229: in function 'autoindent'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:161: in function 'on_change'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/init.lua:346: in function 'callback'
    ...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:49: in function 'emit'
    ...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:23: in function <...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:22>
stack traceback:
    [C]: in function 'denippet#get_complete_items'
    ....local/share/nvim/lazy/cmp-denippet/lua/cmp_denippet.lua:14: in function 'complete'
    ...pippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/source.lua:326: in function 'complete'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:299: in function 'complete'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:169: in function 'callback'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:229: in function 'autoindent'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/core.lua:161: in function 'on_change'
    ...oppippi/.local/share/nvim/lazy/nvim-cmp/lua/cmp/init.lua:346: in function 'callback'
    ...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:49: in function 'emit'
    ...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:23: in function <...local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/autocmd.lua:22>

I'll create reproduction repo later

uga-rosa commented 1 month ago

It maybe an issue of denippet core.

ryoppippi commented 1 month ago

Thanks. idk how to reproduce it. Should I create the same issue for denippet repo?

uga-rosa commented 1 month ago

idk how to reproduce it.

Does it work correctly without errors with the minimal configuration?

Even if it's not minimal, having a reproducible configuration might be helpful.