Shougo / ddc.vim

Dark deno-powered completion framework for Vim/NeoVim
MIT License
671 stars 33 forks source link

No next auto-completion is shown if finishing completion with typing. #67

Closed LumaKernel closed 3 years ago

LumaKernel commented 3 years ago

Problems summary

No next auto-completion is shown if finishing completion with typing.

Expected

Next auto-completion is shown. ( v0.15.0 is working expectedly. See screencast for details. )

Environment Information

nvim v0.6.0 ``` NVIM v0.6.0-dev+220-gdb695cc4c Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/luma/mybuild/neovim/build/config -I/home/luma/mybuild/neovim/src -I/home/luma/mybuild/neovim/.deps/usr/include -I/usr/include -I/home/luma/mybuild/neovim/build/src/nvim/auto -I/home/luma/mybuild/neovim/build/include Compiled by luma Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/home/luma/.local/build/nvim/nightly/share/nvim" Run :checkhealth for more info ```
nvim v0.5.0 ``` NVIM v0.5.0 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/luma/mybuild/neovim/build/config -I/home/luma/mybuild/neovim/src -I/home/luma/mybuild/neovim/.deps/usr/include -I/usr/include -I/home/luma/mybuild/neovim/build/src/nvim/auto -I/home/luma/mybuild/neovim/build/include Compiled by luma@MyComputer Features: +acl +iconv +tui See ":help feature-compile" system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/home/luma/.local/build/nvim/v0.5.0/share/nvim" Run :checkhealth for more info ```
nvim v0.6.0 ``` health#denops#check ======================================================================== - INFO: Supported Deno version: `1.14.0` - INFO: Detected Deno version: `1.14.3` - OK: Deno version check: passed - INFO: Supported Neovim version: `0.5.0` - INFO: Detected Neovim version: `0.6.0` - OK: Neovim version check: passed - INFO: Denops status: `running` - OK: Denops status check: passed health#nvim#check ======================================================================== ## Configuration - OK: no issues found ## Performance - OK: Build type: RelWithDebInfo ## Remote Plugins - OK: Up to date ## terminal - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177 - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~ ## tmux - OK: escape-time: 0 - INFO: Checking stuff - WARNING: `focus-events` is not enabled. |'autoread'| may not work. - ADVICE: - (tmux 1.9+ only) Set `focus-events` in ~/.tmux.conf: set-option -g focus-events on - INFO: $TERM: screen-256color - WARNING: Neither Tc nor RGB capability set. True colors are disabled. |'termguicolors'| won't work properly. - ADVICE: - Put this in your ~/.tmux.conf and replace XXX by your $TERM outside of tmux: set-option -sa terminal-overrides ',XXX:RGB' - For older tmux versions use this instead: set-option -ga terminal-overrides ',XXX:Tc' health#provider#check ======================================================================== ## Clipboard (optional) - OK: Clipboard tool found: win32yank.exe from WSL ## Python 2 provider (optional) - INFO: pyenv: Path: /home/luma/.pyenv/libexec/pyenv - INFO: pyenv: Root: /home/luma/.pyenv - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics. - ERROR: Python provider error: - ADVICE: - provider/pythonx: Could not load Python 2: /usr/bin/python2 does not have the "neovim" module. :help |provider-python| /usr/bin/python2.7 does not have the "neovim" module. :help |provider-python| python2.6 not found in search path or not executable. python not found in search path or not executable. - INFO: Executable: Not found ## Python 3 provider (optional) - INFO: pyenv: Path: /home/luma/.pyenv/libexec/pyenv - INFO: pyenv: Root: /home/luma/.pyenv - INFO: Using: g:python3_host_prog = "/home/luma/.local/venvs/nvim/bin/python3" - INFO: Executable: /home/luma/.local/venvs/nvim/bin/python3 - INFO: Python version: 3.8.5 - INFO: pynvim version: 0.4.2 (outdated; from ~/.local/venvs/nvim/lib/python3.8/site-packages/neovim) - WARNING: Latest pynvim is NOT installed: 0.4.3 ## Python virtualenv - OK: no $VIRTUAL_ENV ## Ruby provider (optional) - INFO: Ruby: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] - WARNING: `neovim-ruby-host` not found. - ADVICE: - Run `gem install neovim` to ensure the neovim RubyGem is installed. - Run `gem environment` to ensure the gem bin directory is in $PATH. - If you are using rvm/rbenv/chruby, try "rehashing". - See :help |g:ruby_host_prog| for non-standard gem installations. ## Node.js provider (optional) - INFO: Node.js: v14.17.5 - WARNING: Missing "neovim" npm (or yarn) package. - ADVICE: - Run in shell: npm install -g neovim - Run in shell (if you use yarn): yarn global add neovim ## Perl provider (optional) - ERROR: perl provider error: - ADVICE: - "Neovim::Ext" cpan module is not installed ```
nvim v0.5.0 ``` health#denops#check ======================================================================== - INFO: Supported Deno version: `1.14.0` - INFO: Detected Deno version: `1.14.3` - OK: Deno version check: passed - INFO: Supported Neovim version: `0.5.0` - INFO: Detected Neovim version: `0.5.0` - OK: Neovim version check: passed - INFO: Denops status: `running` - OK: Denops status check: passed health#nvim#check ======================================================================== ## Configuration - OK: no issues found ## Performance - OK: Build type: RelWithDebInfo ## Remote Plugins - OK: Up to date ## terminal - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177 - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~ ## tmux - OK: escape-time: 0 - INFO: Checking stuff - WARNING: `focus-events` is not enabled. |'autoread'| may not work. - ADVICE: - (tmux 1.9+ only) Set `focus-events` in ~/.tmux.conf: set-option -g focus-events on - INFO: $TERM: screen-256color - WARNING: Neither Tc nor RGB capability set. True colors are disabled. |'termguicolors'| won't work properly. - ADVICE: - Put this in your ~/.tmux.conf and replace XXX by your $TERM outside of tmux: set-option -sa terminal-overrides ',XXX:RGB' - For older tmux versions use this instead: set-option -ga terminal-overrides ',XXX:Tc' health#provider#check ======================================================================== ## Clipboard (optional) - OK: Clipboard tool found: win32yank.exe from WSL ## Python 2 provider (optional) - INFO: pyenv: Path: /home/luma/.pyenv/libexec/pyenv - INFO: pyenv: Root: /home/luma/.pyenv - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics. - ERROR: Python provider error: - ADVICE: - provider/pythonx: Could not load Python 2: /usr/bin/python2 does not have the "neovim" module. :help |provider-python| /usr/bin/python2.7 does not have the "neovim" module. :help |provider-python| python2.6 not found in search path or not executable. python not found in search path or not executable. - INFO: Executable: Not found ## Python 3 provider (optional) - INFO: pyenv: Path: /home/luma/.pyenv/libexec/pyenv - INFO: pyenv: Root: /home/luma/.pyenv - INFO: Using: g:python3_host_prog = "/home/luma/.local/venvs/nvim/bin/python3" - INFO: Executable: /home/luma/.local/venvs/nvim/bin/python3 - INFO: Python version: 3.8.5 - INFO: pynvim version: 0.4.2 (outdated; from ~/.local/venvs/nvim/lib/python3.8/site-packages/neovim) - WARNING: Latest pynvim is NOT installed: 0.4.3 ## Python virtualenv - OK: no $VIRTUAL_ENV ## Ruby provider (optional) - INFO: Ruby: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu] - WARNING: `neovim-ruby-host` not found. - ADVICE: - Run `gem install neovim` to ensure the neovim RubyGem is installed. - Run `gem environment` to ensure the gem bin directory is in $PATH. - If you are using rvm/rbenv/chruby, try "rehashing". - See :help |g:ruby_host_prog| for non-standard gem installations. ## Node.js provider (optional) - INFO: Node.js: v14.17.5 - WARNING: Missing "neovim" npm (or yarn) package. - ADVICE: - Run in shell: npm install -g neovim - Run in shell (if you use yarn): yarn global add neovim ## Perl provider (optional) - ERROR: perl provider error: - ADVICE: - "Neovim::Ext" cpan module is not installed ```

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

set rtp+=~/path/to/repos/github.com/vim-denops/denops.vim
set rtp+=~/path/to/repos/github.com/Shougo/ddc.vim
set rtp+=~/path/to/repos/github.com/Shougo/ddc-around

call ddc#custom#patch_global('sources', ['around'])
call ddc#custom#patch_global({
    \ 'sourceOptions': {
    \   'around': {
    \     'mark': 'A',
    \     'minAutoCompleteLength': 1,
    \     'forceCompletionPattern': '/',
    \   },
    \ }})

call ddc#enable()

How to reproduce the problem from neovim/Vim startup (Required!)

  1. nvim -u init.vim
  2. Insert foo bar in line 1.
  3. Inser fo in line 2.
  4. <C-N> to select foo
  5. Type / to finish completion.
  6. No next auto-completion is shown.

Screenshot (if possible)

ddc

ddc v0.15.0 ![ddc](https://user-images.githubusercontent.com/29811106/137471010-f6b4d307-1c6d-4a49-8d10-14f5fbec710a.gif)
Shougo commented 3 years ago

Reproduced.

Shougo commented 3 years ago

Fixed.

ujihisa commented 3 years ago

Thx!

ujihisa commented 3 years ago

Confirmed that it's fixed in my vim too :tada: