ray-x / cmp-treesitter

cmp source for treesitter
GNU General Public License v3.0
239 stars 10 forks source link

Error executing vim.schedule lua callback: vim/shared.lua:0: after the second argument: expected table, got nil #5

Closed kdheepak closed 1 year ago

kdheepak commented 2 years ago

I occasionally will get this error. I've not really found it to be reproducible though:

Error executing vim.schedule lua callback: vim/shared.lua:0: after the second argument: expected table, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'tbl_deep_extend'
        .../packer/start/cmp-treesitter/lua/cmp_treesitter/init.lua:19: in function 'get_keyword_pattern'
        .../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:163: in function 'callback'
        .../site/pack/packer/start/nvim-cmp/lua/cmp/utils/cache.lua:36: in function 'get_default_replace_range'
        ...e/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/entry.lua:45: in function 'new'
        .../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:316: in function ''
        vim.lua: in function <vim.lua:0>

Maybe it makes sense to you?

WhyNotHugo commented 2 years ago

I'm seeing this very often too. Haven't figure out what the cause is yet.

ray-x commented 2 years ago

pushed a workaround for this

WhyNotHugo commented 1 year ago

I haven't seen this issue again, so I think it's been fixed.