DEV Community

Evan Lin
Evan Lin

Posted on • Originally published at evanlin.com on

Today I Learned: VIM Error "Exception not caught" with vim-hug-neovim-rpc

Problem

 Exception not caught: [vim-hug-neovim-rpc] requires `:pythonx import [pynvim | neovim]` command to work

Enter fullscreen mode Exit fullscreen mode

Every time I update vim via brew upgrade, the following problem easily occurs. (It should be related to updating Python).

It's the same whether running :pythonx import pynvim or :pythonx import neovim.

It took a long time to find the solution:

Solution:

Referencing Error Every time I load in vim8 (not neovim), you can see the following solution:

  • brew link --overwrite python@3.8 --force
  • pip3 install pynvim

You can also solve it by:

echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.zshrc

Related Links:

Error Every time I load in vim8 (not neovim)

Top comments (0)