CursorHold active in popup window again, cause scroll to the top automaticly
ieeyaY opened this issue · comments
Issue Prelude
Please complete these steps and check these boxes (by putting an x
inside
the brackets) before filing your issue:
- I have read and understood YCM's CONTRIBUTING document.
- I have read and understood YCM's CODE_OF_CONDUCT document.
- I have read and understood YCM's README, especially the
Frequently Asked Questions section. - I have searched YCM's issue tracker to find issues similar to the one I'm
about to report and couldn't find an answer to my problem. (Example Google
search.) - If filing a bug report, I have included the output of
vim --version
. - If filing a bug report, I have included the output of
:YcmDebugInfo
. - If filing a bug report, I have attached the contents of the logfiles using
the:YcmToggleLogs
command. - If filing a bug report, I have included which OS (including specific OS
version) I am using. - If filing a bug report, I have included a minimal test case that reproduces
my issue, usingvim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I
expected to happen and what actually happened. - If filing a installation failure report, I have included the entire output
ofinstall.py
(orcmake
/make
/ninja
) including its invocation - I understand this is an open-source project staffed by volunteers and
that any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous. - I understand my issue may be closed if it becomes obvious I didn't
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
Ycm hover function will activate CursorHold even though it was already activated, so when i scroll in the hover popup window, it will be refreshed to the top of the popup window after 'updatetime'.
- What did you do?
- Auto hover on, mouse on.
- Hover over a funciotn and wait for CursorHold
- Scroll the popup.
- Wait for another CursorHold.
-
What did you expect to happen?
Popup stays scrolled. -
What actually happened?
Popup resets.
Diagnostic data
Output of vim --version
$ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 15 2023 17:06:05)
Included patches: 1-2167
Compiled by Arch Linux
Huge version with GTK3 GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm +tcl/dyn
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
+balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
+browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand +perl/dyn +title
+channel +ipv6 +persistent_undo +toolbar
+cindent +job +popupwin +user_commands
+clientserver +jumplist +postscript +vartabs
+clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall +python3/dyn +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap +ruby/dyn +wildignore
+cursorbind +lua/dyn +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con_gui +mksession +smartindent +writebackup
+diff +modify_fname -sodium +X11
+digraphs +mouse +sound +xattr
+dnd +mouseshape +spell -xfontset
-ebcdic +mouse_dec +startuptime +xim
+emacs_tags +mouse_gpm +statusline -xpm
+eval -mouse_jsbterm -sun_workshop +xsmp_interact
+ex_extra +mouse_netterm +syntax +xterm_clipboard
+extra_search +mouse_sgr +tag_binary -xterm_save
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "/etc/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-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cloudproviders -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/vim/src=/usr/src/debug/vim -flto=auto -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.38/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -L/usr/local/lib -o vim -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -lcanberra -lacl -lattr -lgpm -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lm
Output of YcmDebugInfo
Printing YouCompleteMe debug information
-- Resolve completions: On demand
-- Client logfile: /tmp/ycm_ckge_a6g.log
-- Server Python interpreter: /usr/sbin/python3
-- Server Python version: 3.11.6
-- Server has Clang support compiled in: False
-- Clang version: None
-- Extra configuration file found and loaded
-- Extra configuration path: /home/jizhou/.vim/plugged/YouCompleteMe/.ycm_extra_conf.py
-- Python completer debug information:
-- Python interpreter: /usr/sbin/python3
-- Python root: /home/jizhou/.vim/plugged/YouCompleteMe
-- Python path: ['/home/jizhou/.vim/plugged/YouCompleteMe/python', '/home/jizhou/.vim/plugged/YouCompleteMe/third_party/requests-futures', '/home/jizhou/.vim/
plugged/YouCompleteMe/third_party/ycmd', '/home/jizhou/.vim/plugged/YouCompleteMe/third_party/requests_deps/idna', '/home/jizhou/.vim/plugged/YouCompleteMe/thir
d_party/requests_deps/chardet', '/home/jizhou/.vim/plugged/YouCompleteMe/third_party/requests_deps/urllib3/src', '/home/jizhou/.vim/plugged/YouCompleteMe/third_
party/requests_deps/certifi', '/home/jizhou/.vim/plugged/YouCompleteMe/third_party/requests_deps/requests', '/home/jizhou/Projects/wep/toolbox-dev/toolbox', '/h
ome/jizhou/.vim/plugged/YouCompleteMe', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/home/jizhou/.vim/plugged/YouCompleteMe/third_party/python-future/src'
, '/usr/lib/python3.11/lib-dynload', '/home/jizhou/.local/lib/python3.11/site-packages', '/usr/lib/python3.11/site-packages']
-- Python version: 3.11.6
-- Jedi version: 0.19.1
-- Parso version: 0.8.3
-- Server running at: http://127.0.0.1:36321
-- Server process ID: 33014
-- Server logfiles:
-- /tmp/ycmd_36321_stdout_hstxsrvd.log
-- /tmp/ycmd_36321_stderr_732h2omp.log
-- Semantic highlighting supported: True
-- Virtual text supported: True
-- Popup windows supported: True
Output of YcmDiags
No warnings or errors detected.
Output of git rev-parse HEAD
in YouCompleteMe installation directory
71166ea1337fb64cccb412f39539a9ac52b8045e
Contents of YCM, ycmd and completion engine logfiles
Reproduce the issue with
vim -Nu /path/to/YCM/vimrc_ycm_minimal
, which
enabled debug logging and other useful diagnostics. Include a link to a
gist containing all of the log files listed by:YcmToggleLogs
.
OS version, distribution, etc.
Archlinux, wsl2
Output of build/install commands
Include link to a gist containing the invocation and entire output of
install.py
if reporting an installation issue.
installation nothing wrong
#4209 was merged already. Closing.