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

popup window becomes zombie #853

Closed
kyoh86 opened this issue Jun 28, 2020 · 6 comments
Closed

popup window becomes zombie #853

kyoh86 opened this issue Jun 28, 2020 · 6 comments
Labels

Comments

@kyoh86
Copy link

kyoh86 commented Jun 28, 2020

  • callin lsp#complete with omnifunc, a complete-popup is shown.
  • focusing complete-popup, description-popup is shown.
  • close complete-popup with Ctrl-C.
  • description-popup becomes zombie.

Peek 2020-06-28 11-35

:version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 12 2020 03:12:45)
Included patches: 1-246
Compiled by Arch Linux AUR
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +cursorshape       +jumplist          +mouse_xterm       +smartindent       +vertsplit
+arabic            +dialog_con_gui    +keymap            +multi_byte        +sound             +virtualedit
+autocmd           +diff              +lambda            +multi_lang        +spell             +visual
+autochdir         +digraphs          +langmap           -mzscheme          +startuptime       +visualextra
-autoservername    +dnd               +libcall           +netbeans_intg     +statusline        +viminfo
+balloon_eval      -ebcdic            +linebreak         +num64             -sun_workshop      +vreplace
+balloon_eval_term +emacs_tags        +lispindent        +packages          +syntax            +wildignore
+browse            +eval              +listcmds          +path_extra        +tag_binary        +wildmenu
++builtin_terms    +ex_extra          +localmap          +perl/dyn          -tag_old_static    +windows
+byte_offset       +extra_search      +lua/dyn           +persistent_undo   -tag_any_white     +writebackup
+channel           -farsi             +menu              +popupwin          -tcl               +X11
+cindent           +file_in_path      +mksession         +postscript        +termguicolors     -xfontset
+clientserver      +find_in_path      +modify_fname      +printer           +terminal          +xim
+clipboard         +float             +mouse             +profile           +terminfo          +xpm
+cmdline_compl     +folding           +mouseshape        +python/dyn        +termresponse      +xsmp_interact
+cmdline_hist      -footer            +mouse_dec         +python3/dyn       +textobjects       +xterm_clipboard
+cmdline_info      +fork()            +mouse_gpm         +quickfix          +textprop          -xterm_save
+comments          +gettext           -mouse_jsbterm     +reltime           +timers            
+conceal           -hangul_input      +mouse_netterm     +rightleft         +title             
+cryptv            +iconv             +mouse_sgr         +ruby/dyn          +toolbar           
+cscope            +insert_expand     -mouse_sysmouse    +scrollbind        +user_commands     
+cursorbind        +job               +mouse_urxvt       +signs             +vartabs           
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread    -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_REENTRANT  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.30/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype  -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lelf -lnsl    -lcanberra  -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.30/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/5.30/core_perl/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc        

vimrc

call plug#begin()
  Plug 'prabirshrestha/vim-lsp'
  autocmd FileType go setlocal omnifunc=lsp#complete

  Plug 'mattn/vim-lsp-settings'
call plug#end()
@prabirshrestha
Copy link
Owner

We most likely need to add autocmd for CompleteDone and close popup in output.vim

@kyoh86
Copy link
Author

kyoh86 commented Jun 28, 2020

Ctrl-C will not raise CompleteDone autocmd.

@prabirshrestha
Copy link
Owner

:( we would need to start a timer and then check for !pumvisible() and close the popup.

@kyoh86
Copy link
Author

kyoh86 commented Jun 28, 2020

Ctrl-C kills all process of the plugins, so we can think that it's not role of vim-lsp.
Thanks!

@prabirshrestha
Copy link
Owner

you can try using Ctrl-[ to cancel popup or use :call popup_clear() in the meantime.

There are some discussions going on to improve popup at vim-jp/vital.vim#747

@stale
Copy link

stale bot commented Oct 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 17, 2020
@stale stale bot closed this as completed Oct 25, 2020
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