roxma / vim-hug-neovim-rpc

EXPERIMENTAL
MIT License
218 stars 28 forks source link

vim-hug-neovim-rpc fail to work with python3.6.1 on archlinux #8

Closed jsfaint closed 7 years ago

jsfaint commented 7 years ago

image

$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jun  8 2017 20:51:28)
Included patches: 1-628
Compiled by Arch Linux

Same config works on windows with python3.5.3 When I switch to python2-neovim client, vim-hug-neovim-rpc works fine

roxma commented 7 years ago

Check the results in this order:

if has('pythonx'), then

:pythonx import neovim

else if has('python3'), then

:python3 import neovim

else if has('python2'), then

:python2 import neovim

jsfaint commented 7 years ago

echo has('pythonx') return 1 But :pythonx import neovim show below errors image

Interesting.. It looks when python2 and python3 both supported in vim, :pythonx will use python2 first

It's not bug of vim-hug-neovim-rpc, I'll close it. Sorry for the interruption.

roxma commented 7 years ago

In this case, try adding set pyxversion=3 into your vimrc.

jsfaint commented 7 years ago

@roxma it works! thank you~