ervandew / eclim

Expose eclipse features inside of vim.
http://eclim.org
GNU General Public License v3.0
1.04k stars 127 forks source link

neovim #385

Open vhakulinen opened 9 years ago

vhakulinen commented 9 years ago

Is there any plans to make eclim work with neovim? (and with async support)

ervandew commented 9 years ago

Not currently, but once it looks like it has stabilized for a bit, I was planning on taking some time to evaluate it. One thing I do want to avoid is having to maintain integrations for multiple editors. I'd rather just devote my time towards the best one.

danihodovic commented 9 years ago

How is the evaluation going?

rkannan82 commented 9 years ago

I am going to take a look at what it takes to get it working with neovim. I will update after couple of weeks. I will be using this branch to track the changes: https://github.com/rkannan82/eclim/tree/neovim

jasper-lyons commented 9 years ago

I've been running eclim on neovim with no problems for a month now.

(Though obviously it blocks the UI sometimes, as with vim)

rkannan82 commented 9 years ago

Yup. It works fine without any issues. The goal is to use neovim capabilities to do async processing for time consuming operations such as building the project, updating the window with error/warning marks, etc.

phcerdan commented 9 years ago

How is this going? The async build with neovim is gonna be amazing for Eclim. I use the CDT plugin (c++) and I love it, but usually I have to stop eclim because the freezing at build time.

vito-c commented 9 years ago

+1

JulioJu commented 9 years ago

Please, how do you use Eclim in NeoVim. I'm on Arch Linux, and with the same Vimrc, Eclim works fine with Vim, but not with Neovim. Eclim is not loaded in Neovim, and when I write « :PingEclim » in Neovim, I have « E492: Not an editor command: PingEclim ».

justinmk commented 9 years ago

@juanes852 Just a sanity check, did you follow https://neovim.io/doc/user/vim_diff.html#nvim-configuration ?

JulioJu commented 9 years ago

@justinmk I followed https://neovim.io/doc/user/nvim_from_vim.html : ~/.nvimrc and ~/.nvim are symbolic links, and I use some « if [!]has('nvim') » to use Deoplete in Neovim and Neocomplete in Vim. If I usn't symbolic links, I have the same error. Do you have specific configurations to use Eclim in Neovim ?

phcerdan commented 9 years ago

@juanes852 Eclim works out the box in neovim for me. Might be unrelated with your problem but if anyone is having problems setting Eclim up within neocompleteme, someone posted a workaround here: https://www.reddit.com/r/vim/comments/30phfv/neocomplete_and_eclim_not_working_well_together/

JulioJu commented 9 years ago

@phcerdan, thanks, but is not the problem because when I use a minimalistic .vimrc, I have the same error.

I think I've found the bug. When you install Eclim with « Web Developper Tools Support », Eclim doesn't work with Neovim, Eclim is not detected. Did you have the same problem ? With only Java support, Eclim works well for me in Neovim.

JulioJu commented 8 years ago

Finally, I've found the problem, under Arch Linux, you must install the Aur package. Then, ln -s /usr/share/vim/vimfiles/{eclim, plugin} ~/.vim. On my comuputers on Archlinux, there is a problem with eclim_2.5.0.jar with Neovim (of course, I've tried to download it again).

JulioJu commented 8 years ago

I've seen there is a problem with interactive Java programs, and Java programms with infinite loops. We can see on https://github.com/neovim/neovim/wiki/Troubleshooting « Interactive commands are supported by the :terminal command in Neovim. However, :! and system() do not support interactive commands ».

Please, could you implement a solution to send output of command Java % not in the Quickfix but in the Terminal in Neovim (if has('nvim') […] endif) ?

I think, this new command Java %» for Neovim could use asynchronous plugin Neomake with eclim as « makers » ?

Thanks in advance

tnguyen14 commented 8 years ago

Does anyone know how I can install it to work with neovim? I've run the installer once, and it's working in vim for me, but there's no PingEclim command in neovim.

JulioJu commented 8 years ago

@tnguyen14 just sanity check, have you follow :help nvim-from-vim ?

tnguyen14 commented 8 years ago

@JulioJu thanks I'll try to symlink ~/.vim to ~/.config/nvim.

ttiurani commented 7 years ago

Async support for neovim/neomake would be so useful to me now, that I might find time to work on this. Are there any preliminary ideas anywhere @ervandew as to how this should be implemented?

mvalkon commented 7 years ago

@ttiurani async support would be so nice. 👍 if you are going to do it

Cypher1 commented 7 years ago

Wondering how this is going and what needs to be done to get eclim with neovim working now. I have had some trouble installing it and have decided (until I learn more) that I should just use Ant builds and artur-shaik/vim-javacomplete2 (with deoplete) for autocompleting.

Thanks

vhakulinen commented 7 years ago

@Cypher1 and everyone else:

FYI: Language Server might change the playground quite a bit. IIRC there even are some plans to support it out-of-the-box in neovim. Also iirc vscode uses that system.

componhead commented 7 years ago

Hi. Eclim seems doesn't work with neovim; there is a planning about compatibility?

thank you

JulioJu commented 7 years ago

@componhead Eclim works perfectly with Neovim. Have you seen :help nvim-from-vim ?

componhead commented 7 years ago

@JulioJu Mmmh. Yes I did.

I have some problems with installation. I dont' have vim or gvim installed, only nvim (reinstalled many times). My configuration (https://github.com/componhead/dotfiles/blob/master/.config/nvim/) This is my stack flow

eclim-issue.txt

What's wrong with it?

Thank you

JulioJu commented 7 years ago

@componhead , in your file eclim-issue.txt, at line 8, we could read "java.io.IOException: Cannot run program "gvim": error=2, No such file or directory"

Probably eclim neads gvim to be installed. So, try to install it (sudo apt-get install gvim).

Gvim is mandatory for this case : http://eclim.org/eclimd.html#gvim-embedded. But you could use Eclim with Neovim in cases http://eclim.org/eclimd.html#eclimd-headless and http://eclim.org/eclimd.html#eclimd-headed.

componhead commented 7 years ago

I installed vim-gtk3 but without luck (gvim doesn't exist anymore on my sources).

It crash building too. eclim-building.txt

JulioJu commented 7 years ago

@componhead. With Eclipse Oxygen, you must use Eclim 2.7.0 and not Eclim 2.6.0 as you have done (see lines 23 and 24 of your file). See http://eclim.org/install.html.