Skip to content

Invalid window id: 1006 #8

@yuriescl

Description

@yuriescl

Hi, getting this error after opening different file inside popup and trying to re-run <leader>pd:

bug.mp4

How to reproduce:

  • open any file
  • execute <leader>pd over a function
  • it opens the popup (as expected)
  • inside the popup, run :e .
  • open any file (it will open inside the same popup)
  • close the popup via :q
  • execute <leader>pd again
  • error happens:
E5108: Lua: .../share/nvim/plugged/overlook.nvim/lua/overlook/popup.lua:178: Invalid window id: 1004                                                          
stack traceback:                                                                                                                                               
        [C]: in function 'nvim_open_win'                                                                                                                       
        .../share/nvim/plugged/overlook.nvim/lua/overlook/popup.lua:178: in function 'open_and_register_window'                                                
        .../share/nvim/plugged/overlook.nvim/lua/overlook/popup.lua:35: in function 'new'                                                                      
        ...cal/share/nvim/plugged/overlook.nvim/lua/overlook/ui.lua:7: in function 'create_popup'                                                              
        ...l/share/nvim/plugged/overlook.nvim/lua/overlook/peek.lua:29: in function 'definition'                                                               
        ...al/share/nvim/plugged/overlook.nvim/lua/overlook/api.lua:40: in function 'peek_definition'                                                          
        /home/yuri/.config/nvim/lua/keybindings.lua:72: in function </home/yuri/.config/nvim/lua/keybindings.lua:71> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions