hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

invalid window id

Open tropical32 opened this issue 2 years ago • 4 comments

This error is pretty hard to reproduce because it shows up inconsistently. I have two windows open in 1 tab and when I use the command HopChar2MW to jump to 2 characters I often get this error:

E5108: Error executing lua .../nvim/site/pack/packer/start/hop.nvim/lua/hop/window.lua:67: Invalid window id: 1012
stack traceback:
        [C]: in function 'nvim_win_get_buf'
        .../nvim/site/pack/packer/start/hop.nvim/lua/hop/window.lua:67: in function 'get_window_context'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:46: in function 'create_hint_state'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:328: in function 'hint_with_callback'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:310: in function 'hint_with'
        ...re/nvim/site/pack/packer/start/hop.nvim/lua/hop/init.lua:546: in function 'hint_char2'
        [string ":lua"]:1: in main chunk

Setup

lua require('hop').setup { keys = 'tnseriaodhfmluvcwyxzbpgjkq' }
nmap s :HopChar2MW<cr>

Version

NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui

tropical32 avatar Oct 30 '22 13:10 tropical32

Yeah I know about it. It’s because of virtual windows (popups, etc.). I think I already track that in another issue.

hadronized avatar Oct 30 '22 15:10 hadronized

I encountered the problem today as well, cannot fix it by rolling back the commits ... hopping be resolved soon. Thanks.

zsmatrix62 avatar Oct 31 '22 14:10 zsmatrix62

I'm experiencing the same error. I've had to turn off multiwindow until it gets fixed.

JulesNP avatar Nov 11 '22 00:11 JulesNP

I encountered the problem today as well, cannot fix it by rolling back the commits ... hopping be resolved soon. Thanks.

The fix #340 is working

honghao71 avatar Apr 24 '23 00:04 honghao71