Latest unstable version of Neovim installed via Ubuntu PPA repository has blanked editor window
Oni Version: 0.3.6
Neovim Version (Linux only): v0.3.2-dev
Operating System:
Ubuntu Linux 18.04 LTS
Issue:
Latest unstable version of Neovim installed via Ubuntu PPA repository has stopped editor window displaying as shown in screenshot.
Expected behavior:
Editor window to present cursor and Neovim interface.
Actual behavior:
Blank space where Neovim editor window should be as shown in screenshot.
Steps to reproduce:
Updated recent version of Neovim unstable using PPA, opened Oni.
Current version of Neovim unstable shown in screenshot.
Dowloaded

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
What does :ls! show?
Maybe https://github.com/equalsraf/neovim-qt/issues/417 is related.
As attached in neovim. I can't run the command in Oni as there is nowhere for me to enter the command...

Oh, probably not https://github.com/equalsraf/neovim-qt/issues/417 then.
Maybe https://github.com/neovim/neovim/pull/9024 is causing this somehow, though it was intended to prevent this very issue.
If nobody else has given this a test, I can try out some nvim versions this weekend and see if the later versions are causing this issue.
There is the "debug.neovimPath" option that can be used to point to any nvim executable to test it without installing anything else. This includes a .exe on Windows, and AppImages on Linux.
I've given this a test and confirmed it on the latest nightly - https://github.com/neovim/neovim/commit/6e146d413267de044a1f9f0bbb0290b5387e631c
I gave the PRs and Following HEAD docs a quick read, and then poked in Oni and it looks to be the way Oni was (hackily) getting notifications if neovim was blocked on startup.
This was done here:
https://github.com/onivim/oni/blob/1987c9fb06939e816526275731fbc160ab27c5c8/browser/src/neovim/NeovimInstance.ts#L707-L727
I'm assuming the mode check fails due to their not being a buffer at first.
Looks like we need to remove that, and to surface the errors in a different way, before we then call nvim_ui_attach. We could possibly do the work around specified in the PRs to preserve the old behaviour until this is implemented, so that Oni is usable for people who are following HEAD.
Any input @bryphe / @Akin909 ?
Looks like we need to remove that, and to surface the errors in a different way, before we then call
nvim_ui_attach
I don't think so. Rather, don't surface the errors at all, let Nvim do it. The purpose of https://github.com/neovim/neovim/pull/9024 is to fix the issue in Nvim so that UIs don't need to do things like "nvim_command_output", [":messages"].
We could possibly do the work around specified in the PRs to preserve the old behaviour until this is implemented, so that Oni is usable for people who are following HEAD.
What workaround are you referring to? I think no workaround is needed with Nvim HEAD. Instead, some old code in Oni could be removed.
I don't think so. Rather, don't surface the errors at all, let Nvim do it. The purpose of neovim/neovim#9024 is to fix the issue in Nvim so that UIs don't need to do things like "nvim_command_output", [":messages"].
Ah! That makes sense then.
What workaround are you referring to? I think no workaround is needed with Nvim HEAD. Instead, some old code in Oni could be removed.
That would be passing both --embed --headless, as currently Oni needs to support both the bundled version of Nvim (0.3.1) and people following HEAD, and I assume if we delete our code currently it will cause issues for people that are running versions without the PRs merged. When we update to 0.3.2, then we should delete the old code, but for now I think we need to support both which could be a bit more awkward.
That said, I guess we can just get the nvim version and only run the hacky code for older versions, and have HEAD not run it and let nvim surface everything.
That would be passing both
--embed --headless
I don't follow. If Oni is not already using --headless then there's no reason to add it. --headless is for non-UI clients.
That said, I guess we can just get the nvim version and only run the hacky code for older versions, and have HEAD not run it and let nvim surface everything.
Yes, exactly. ~~That might require invoking nvim an extra time to get the version~~ (Edit: version is a field in nvim_get_api_info, so no extra nvim invocation is needed.)