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

Cursor glitch in termite after upgrading vte3-ng on Arch #2075

Closed
11 tasks done
mphe opened this issue Mar 23, 2016 · 2 comments
Closed
11 tasks done

Cursor glitch in termite after upgrading vte3-ng on Arch #2075

mphe opened this issue Mar 23, 2016 · 2 comments

Comments

@mphe
Copy link

mphe commented Mar 23, 2016

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 included the output of
    :YcmToggleLogs stderr.
  • 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.
  • 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

Since I made an upgrade yesterday, the cursor in vim is not properly cleared in insert mode, but only when inserting the same char as on the right side of the cursor or when pressing <space> when the cursor is at the end of the line. This only happens if YCM completion is enabled for the current filetype. Vim's builtin completion works fine. Here is a gif for better understanding:

Screencast

Things I tried:

  • I stripped down my .vimrc until only vundle and YCM was left. Without YCM everything works fine. This is the .vimrc I had at the end (and used for recording the gif above):
set nocompatible
filetype off

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

Plugin 'gmarik/vundle'
Plugin 'Valloric/YouCompleteMe'

filetype on
filetype plugin on
filetype plugin indent on

let g:ycm_filetype_blacklist = {}
  • I tried to downgrade YCM and termite with no luck.
  • I tried some other terminals (urxvt and mate-terminal). They don't have this problem.

Then I noticed that there was an update for the vte3-ng package (a dependency of termite) to 0.44.0.a-1. Downgrading to 0.42.4.a-1 fixes the issue.

I don't know if this is a termite, vte3-ng, vim or YCM bug, but I thought I'd start here because it only happens in combination with YCM.

Steps to reproduce:

  1. Get Termite with vte3-ng 0.44.0.a-1
  2. Setup Vim + YCM
  3. YCM Completion must be enabled for the filetype used for testing
  4. Open a file, e.g. test.txt
  5. The cursor is not properly cleared when
    • appending spaces at the end of a line (something needs to be written in that line before)
    • inserting the same char as the one on the right side of the cursor.

System information

OS: Archlinux 4.1.20-1-lts (up to date)

vim --version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 17 2016 10:50:13)
Included patches: 1-1584
Compiled by Arch Linux
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
+balloon_eval    +float           +mouse_urxvt     +tcl/dyn
+browse          +folding         +mouse_xterm     +terminfo
++builtin_terms  -footer          +multi_byte      +termresponse
+byte_offset     +fork()          +multi_lang      +textobjects
+channel         +gettext         -mzscheme        +timers
+cindent         -hangul_input    +netbeans_intg   +title
+clientserver    +iconv           +packages        +toolbar
+clipboard       +insert_expand   +path_extra      +user_commands
+cmdline_compl   +job             +perl/dyn        +vertsplit
+cmdline_hist    +jumplist        +persistent_undo +virtualedit
+cmdline_info    +keymap          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python/dyn      +vreplace
+cscope          +lispindent      +python3/dyn     +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua/dyn         +rightleft       +writebackup
+diff            +menu            +ruby/dyn        +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xsmp_interact
+emacs_tags      +mouseshape      +startuptime     +xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    -xpm
+extra_search    -mouse_jsbterm   +syntax          
   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"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro -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 -lfontconfig -lfreetype -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc   -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm     

:YcmDebugInfo:

Printing YouCompleteMe debug information...
-- Server has Clang support compiled in: True
-- Clang version: clang version 3.7.0 (tags/RELEASE_370/final)
-- Server running at: http://127.0.0.1:32983
-- Server process ID: 5034
-- Server logfiles:
--   /tmp/ycm_temp/server_32983_stdout.log
--   /tmp/ycm_temp/server_32983_stderr.log

:YcmToggleLogs stderr:

2016-03-23 21:03:36,615 - INFO - Received event notification
2016-03-23 21:03:36,616 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:36,618 - INFO - Received event notification
2016-03-23 21:03:36,620 - INFO - Adding buffer identifiers for file: /home/marvin/test.txt
2016-03-23 21:03:36,623 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:37,161 - INFO - Received health request
2016-03-23 21:03:37,171 - INFO - Received filetype completion available request
2016-03-23 21:03:37,172 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:39,339 - INFO - Received event notification
2016-03-23 21:03:39,339 - INFO - Adding buffer identifiers for file: /home/marvin/test.txt
2016-03-23 21:03:39,340 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:39,343 - INFO - Received event notification
2016-03-23 21:03:39,344 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:41,637 - INFO - Received completion request
2016-03-23 21:03:41,638 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:41,861 - INFO - Received completion request
2016-03-23 21:03:41,861 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:42,101 - INFO - Received completion request
2016-03-23 21:03:42,102 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:42,323 - INFO - Received completion request
2016-03-23 21:03:42,324 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:42,588 - INFO - Received completion request
2016-03-23 21:03:42,589 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:43,620 - INFO - Received completion request
2016-03-23 21:03:43,621 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:44,108 - INFO - Received completion request
2016-03-23 21:03:44,109 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:44,421 - INFO - Received completion request
2016-03-23 21:03:44,421 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:44,685 - INFO - Received completion request
2016-03-23 21:03:44,685 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:45,029 - INFO - Received completion request
2016-03-23 21:03:45,029 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:45,324 - INFO - Received completion request
2016-03-23 21:03:45,325 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:46,892 - INFO - Received event notification
2016-03-23 21:03:46,892 - INFO - Adding buffer identifiers for file: /home/marvin/test.txt
2016-03-23 21:03:46,895 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:46,898 - INFO - Received event notification
2016-03-23 21:03:46,900 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:03:53,193 - INFO - Received debug info request
2016-03-23 21:05:13,327 - INFO - Received event notification
2016-03-23 21:05:13,328 - ERROR - No semantic completer exists for filetypes: [u'text']
Traceback (most recent call last):
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 94, in FiletypeCompletionAvailable
    self.GetFiletypeCompleter( filetypes )
  File "/home/marvin/dotfiles/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/../ycmd/server_state.py", line 89, in GetFiletypeCompleter
    current_filetypes ) )
ValueError: No semantic completer exists for filetypes: [u'text']
2016-03-23 21:05:53,444 - INFO - Received event notification
@mphe mphe changed the title Cursor glitch in termite after upgrading vte-ng on Arch Cursor glitch in termite after upgrading vte3-ng on Arch Mar 24, 2016
@zaferot
Copy link

zaferot commented Mar 24, 2016

I am having the same issue just by moving cursor along a line and even with disabled YCM. Apparently it's vte-ng package issue.

@puremourning
Copy link
Member

I'm about 100% sure this is a problem with your terminal emulator not with YCM which is an auto completion plugin for Vim

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants