RMichelsen / Nvy

Nvy - A Neovim client in C++
MIT License
315 stars 26 forks source link

Nvy does not show a full neovim notification message when it starts up #124

Open VladimirMarkelov opened 2 months ago

VladimirMarkelov commented 2 months ago

If Neovim wants to notify a user about something at startup, Nvy shows only the last line of the message. I tried running without plugins Nvy.exe txt5.txt -u NONE -U NONE -N -i NONE but in this case Neovim opens a file without showing any notifications.

Steps to reproduce:

  1. Open a file in one Nvy instance
  2. Open the same file in another Nvy instance
  3. Neovim tries to display a warning about found swp file but Nvy shows only the last sentence Press ENTER or type command to continue that is confusing. I figured out that the real message is longer only after trying to open the file in another Neovim GUI app.

The second instance of Nvy shows me this:

image

I tried other GUIs (Nvim-Qt that is bundled with Neovim package and Neovide), they show the full message (the screenshot is from Nvim-Qt):

image

At first, I noticed flickering in Nvy as if it displayed the full text but then cleared all lines except the last one. But it might be that it was just my imagination.

Edit: please note that on the screenshot of Nvy a black bar above text(I guess it is statusline) is also missing.

RMichelsen commented 2 weeks ago

I can't seem to reproduce this, either its a Linux specific issue or one of the latest changes, perhaps #121 may have fixed it?

VladimirMarkelov commented 2 weeks ago

It can't be Linux specific - I run Nvy on Window 10. The latest 0.4.0 does not fix the issue. But I was able to gather a little more information. I have Nvy 0.3.8 binary - it works as expected: it shows all warnings and the statusline. So, it seems something has changed in 0.3.9.

RMichelsen commented 1 week ago

Oh I don't know what I was thinking when I wrote that comment, of course Nvy only works on Windows. I am not really sure what caused the regression in 0.3.9. I will try to find time to investigate it soon.