Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

Error from tag: 'smartcase' #1183

Closed pantosaur closed 3 years ago

pantosaur commented 3 years ago

Problems summary

After updating deoplete to the latest version, i started getting the following error, when i go into insert mode and trigger the completion, from the tag source:

[deoplete] Traceback (most recent call last):
  File "/home/pierre/.vim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 203, in _gather_results
    result = self._get_result(context, source)
  File "/home/pierre/.vim/plugged/deoplete.nvim/rplugin/python3/deoplete/child.py", line 265, in _get_result
    ctx['candidates'] = source.gather_candidates(ctx)
  File "/home/pierre/.vim/plugged/deoplete-tag/rplugin/python3/deoplete/source/tag.py", line 27, in gather_candidates
    case = context['smartcase'] or context['camelcase']
KeyError: 'smartcase'
Error from tag: 'smartcase'  Use :messages / see above for error details.

Expected

No error message.

Environment Information

NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -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 -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.4/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

health#nvim#check

Configuration

Performance

Remote Plugins

terminal

health#provider#check

Clipboard (optional)

Python 2 provider (optional)

Python 3 provider (optional)

Ruby provider (optional)

Node.js provider (optional)


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

call plug#begin('~/.vim/plugged') if has('nvim') Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } else Plug 'Shougo/deoplete.nvim' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' endif Plug 'deoplete-plugins/deoplete-tag' call plug#end()

let g:deoplete#enable_at_startup = 1



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

 1. nvim
 2. enter insert mode, type 2 characters

## Generate a logfile if appropriate

 1. export NVIM_PYTHON_LOG_FILE=/tmp/log
 2. export NVIM_PYTHON_LOG_LEVEL=DEBUG
 3. nvim -u minimal.vimrc
 4. some works
 5. cat /tmp/log_{PID}

[log_py3_rplugin.txt](https://github.com/Shougo/deoplete.nvim/files/6568296/log_py3_rplugin.txt)

## Screenshot (if possible)

## Upload the log file
Shougo commented 3 years ago

Fixed.