-
Notifications
You must be signed in to change notification settings - Fork 15
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
Line overwrite causes corrupted error message #263
Labels
Bug
Something isn't working
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3144.
|
I believe #210 fixes this. |
This was referenced Jul 31, 2024
tigarmo
added a commit
that referenced
this issue
Sep 5, 2024
The bug manifested in a situation like this: - A long progress() message is printed, say "AAAAAAAA"; - An error is emitter, and the result of str(error) is a multi-line string where the first line is shorter than the previously-emitted progress() message. Example: "BBBB\nCCCC"; - The newline in the error message is not correctly handled by the printer, meaning that after "BBBB" is written to the terminal the remainder of the line is not cleared. So the end result looks like: > BBBBAAAA > CCCC The "proper" fix for this would mean a big rework on the printer to properly support multi-line messages; for now, fix only the error case by "manually" splitting the error message and printing each line individually. Fixes #263
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
During a pack operation in brief mode, the following error message is seen:
The actual message from apt is
craft-providers error: Failed to update apt cache.
, ande from remote
is residue from a previous message.To Reproduce
TBD
part yaml
No response
Relevant log output
The text was updated successfully, but these errors were encountered: