daa84 / neovim-gtk

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

gui freezes on startup when init.vim has two subsequent echom commands #98

Open aparaatti opened 6 years ago

aparaatti commented 6 years ago

I have built current head:

git log
commit c2a3c74e7053eebe2c7ed8177dbdfb9aad6d1e43 (HEAD -> master, origin/master, origin/HEAD)
Author: daa <andrey.dubravin@gmail.com>
Date:   Mon May 7 22:13:28 2018 +0300

    Fix #96
...

with sudo make PREFIX=/opt install.

When I have only init.vim at $HOME/.config/nvim having this

echom "one"
echom "two"

as content, the startup fails on timeout.

If there is only one echom, it starts up fine. When I start neovim in terminal, with one or two echom, neovim shows the press enter to continue prompt, so maybe related to handling that?

cheers!

daa84 commented 6 years ago

This is current limitation of neovim, if on start there is error or user input request - it just freeze.

aparaatti commented 6 years ago

so this one neovim/neovim#3901 ?

daa84 commented 6 years ago

yes 😄

justinmk commented 5 years ago

https://github.com/neovim/neovim/pull/9024 should fix this. Make sure the UI does not call --headless. It should only call --embed.