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

Error: expected table, got nil #75

Open
tzachar opened this issue Nov 30, 2022 · 3 comments
Open

Error: expected table, got nil #75

tzachar opened this issue Nov 30, 2022 · 3 comments

Comments

@tzachar
Copy link

tzachar commented Nov 30, 2022

This is popping up sporadically, usually when trying to write a file by quickly pressing :w<cr> :

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'                                                                                                                         
        ...e/pack/packer/start/cmp-cmdline/lua/cmp_cmdline/init.lua:165: in function 'complete'                                                                               
        .../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:325: in function 'complete'                                                                               
        ...re/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:279: in function 'callback'                                                                               
        .../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:365: in function ''                                                                                       
        vim/_editor.lua: in function <vim/_editor.lua:0>                                                                    
@andis-sprinkis
Copy link

I have noticed this happening during editing TSX files when I tap :w<cr>.

I use these completions for ::

    { name = 'cmdline_history' },
    { name = 'cmdline' },
    { name = 'path' },
    { name = 'buffer' },
    { name = 'zsh' },
    { name = 'tmux' },

@tzachar
Copy link
Author

tzachar commented Jan 29, 2023

I also opened a bug in hrsh7th/nvim-cmp#1397 lately, but am getting nowhere...

@kerruba-milkman
Copy link

Having the same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants