Deoplete.nvim: Exception/Crash after recent upgrade

Created on 8 Feb 2018  路  9Comments  路  Source: Shougo/deoplete.nvim

Problems summary

I updated all plugins yesterday and since then neovim has been misbehaving. The error surfaces in deoplete but I'm not sure if it originates in deoplete or somewhere else but it seems to be triggered every time deoplete wants to show auto-complete options.

Environment Information

neovim version

 禄禄禄禄 nvim --version                                                                                                                                                                0|14:16:45
NVIM v0.2.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-J5puPS/neovim-0.2.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-J5puPS/neovim-0.2.2/build/config -I/build/neovim-J5puPS/neovim-0.2.2/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim-J5puPS/neovim-0.2.2/build/src/nvim/auto -I/build/neovim-J5puPS/neovim-0.2.2/build/include
Compiled by [email protected]

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

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

Run :checkhealth for more info

checkhealth

health#deoplete#check
========================================================================
## deoplete.nvim
  - OK: has("nvim") was successful
  - OK: has("python3") was successful
  - INFO: If you're still having problems, try the following commands:
    $ export NVIM_PYTHON_LOG_FILE=/tmp/log
    $ export NVIM_PYTHON_LOG_LEVEL=DEBUG
    $ nvim
    $ cat /tmp/log_{PID}
    and then create an issue on github

health#jedi#check
========================================================================
## jedi
#### Jedi-vim debug information
Using Python version: 3
 - sys.version: `3.6.4 (default, Feb  5 2018, 19:32:33), [GCC 7.3.0]`
 - site module: `/home/owais/.pyenv/versions/3.6.4/lib/python3.6/site.py`
Jedi path: `/home/owais/.nvim/plugged/jedi-vim/pythonx/jedi/jedi/__init__.py`
 - version: 0.11.1
 - sys_path:
    - `/home/owais/.nvim/.pip`
    - `/home/owais/.pyenv/versions/3.6.4/lib/python36.zip`
    - `/home/owais/.pyenv/versions/3.6.4/lib/python3.6`
    - `/home/owais/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload`
    - `/home/owais/.local/lib/python3.6/site-packages`
    - `/home/owais/.pyenv/versions/3.6.4/lib/python3.6/site-packages`
    - `_vim_path_`
 - jedi-vim git version: 37bd03c
 - jedi git submodule status:  02f238ce08f2d7f9c4af9a17cbf5754836775e2f pythonx/jedi (v0.11.1)
 2ca629a2f6db2e905ddd5188113b1045f8a00fc2 pythonx/parso (v0.1.1)


##### Settings
  omnifunc=htmlcomplete#CompleteTags
    Last set from /usr/share/nvim/runtime/ftplugin/html.vim
  completeopt=menu
    Last set from ~/tools/dotfiles/nvim/init.vim


health#nvim_typescript#check
========================================================================
## Find Node
  - OK: node is in $PATH

## Find Local Typescript
  - WARNING: No local server found, using global
    - ADVICE:
      - Install typescript locally for more accurate tooling
          $ npm install typescript --save-dev

## Find Global Typescript
  - ERROR: No global server found and no local server
    - ADVICE:
      - Install typescript globally or locally
          $ npm install -g typescript
          $ npm install typescript --save-dev

## Check for deoplete
  - OK: Deoplete is found!

## Check for python 3 bindings
  - OK: has("python3") was successful

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~
  - INFO: $XTERM_VERSION=''
  - INFO: $TERM_PROGRAM=''
  - INFO: $SSH_TTY=''

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: xsel

## Python 2 provider (optional)
  - OK: pyenv found: "/home/owais/.pyenv/libexec/pyenv"
  - INFO: Using: g:python_host_prog = "/home/owais/.pyenv/shims/python2"
  - INFO: Executable: /home/owais/.pyenv/shims/python2
  - INFO: Python2 version: 2.7.14
  - INFO: python2-neovim version: 0.2.1
  - OK: Latest python2-neovim is installed: 0.2.1

## Python 3 provider (optional)
  - OK: pyenv found: "/home/owais/.pyenv/libexec/pyenv"
  - INFO: Using: g:python3_host_prog = "/home/owais/.pyenv/shims/python3"
  - INFO: Executable: /home/owais/.pyenv/shims/python3
  - INFO: Python3 version: 3.6.4
  - INFO: python3-neovim version: 0.2.1
  - OK: Latest python3-neovim is installed: 0.2.1

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.3.6p384 (2017-12-14) [x86_64-linux-gnu]
  - WARNING: Missing "neovim" gem.
    - ADVICE:
      - Run in shell: gem install neovim
      - Is the gem bin directory in $PATH? Check `gem environment`.
      - If you are using rvm/rbenv/chruby, try "rehashing".

## Node provider (optional)
  - WARNING: `node` and `npm` must be in $PATH.
    - ADVICE:
      - Install Node.js and verify that `node` and `npm` commands work.

Config file

call plug#begin('~/.nvim/plugged')

Plug 'equalsraf/neovim-gui-shim'
Plug 'mindriot101/vim-yapf'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'editorconfig/editorconfig-vim'
Plug 'scrooloose/nerdcommenter'
Plug 'simnalamburt/vim-mundo'
Plug 'gcmt/taboo.vim'
Plug 'idris-hackers/idris-vim'
Plug 'Shougo/neoinclude.vim'
Plug 'xolox/vim-misc'
Plug 'tell-k/vim-autoflake'
Plug 'tell-k/vim-autopep8'
Plug 'fisadev/vim-isort'
Plug 'xolox/vim-session'
Plug 'alvan/vim-closetag'
Plug 'mbbill/undotree'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'benekastah/neomake'
Plug 'majutsushi/tagbar', { 'do': 'sudo apt install ctags' }
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'jamessan/vim-gnupg'
Plug 'mhartington/oceanic-next'
Plug 'sheerun/vim-wombat-scheme'
Plug 'ryanoasis/vim-devicons' 
Plug 'Raimondi/delimitMate'
Plug 'itchyny/lightline.vim'
Plug 'Chiel92/vim-autoformat'
Plug 'Shougo/deoplete.nvim', { 'do': function('DoRemote') }
Plug 'davidhalter/jedi-vim'

Plug 'dart-lang/dart-vim-plugin'

Plug 'fatih/vim-go'
Plug 'zchee/deoplete-go', { 'do': 'make'}

Plug 'nvie/vim-flake8'
Plug 'zchee/deoplete-jedi'

Plug 'mhartington/deoplete-typescript'
Plug 'HerringtonDarkholme/yats.vim'

Plug 'pangloss/vim-javascript',
Plug 'jelera/vim-javascript-syntax',
Plug 'mxw/vim-jsx',
Plug 'flowtype/vim-flow'
Plug 'othree/yajs.vim',
Plug 'isRuslan/vim-es6',
Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' }
call plug#end()


let g:deoplete#enable_at_startup = 1
let g:deoplete#sources = {}
let g:deoplete#sources.python = ['jedi']
let g:deoplete#sources#jedi#enable_cache = 0

set completeopt=menu

The reproduce ways from neovim/Vim starting (Required!)

Start neovim from command line with nvim and try to take any action that invokes deoplete

Attaching screenshot.

screenshot from 2018-02-08 14-07-43

Using Ubuntu 18.04 with stable neovim

cannot reproduce

Most helpful comment

I will add NVIM_LISTEN_ADDRESS support later.

All 9 comments

I do have the python libs installed. Everything used before the last plugin update a couple of days ago.

Please read the issue template.
Your deoplete is the latest version?

And please see the issue.
https://github.com/Shougo/deoplete.nvim/issues/635

For me v:servername seems to be blank both in the traceback and when using echo inside vim. I'm running neovim in terminal.

Will attach more info.

For me v:servername seems to be blank both in the traceback and when using echo inside vim.

It is your neovim?
Really? It must be set in neovim.
Please use $NVIM_LISTEN_ADDRESS instead.

Attached more information.

I do have NVIM_LISTEN_ADDRESS set in shell. Also, this only happens when starting neovim from command line. Neovim gnome terminal wrapper that launches a new terminal for each instance works fine.

OK. I was able to fix the issue but __removing__ NVIM_LISTEN_ADDRESS from my shell env vars.

Thanks

I will add NVIM_LISTEN_ADDRESS support later.

OK. Thanks.

Was this page helpful?
0 / 5 - 0 ratings