jerrymarino / iCompleteMe

Swift comprehension in Vim: code completion and diagnostics
GNU General Public License v3.0
56 stars 3 forks source link

typing once autocomplete has been envoked doesn't work. #4

Open crowell opened 7 years ago

crowell commented 7 years ago

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside the brackets) before filing your issue:

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

once the completion engine is envoked, i can not type normally, i have to hit tab in order to select an option. if i disable icm, i can then continue to type

Include steps to reproduce here.

https://asciinema.org/a/CzfuUKcVe8ycYa0qQRLFRJy4i

Include description of a minimal test case, including any actual code required to reproduce the issue.

type exactly what you see in my asciinema

continue to be able to type

when i start typing and it matches something in the autocmpl buffer, it fails!

Diagnostic data

Output of vim --version

sftp /tmp » vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov  3 2017 02:46:29)
macOS version
Included patches: 1-1250
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
-balloon_eval    +folding         +mouse_xterm     +termguicolors
-browse          -footer          +multi_byte      +terminal
++builtin_terms  +fork()          +multi_lang      +terminfo
+byte_offset     -gettext         -mzscheme        +termresponse
+channel         -hangul_input    +netbeans_intg   +textobjects
+cindent         +iconv           +num64           +timers
-clientserver    +insert_expand   +packages        +title
+clipboard       +job             +path_extra      -toolbar
+cmdline_compl   +jumplist        +perl            +user_commands
+cmdline_hist    +keymap          +persistent_undo +vertsplit
+cmdline_info    +lambda          +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      -lua             +rightleft       +windows
+diff            +menu            +ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      +startuptime     -xpm
+eval            +mouse_dec       +statusline      -xsmp
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_clipboard
+extra_search    -mouse_jsbterm   +syntax          -xterm_save
+farsi           +mouse_netterm   +tag_binary
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -framework AppKit   -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.26.1/lib/perl5/5.26.1/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -F/usr/local/opt/python/Frameworks -framework Python   -lruby.2.4.2 -lobjc

Output of YcmDebugInfo

Printing iCompleteMe debug information...
-- Client logfile: /var/folders/cp/y05vybrd6pl5kcvvl0st92j40000gn/T/ycm_Ed4dGO.log
-- Server Python interpreter: /usr/bin/python
-- Server Python version: 2.7.10
-- Server has Clang support compiled in: False
-- Clang version: None
-- No extra configuration file found
-- Server running at: http://127.0.0.1:52924
-- Server process ID: 15085
-- Server logfiles:
--   /var/folders/cp/y05vybrd6pl5kcvvl0st92j40000gn/T/ycmd_52924_stdout_SbkmMv.log
--   /var/folders/cp/y05vybrd6pl5kcvvl0st92j40000gn/T/ycmd_52924_stderr_XfKhBy.log
Press ENTER or type command to continue

Contents of YCM, ycmd and completion engine logfiles

OS version, distribution, etc.

macos high sierra

Output of build/install commands

crowell commented 7 years ago

seems like this only occurs if YouCompleteMe and iCompleteMe are enabled.

crowell commented 7 years ago

this type of config fixed it for me with vim-plug, but it would be better if icompleteme could work in tandom with ycm, or turn off ycm in swift files

crowell commented 7 years ago

https://github.com/crowell/dotfiles/commit/37ad7c34cec51c49c08e7a6c9656d8d2084a2261

jerrymarino commented 7 years ago

@crowell thanks so much for the submitting this! It's is incredibly useful.

I think was a still some issues when YouCompleteMe was running at the same time as iCompleteMe. I pushed a few teaks too ( ideally )make the plugins coexist happily. It seems to work locally for me after some quick tests.

Edit: it looks like YouCompleteMe and iCompleteMe were conflicting in the video you posted. If the latest updates don't fix it for you, please let me know and I'll dig into this more!