T O P

Autocomplete for vim/Python files

Autocomplete for vim/Python files

ShougoMatsu

Please read deoplete install documentation. You need to install plugins for Vim8. https://github.com/Shougo/deoplete.nvim#requirements But deoplete error detection is incomplete. I need to fix it.


ShougoMatsu

Please read this. https://github.com/Shougo/deoplete.nvim/issues/1172 I have fixed the error message.


its-Drac

i reinstalled deoplete as written in [installation guide](https://github.com/Shougo/deoplete.nvim#install) Plug 'Shougo/deoplete.nvim' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' this time deoplete gives new error [deoplete] deoplete requires vim-hug-neovim-rpc plugin in Vim. it says to install vim-hug-neovim but i installed it after that i read [requirements](https://github.com/Shougo/deoplete.nvim#requirements) it says to install `pip install pynvim` . Installed then it says to run `:UpdateRemotePlugins` i did and this is error E492: Not an editor command: UpdateRemotePlugins and :echo has("python") :echo has('pythonx') both, returns `0`


ShougoMatsu

UpdateRemotePlugins doesn't work in Vim8. vim-hug-neovim-rpc is not installed properly. Because neovim_prc#serveraddr() doesn't exist. Please test it exists.


ShougoMatsu

I think you have not read vim-hug-neovim-rpc documentation. Please read it properly.


its-Drac

ya you are right `neovim_prc#serveraddr()` doesn't exist but when i run `:echo neovim_rpc#serveraddr()` this returns `E117: Unknown function: neovim_rpc#serveraddr` if i run :echo has('pythonx') :echo has('python3') :echo has('python') this all return `0` when i run `:python3 import neovim` it returns E370: Could not load library msys-python3.8.dll E263: Sorry, this command is disabled, the Python library could not be loaded. but i do import neovim in python it works fine without any error


ShougoMatsu

You need to install Msys Python 3.8. It is not standard Python 3.8. I don't have ESP skills and I don't know why vim-hug-neovim-rpc library is not installed. You need to check it is really really installed.


ShougoMatsu

Please check the code. https://github.com/roxma/vim-hug-neovim-rpc/blob/master/autoload/neovim_rpc.vim#L17 If you install the plugin, the function must be exist.


olafjb

AutoComplete is so tricky, I simply uninstalled that plugin


MenosGrandes

Do You have python support for vim? How do You installed the VIM?


its-Drac

Idk i dont think i have python support for vim or else this would be working when i do `echo has('python') ` it return 0 I use git bash


noooit

This works for me. ``` git clone https://github.com/natebosch/vim-lsc.git ~/.vim/pack/git-plugins/start/vim-lsc pip install 'python-language-server[all]' ``` make sure pyls is in your $PATH and in vimrc. ``` let g:lsc_server_commands = { \'python': 'pyls', \} ``` ctrl + n should do it. Plugins from shuogo is pretty bad nor it is necessary with vim8 . I recommend avoiding them. I wasted my time trying to make it work as well.


ShougoMatsu

Hi. I am pretty bad plugins for Vim8 author. But you need to read the installation documentation...