-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 2.39.2 of git for Windows introduces annoying "Waiting for data..." bar at bottom of screen #337
Comments
A couple of questions: does this message go away eventually or does it remain on screen permanently? It is expected that this line will appear while git is producing output, but it should go away when git is finished. What did you see in the previous version of less in this situation -- was there a colon prompt or just a blank line? |
Yes, the message goes away when the command finishes, but in the 7+ years I've been using git for Windows, I have never seen this, until upgrading to the latest version. Previously, this message never appeared and the |
This message is a new feature, to inform the user that less is not responsive to commands because it is reading from the input file/pipe, but that it can be interrupted with ctrl-X. In earlier versions, there was no message displayed and less was silently unresponsive while reading data, so this feature is intended to improve that experience. This feature is not yet in any released version, so it sounds like someone has released it early inappropriately, but in any case it will become standard when the next release is done. |
Could the displaying of the status message be delayed a bit? In most cases the user expects the operations to take a bit, and only after some time wonders if the program is still working/responsive. And showing a message in all cases forces them to put their attention to this message, in 95% of the case for no good reason, if they can even read it until it disappears again. |
The message is currently delayed, but only by 10 ms. I can see an argument that it should be longer, maybe 250-500 ms? I will experiment with this. Of course there's no way to avoid the issue that the message may appear only briefly, if data happens to become available very soon after whenever the message is displayed. |
I have increased the delay to 500ms in 690a957 (less-629). |
helps with gwsw/less#337
I've done some usability testing and now believe that the 500ms delay was indeed too short. In 64ab9cc I have increased it to 4000 ms. I also believe that in certain environments the user may wish to tweak this; for example a use case where the user is merely monitoring a file without interacting with it much might want a longer delay than a case where the user is more actively interacting with the file, so I added a new environment variable LESS_DATA_DELAY to let the user set the delay. |
I haven't used fzf, but since less assumes it has full control of the screen, it appears that fzf attempts to emulate a screen when it runs less as a previewer. If something works when less runs standalone but doesn't work when fzf runs less inside its emulated screen, it would seem that the problem must be in fzf's screen emulation. However I have not looked into this in any detail. You can effectively disable the "waiting for data" message by setting LESS_DATA_DELAY to a large number of milliseconds. |
I initially filed this bug at git-for-windows/git#4289 but the authors there said that this is a less issue, so filing a copy here.
Setup
Windows 11 64-bit
defaults?
to the issue you're seeing?
No
Details
Bash via Windows Terminal
Minimal, Complete, and Verifiable example
this will help us understand the issue.
No weird message
URL to that repository to help us with testing?
N/A
The text was updated successfully, but these errors were encountered: