ycm-core / YouCompleteMe

A code-completion engine for Vim
http://ycm-core.github.io/YouCompleteMe/
GNU General Public License v3.0
25.45k stars 2.81k forks source link

Unusable flickering without syntastic / clang #843

Closed lingz closed 10 years ago

lingz commented 10 years ago

I've tried searching for duplicate issues, but they all involved syntastic / clang. I've compiled YCM without clang support and also removed syntastic from my system, but I'm still getting this flickering everytime I type. It seems to be an additional redraw more than what vim normally does. I've tried the origin/no-syntastic branch, and the same issue persists.

Is there any fix for this?

Valloric commented 10 years ago

What's the output of vim --version? What OS are you using? What's the output of :scriptnames in Vim?

lingz commented 10 years ago

vim --version returns

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Feb 22 2014 15:59:17)
Included patches: 1-183
Compiled by ling@ling-laptop
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
+balloon_eval    +float           +mouse_urxvt     -tag_any_white
+browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
+clientserver    -hangul_input    +netbeans_intg   +title
+clipboard       +iconv           +path_extra      +toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       -python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con_gui  -lua             +rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      +X11
+dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     +xim
+emacs_tags      +mouseshape      -sniff           +xsmp_interact
+eval            +mouse_dec       +startuptime     +xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    +xpm
   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"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux -lacl -lattr -lgpm -ldl  

I'm using Linux Mint

The output of :scriptnames is here (note that Syntastic was removed temporarily and the bug persisted at the time):

  1: ~/.vimrc
  2: ~/.vim/autoload/pathogen.vim
  3: /usr/local/share/vim/vim73/syntax/syntax.vim
  4: /usr/local/share/vim/vim73/syntax/synload.vim
  5: /usr/local/share/vim/vim73/syntax/syncolor.vim
  6: /usr/local/share/vim/vim73/filetype.vim
  7: ~/.vim/bundle/vim-coffee-script/ftdetect/coffee.vim
  8: ~/.vim/bundle/vim-cucumber/ftdetect/cucumber.vim
  9: ~/.vim/bundle/vim-less/ftdetect/less.vim
 10: ~/.vim/bundle/vim-literate-coffeescript/ftdetect/vim-literate-coffeescript.vim
 11: ~/.vim/bundle/vim-stylus/ftdetect/stylus.vim
 12: /usr/local/share/vim/vim73/ftdetect/scss.vim
 13: /usr/local/share/vim/vim73/ftplugin.vim
 14: /usr/local/share/vim/vim73/indent.vim
 15: ~/.vim/bundle/colorizer/plugin/colorizer.vim
 16: ~/.vim/bundle/colorizer/autoload/colorizer.vim
 17: ~/.vim/bundle/ctrlp/plugin/ctrlp.vim
 18: ~/.vim/bundle/ctrlp/autoload/ctrlp/mrufiles.vim
 19: ~/.vim/bundle/delimitMate/plugin/delimitMate.vim
 20: ~/.vim/bundle/delimitMate/autoload/delimitMate.vim
 21: ~/.vim/bundle/emmet-vim/plugin/emmet.vim
 22: ~/.vim/bundle/neocomplcache/plugin/neocomplcache/buffer_complete.vim
 23: ~/.vim/bundle/neocomplcache/plugin/neocomplcache/dictionary_complete.vim
 24: ~/.vim/bundle/neocomplcache/plugin/neocomplcache/include_complete.vim
 25: ~/.vim/bundle/neocomplcache/plugin/neocomplcache/syntax_complete.vim
 26: ~/.vim/bundle/neocomplcache/plugin/neocomplcache/tags_complete.vim
 27: ~/.vim/bundle/neocomplcache/plugin/neocomplcache.vim
 28: ~/.vim/bundle/nerdcommenter/plugin/NERD_commenter.vim
 29: ~/.vim/bundle/nerdtree/plugin/NERD_tree.vim
 30: ~/.vim/bundle/nerdtree/autoload/nerdtree.vim
 31: ~/.vim/bundle/nerdtree/lib/nerdtree/path.vim
 32: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_controller.vim
 33: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_item.vim
 34: ~/.vim/bundle/nerdtree/lib/nerdtree/key_map.vim
 35: ~/.vim/bundle/nerdtree/lib/nerdtree/bookmark.vim
 36: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_file_node.vim
 37: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_dir_node.vim
 38: ~/.vim/bundle/nerdtree/lib/nerdtree/opener.vim
 39: ~/.vim/bundle/nerdtree/lib/nerdtree/creator.vim
 40: ~/.vim/bundle/nerdtree/nerdtree_plugin/exec_menuitem.vim
 41: ~/.vim/bundle/nerdtree/nerdtree_plugin/fs_menu.vim
 42: ~/.vim/bundle/rainbow-parentheses/plugin/rainbow_parentheses.vim
 43: ~/.vim/bundle/vim-airline/plugin/airline.vim
 44: ~/.vim/bundle/vim-airline/autoload/airline.vim
 45: ~/.vim/bundle/vim-easymotion/plugin/EasyMotion.vim
 46: ~/.vim/bundle/vim-endwise/plugin/endwise.vim
 47: ~/.vim/bundle/vim-fugitive/plugin/fugitive.vim
 48: ~/.vim/bundle/vim-latex/plugin/SyntaxFolds.vim
 49: ~/.vim/bundle/vim-latex/plugin/filebrowser.vim
 50: ~/.vim/bundle/vim-latex/plugin/imaps.vim
 51: ~/.vim/bundle/vim-latex/plugin/libList.vim
 52: ~/.vim/bundle/vim-latex/plugin/remoteOpen.vim
 53: ~/.vim/bundle/vim-rails/plugin/rails.vim
 54: ~/.vim/bundle/vim-surround/plugin/surround.vim
 55: /usr/local/share/vim/vim73/plugin/getscriptPlugin.vim
 56: /usr/local/share/vim/vim73/plugin/gzip.vim
 57: /usr/local/share/vim/vim73/plugin/matchparen.vim
 58: /usr/local/share/vim/vim73/plugin/netrwPlugin.vim
 59: /usr/local/share/vim/vim73/plugin/rrhelper.vim
 60: /usr/local/share/vim/vim73/plugin/spellfile.vim
 61: /usr/local/share/vim/vim73/plugin/tarPlugin.vim
 62: /usr/local/share/vim/vim73/plugin/tohtml.vim
 63: /usr/local/share/vim/vim73/plugin/vimballPlugin.vim
 64: /usr/local/share/vim/vim73/plugin/zipPlugin.vim
 65: ~/.vim/bundle/vim-airline/autoload/airline/init.vim
 66: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim
 67: ~/.vim/bundle/vim-airline/autoload/airline/extensions.vim
 68: ~/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim
 69: ~/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim
 70: ~/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim
 71: ~/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim
 72: ~/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim
 73: ~/.vim/bundle/vim-airline/autoload/airline/section.vim
 74: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim
 75: ~/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim
 76: ~/.vim/bundle/vim-airline/autoload/airline/themes.vim
 77: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim
 78: ~/.vim/bundle/vim-airline/autoload/airline/util.vim
 79: ~/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim
 80: ~/.vim/bundle/nerdtree/syntax/nerdtree.vim
Valloric commented 10 years ago

Please provide your vimrc. If you could also provide a video of the flickering, that would be amazing.

Valloric commented 10 years ago

Closing since no further comments from original reporter.