Skip to content

Invalid buffer id: 1 when doing an incoming/outgoing calls #18

Description

@olatheander

Doing a lua vim.lsp.buf.outgoing_calls() (or a lua vim.lsp.buf.incoming_calls()) cause the error below to be shown. After pressing Enter the call hierarchy shows in panel/popout as expected.

Error executing vim.schedule lua callback: ...tart/litee-calltree.nvim/lua/litee/calltree/handlers.lua:148: Invalid buffer id: 1                                                                                                                                            
stack traceback:                                                                                                                                                                                                                                                            
        [C]: in function 'nvim_create_autocmd'                                                                                                                                                                                                                              
        ...tart/litee-calltree.nvim/lua/litee/calltree/handlers.lua:148: in function 'handler'                                                                                                                                                                              
        /usr/share/nvim/runtime/lua/vim/lsp.lua:1025: in function ''                                                                                                                                                                                                        
        vim/_editor.lua: in function <vim/_editor.lua:0>  
:version                                                                                                                                                                                                                                                                    
NVIM v0.7.2                                                                                                                                                                                                                                                                 
Build type: Release                                                                                                                                                                                                                                                         
LuaJIT 2.1.0-beta3                                                                                                                                                                                                                                                          
Compiled by builduser                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                            
Features: +acl +iconv +tui                                                                                                                                                                                                                                                  
See ":help feature-compile"                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                            
   system vimrc file: "$VIM/sysinit.vim"                                                                                                                                                                                                                                    
  fall-back for $VIM: "/usr/share/nvim"                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                            
Run :checkhealth for more info  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions