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

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

Open
7 tasks
crowell opened this issue Nov 16, 2017 · 4 comments
Open
7 tasks

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

crowell opened this issue Nov 16, 2017 · 4 comments

Comments

@crowell
Copy link

crowell commented Nov 16, 2017

Issue Prelude

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

  • [ x] I have read and understood YCM's [CONTRIBUTING][cont] document.
  • [ x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
  • [x ] I have read and understood YCM's [README][readme], especially the
    [Frequently Asked Questions][faq] section.
  • [ x] 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.][search])
  • [ x] 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, including what I expected to happen and what actually happened.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/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

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

  • What did you do?

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

  • What did you expect to happen?

continue to be able to type

  • What actually happened?

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
Copy link
Author

crowell commented Nov 17, 2017

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

@crowell
Copy link
Author

crowell commented Nov 17, 2017

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
Copy link
Author

crowell commented Nov 17, 2017

crowell/dotfiles@37ad7c3

@jerrymarino
Copy link
Owner

jerrymarino commented Nov 17, 2017

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants