artur-shaik / vim-javacomplete2

DEPRECATED in favor of jc.nvim
Vim License
973 stars 83 forks source link

Neovim support/migration #17

Closed brcolow closed 9 years ago

brcolow commented 9 years ago

Hello,

Thanks for the awesome work so far - I am really enjoying this plugin. I was wondering if you have considered supporting Neovim? Currently when I try and use the plugin in Neovim I get some Could not find function provider#python#call errors. It would be awesome if the plugin was Neovim-capable, especially because it could then be coupled with Shougo's new asynchronous completion plugin deoplete (which is also in development). This combination could be very powerful and very awesome.

Thanks for your consideration.

artur-shaik commented 9 years ago

Hello, Thanks for using it :smile: I tried Neovim, and it works for me, without any issue, can you say what version of Neovim are you using?

brcolow commented 9 years ago

NVIM 0.0.0-alpha+201506170758 (compiled Jun 18 2015 16:55:46)

The errors come when I am in a .java file and hit ctrl-x, ctrl-o after typing, e.g. "System.", and the errors that pop up are:

Error detected while processing function javacomplete#Complete..javacomplete#StartServer..<SNR>70_PollServer:
line    1:
E117: Unknown function: provider#python#Call

Works in vim.

artur-shaik commented 9 years ago

Looks like neovim python issue. Can you do this:

pip2 install --upgrade neovim
pip3 install --upgrade neovim
brcolow commented 9 years ago

Still the same =(.

artur-shaik commented 9 years ago

When I compiled most recent neovim, I had the same error, but for all python plugins. Running this commands fixed this.

Do you have any other python plugins worked?

brcolow commented 9 years ago

Yes, deoplete

Shougo commented 9 years ago

deoplete is for python3 plugin. It is not python plugin.

You can check other python plugin behavior like UltiSnips.

Shougo commented 9 years ago

You can check the python behavior :py print(2).

brcolow commented 9 years ago

@Shougo good call! Executing py print(2) in Neovim fails with error:

E117: Unknown function: provider#python#Call

Looks like the error is in my Neovim configuration/setup/install.

Shougo commented 9 years ago

You should check provider#python#Prog() and provider#python#Error() result. I think the pip python path and neovim using python path is different.

brcolow commented 9 years ago

Might as well close this issue - it is my problem nothing to do with javacomplete2!