hotoolong's blog

プログラムのことやエンジニアリングに関することを記事にしています。

Nvim起動時にdeoplete failed to loadが表示されてたので対応する

nvimで変なエラーが表示されるようになった

[deoplete] Failed to load python3 host. You can try to see what happened by starting nvim with $NVIM_PYTHON_LOG_FILE set and opening the generated log file. Also,
the host stderr is available in messages.
[deoplete] function remote#define#FunctionBootstrap[1]..remote#host#Require[10]..provider#pythonx#Require[13]..provider#Poll, line 14
[deoplete] deoplete failed to load. Try the :UpdateRemotePlugins command and restart Neovim. See also :checkhealth.

brew でインストールしているpython3のバージョンが変わってしまっている影響のようだ

pip3 list

をして neovimのPackageがなければインストールしておこう

pip3 install neovim

nvimを再起動すれば同様のエラーは出なくなる。