tbodt / deoplete-tabnine

Deoplete source for TabNine
256 stars 17 forks source link

Error #24

Closed hissssst closed 5 years ago

hissssst commented 5 years ago

22Jul19_115527

Received this error while I was editing elixir file in insert mode.

Setup:

NVIM v0.3.8
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -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.3.8/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Default deoplete-tabnine and deoplete config, installed via neovim-plug

Shougo commented 5 years ago

Tabnine process seems crashed. Please restart neovim.

hissssst commented 5 years ago

Anyway, it would be nice to have an error wrapper for this case. I might be able to do this - just ask :)

tbodt commented 5 years ago

It looks like you got unlucky and TabNine died between line 132 and 135. Feel free to add a handler for this case :)

Shougo commented 5 years ago

I have added the error handler.

@hissssst Please test it.

hissssst commented 5 years ago

@Shougo I've copied the PR, works nice. I think it would be better to catch BrokenPipeError though

Shougo commented 5 years ago

OK. I have changed it to BrokenPipeError