daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Unknown error type: Wait timeout (nvim_ui_attach) #146

Open ghost opened 5 years ago

ghost commented 5 years ago

I'm getting an error now. It worked fine just a few days ago. Error:

Unknown error type: Wait timeout (nvim_ui_attach)

error

I created a folder under C:\Neovim, extracted neovim there, added C:\Neovim\bin to the systemvariables PATH (calling nvim from anywhere within the powershell works, so I know nvim should also be available for neovim-gtk).

Anrock commented 5 years ago

Same here. Though for me this started happening some way earlier. After couple of restarts it usually starts working.

daa84 commented 5 years ago

This error means that nvim is found but connection took to long. In some cases this can be because of error in configuration. Another reason can be that start takes to long, you can try to extend wait time with --timeout=10, 10 seconds is default value.

ghost commented 5 years ago

@daa84 Yes, the error is different and was also guessing that nvim can be found but for some reason can't be loaded. I set --timeout=100 and I downloaded both packages so they are fresh and don't have any configuration issues. But I get unfortunately still the same error. @Anrock I did like 5 restarts after I noticed the mentioned error, unfortunately this error is still there.

Before it stopped working there were some Windows 10 updates, but not sure if they broke something.

ghost commented 5 years ago

I also remember I opened the Plugins Manager, and downloaded airline, maybe that broke it. But since I freshly downloaded both nvim and nvim-gtk archives and I'm getting still the same error, airline may be stored somewhere else?

daa84 commented 5 years ago

Try to disable Plugin Manager. Try to remove files from ~/.config/nvim-gtk (don't remove them completely just move it to some place as you loose your settings) Looks like some configuration problem. But as neovim currently does not support pass start error messages to gui it is hard to find problem source. In case problem in init.vim - start of nvim from console will show errors

ghost commented 5 years ago

Ok, now we know more: Thanks, I didn't know it was under %userprofile%/.config/nvim-gtk. I emptied it, started nvim-gtk again and it works. The same error comes again if I open the Plugin Manager and click the slider on the top, so it shows a blue ON (so the error appears without clicking any Install button).

daa84 commented 5 years ago

For plugin manager to work it is need to install plug.vim to neovim first. Currently plug.vim preinstalled only in flatpak package

ghost commented 5 years ago

I downloaded plug.vim and put it, as described in that URL, into the autoload folder (%AppData%\..\Local\nvim\autoload). When I enable the Plugin Manager by clicking on the slider at the top and set it to ON, I get this error: plug

ghost commented 5 years ago

It looks like plug.vim requires git:

  if !executable('git')
    return s:err('`git` executable not found. Most commands will not be available. To suppress this message, prepend `silent!` to `call plug#begin(...)`.')
  endif

So I installed git and don't get the red error now. Unfortunately I still can't install vim-airline when I click the Install button and unfortunately I don't get any error messages this time so I don't know what's wrong.

daa84 commented 5 years ago

Install button does not really install, but generate config, you still need to run plug commands to manage plugins (like PlugInstall, PlugUpdate). So currently this is only config generator not more.