Skip to content
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

Task messages sometimes overlap with std:log outputs #8

Open
calebzulawski opened this issue Feb 27, 2023 · 3 comments
Open

Task messages sometimes overlap with std:log outputs #8

calebzulawski opened this issue Feb 27, 2023 · 3 comments

Comments

@calebzulawski
Copy link
Collaborator

In scripts with many std:log:warn outputs, sometimes the outputs of std:task messages overlap with the warnings in the terminal (and end up somewhat garbled). I think this only happens with terminals and not when redirecting output to a file.

@afranchuk
Copy link
Collaborator

What do you mean by std:task messages? Can you provide an example?

@calebzulawski
Copy link
Collaborator Author

I found this when working on CACI-International/ergo-cpp#8, e.g. a logged warning might look something like:

warn: unused variable `i`

and a std:task message might look something like:

* compiling `some/long/path/to/source.cpp`

Sometimes they seem to collide, and you end up with messages that look something like:

warn: unused variable `i`th/to/source.cpp`

@afranchuk
Copy link
Collaborator

Hmm, that shouldn't be possible, that's all buffered and rendered. I have seen that behavior when there are programs running which write directly to /dev/tty (which will just generally mess with the rendering state). I believe it would also occur with std:io:stderr as that doesn't pause the rendering like std:io:stdout does (maybe that should change).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants