Open linuxtim opened 1 year ago
Which nvim version are you using? And by any chance are you using a window manager that automatically modifies the window size (tiling wm)? Looks like gnvim is trying to report a updated window size to neovim before the ui_attach
call.
neovim versions 0.9.0 and also with 0.9.1-pre (built from release-0.9 branch 3 days ago). I'm using KDE (including KDE's kwin window manager) under Wayland. I suppose it might be modifying the window size (to replicate the dimensions that gnvim had on its last invocation), although I don't see this occurring. If it would be helpful I can try and get some debug info out of kwin?
Window manager modifying the window size was just a hunch. It doesn't (or shouldn't) matter if that happens or not - its still a bug in gnvim.
I haven't encountered this issue earlier, but it might be a race condition between this code and everything else that is communicating with neovim.
I flattened the rpc client stuff to make its usage a bit more straightforward, and now fixing this should be just a matter of implementing either:
ui_attach
call.ui_attach
happens before the rpc object is given forward to other components.I still haven't encountered this issue myself, hence my personal priority for fixing this isn't the highest. I'm happy to accept any PRs.
Firstly, thanks very much for writing gnvim... I thought I'd give it a try, so after compilation and installation, I tried starting it from the command line and got a panic.
I compiled and I'm running on on Debian 12 amd64, under Wayland (I haven't tried other environments), and the panic occurs on approx 50% of invocations, the following is printed on startup: