-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Incorrect line number display of process logs in actions #23680
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
Comments
The line number is correct. However, some CLI programs use "\r" to print new content in current line. So, the strings in "line 1" are actually from Two approaches to make it better:
Personally, I dislike 1, prefer 2. Because, approach 1 would render a lot of non-sense "progress" information. Approach 2 renders what end users would see in the end. A demo program:
|
I guess #23820 could help (I haven't tried). Could you take a look? Thank you. |
Also prefer this if line deletions can be reliably detected and removed, e.g. just render it like a terminal would after modifications are completed on the line. |
I think #23789 has fixed that alignment. |
Wait, keep it open. The key problem (line number) hasn't been fixed. #23789 only improves some alignments. |
Close #23680 Some CLI programs use "\r" and control chars to print new content in current line. So, the strings in one line are actually from `\rReading...1%\rReading...5%\rReading...100%` This PR tries to make the output better.
Description
https://gitea.com/yp05327/testrepo/actions/runs/14

Gitea Version
1.20.0+dev-251-g9f39def99
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
gitea.com
Database
None
The text was updated successfully, but these errors were encountered: