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. |
djc
left a comment
There was a problem hiding this comment.
Thanks, that is better. A few nits to address...
|
CI seems like a flake, can't repro at all locally. |
djc
left a comment
There was a problem hiding this comment.
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.rsas well. It'll now also correctly handle lines with only ANSI codes.indicatif/src/draw_target.rs
Lines 505 to 518 in 81aa4c6