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

stuck in popup window forever #14639

Open
qeatzy opened this issue Apr 26, 2024 · 1 comment
Open

stuck in popup window forever #14639

qeatzy opened this issue Apr 26, 2024 · 1 comment
Labels

Comments

@qeatzy
Copy link
Contributor

qeatzy commented Apr 26, 2024

Steps to reproduce

Similar to issues/5744 but without fzf/term_start(), just a preview window with popup.

Also the mentioned workaround there call popup_close(win_getid()) not working either.

The problem

Stuck in popup window and cannot escape from it.

P.S.

I don't know how to reproduce exactly yet.
Just try hard to describe it clearly, so it can help.

I will briefly describe what I encounter below

Failed attempt

echom win_getid() popup_getoptions(win_getid())
call popup_clear()
call popup_close(win_getid())
winc s

Output of above failed attemps

1520 {'highlight': '', 'mousemoved': [0, 0, 0], 'line': -43, 'close': 'none', 'time': 0, 'drag': 0, 'cursorline': 0, 'minheight': 20, 'wrap': 1, 'pos': 'topleft', 'dragall': 0, 'minwidth': 66, 'fixed': 0, 'col': 30, 'maxwidth': 0, 'zindex': 50, 'firstline': 0, 'title': '', 'scrollbar': 1, 'posinvert': 1, 'moved': [0, 0, 0], 'mapping': 1, 'tabpage': 0, 'resize': 0, 'maxheight': 21}
E994: Not allowed in a popup window
E994: Not allowed in a popup window
E994: Not allowed in a popup window

How it happens

I don't known how to reproduce yet. But most likely in a preview window, call(winid, 'some_call_back') which throws some error.
checks :mess seems like

  • at s:onSetText() added a line, using len(lines) without a: caused the error.
  • at SetText() call win_execute(winid, 'call self.onSetText(lines)') after popup_settext and popup_show.
  • then stuck there forever, anything window related cause E994

vim version

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Apr 5 2024 16:51:39)
Included patches: 1-265
Compiled by user@beta
Huge version with GTK3 GUI. Features included (+) or not (-):

Expected behaviour

Either do not stuck in popup window, or has some way to escape afterwards.

Version of Vim

9.1-265

Environment

Ubuntu 18.04, kitty 0.31.0,

echo $TERM

xterm-kitty

bash --version

GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)

Logs and stack traces

No response

@qeatzy qeatzy added the bug label Apr 26, 2024
@chrisbra
Copy link
Member

well, hard to do anything, since we cannot reproduce it yet.

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

No branches or pull requests

2 participants