-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Throttle rate of output messages #663
Comments
This might make sense for the one-line-overwriting mode, but terminals seem to be fast enough to handle the current behavior. emacs probably gets the output one sees when running |
Nico: I thought about an external throttler, but that seems to fail because
|
Clearly, ninja should have xml output, then the filter would be easier to write :-D Does this help: http://stackoverflow.com/questions/11239201/can-i-limit-the-length-of-the-compilation-buffer-in-emacs ? |
Sadly comint-truncate-buffer actually makes things far worse. |
Nico: since none of the workarounds work WDYT of the proposed patch above? |
There's a long list of things people want to configure ninja's output. I'd like to collect a list of all of that and put that in a tracking bug, and ideally come up with some cohesive way to address most of them. |
Filed #746 for the tracking bug. |
I've been out of the ninja game for years so unsubscribing from this. Feel free to close if no longer useful, or @ me if you want me to see a followup. |
I recently started using cmake with ninja in emacs and encountered this same problem. Built-in support for this would be much nicer, but I took the approach of creating a quick-and-dirty "throttling" script in python here: https://gist.github.com/bradneuman/3f2bcb3b3a31f00129f69fead4d94c5f YMMV and you may have to change the (very simple) regex I used there, but for now it did the trick for me. It just throttles to one-per-second for lines matching a certain regex and prints everything else |
Building a large project with ninja output going to an emacs compilation buffer is painful b/c emacs doesn't do so well with 10k-line-buffers.
IWBN to have a rate-limit on progress messages, such as "don't emit a progress message more often than once per seconds". Could be done with an env var or a cmd-line option to ninja (I weakly prefer env var).
WDYT, worth writing a patch for?
The text was updated successfully, but these errors were encountered: