-
Notifications
You must be signed in to change notification settings - Fork 245
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
fix and rename real_len
#608
Conversation
Thanks for working on this! Can we share the code with If we're going to move this I'd like to see two separate commits, one that moves/renames the code and one that changes the algorithm. Ideally tests that work with the old algorithm are introduced before this, and then the fixing commit adds tests that didn't work previously -- this will make it easy for me to review. (Please squash linting changes etc.) |
Doesn't seem like a worthwhile change seeing as that is counting lines while drawing, while this does it ahead of time.
Please see new commits -- first commit moves + add working tests, second commit adds the failing tests, third commit fixes the failing tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that is better. A few nits to address...
CI seems like a flake, can't repro at all locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, the CI failures seemed to go away on rerunning. This is looking great, thanks!
These dependencies were using a git dependency due to unmerged bug-fixes. These fixes have now been merged and are available in the latest releases: - console-rs/console#186 - console-rs/indicatif#608 In addition, I think the commits in question may've disappeared? E.g. the fresh build on the new CI platform in had this error: #20997 ``` Updating git repository `https://github.com/tgolsson/console.git` error: failed to load source for dependency `console` Caused by: Unable to update https://github.com/tgolsson/console.git?rev=5483880905f384679d322e83c37180f122951995#54838809 Caused by: revspec '5483880905f384679d322e83c37180f122951995' not found; class=Reference (4); code=NotFound (-3) ``` Thus, this is marked for cherry-picking back to our active branches.
These dependencies were using a git dependency due to unmerged bug-fixes. These fixes have now been merged and are available in the latest releases: - console-rs/console#186 - console-rs/indicatif#608 In addition, I think the commits in question may've disappeared? E.g. the fresh build on the new CI platform in had this error: #20997 ``` Updating git repository `https://github.com/tgolsson/console.git` error: failed to load source for dependency `console` Caused by: Unable to update https://github.com/tgolsson/console.git?rev=5483880905f384679d322e83c37180f122951995#54838809 Caused by: revspec '5483880905f384679d322e83c37180f122951995' not found; class=Reference (4); code=NotFound (-3) ``` Thus, this is marked for cherry-picking back to our active branches.
These dependencies were using a git dependency due to unmerged bug-fixes. These fixes have now been merged and are available in the latest releases: - console-rs/console#186 - console-rs/indicatif#608 In addition, I think the commits in question may've disappeared? E.g. the fresh build on the new CI platform in had this error: #20997 ``` Updating git repository `https://github.com/tgolsson/console.git` error: failed to load source for dependency `console` Caused by: Unable to update https://github.com/tgolsson/console.git?rev=5483880905f384679d322e83c37180f122951995#54838809 Caused by: revspec '5483880905f384679d322e83c37180f122951995' not found; class=Reference (4); code=NotFound (-3) ``` Thus, this is marked for cherry-picking back to our active branches.
These dependencies were using a git dependency due to unmerged bug-fixes. These fixes have now been merged and are available in the latest releases: - console-rs/console#186 - console-rs/indicatif#608 In addition, I think the commits in question may've disappeared? E.g. the fresh build on the new CI platform in had this error: #20997 ``` Updating git repository `https://github.com/tgolsson/console.git` error: failed to load source for dependency `console` Caused by: Unable to update https://github.com/tgolsson/console.git?rev=5483880905f384679d322e83c37180f122951995#54838809 Caused by: revspec '5483880905f384679d322e83c37180f122951995' not found; class=Reference (4); code=NotFound (-3) ``` Thus, this is marked for cherry-picking back to our active branches. Co-authored-by: Huon Wilson <huon@exoflare.io>
These dependencies were using a git dependency due to unmerged bug-fixes. These fixes have now been merged and are available in the latest releases: - console-rs/console#186 - console-rs/indicatif#608 In addition, I think the commits in question may've disappeared? E.g. the fresh build on the new CI platform in had this error: #20997 ``` Updating git repository `https://github.com/tgolsson/console.git` error: failed to load source for dependency `console` Caused by: Unable to update https://github.com/tgolsson/console.git?rev=5483880905f384679d322e83c37180f122951995#54838809 Caused by: revspec '5483880905f384679d322e83c37180f122951995' not found; class=Reference (4); code=NotFound (-3) ``` Thus, this is marked for cherry-picking back to our active branches. Co-authored-by: Huon Wilson <huon@exoflare.io>
Fixes #606 -- see added test cases. This logic matches what happens
draw_target.rs
as well. It'll now also correctly handle lines with only ANSI codes.indicatif/src/draw_target.rs
Lines 505 to 518 in 81aa4c6