-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
chore(deps): bump ratatui to 0.26.2 and crossterm to 0.27.0 #515
Conversation
It looks like this change requires a MSRV bump, as the new |
Thanks - bumped this to 1.70 |
@joshka mind rebasing this branch onto the latest |
|
3e4f923
to
331a22d
Compare
Squashed and rebased |
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.
Regarding the failed test, it is failing consistently. Maybe it is not an unstable test. More like we updated some dependencies causing a change in behaviour?
Thanks for your contribution! 🤟 🖤
There are some proto changes: /// Each `ResourceUpdate` contains any resource data that has changed since the last
diff --git a/console-api/src/generated/rs.tokio.console.tasks.rs b/console-api/src/generated/rs.tokio.console.tasks.rs
index 41b8396..e8ee5fa 100644
--- a/console-api/src/generated/rs.tokio.console.tasks.rs
+++ b/console-api/src/generated/rs.tokio.console.tasks.rs
@@ -1,3 +1,4 @@
+// This file is @generated by prost-build.
/// A task state update.
///
/// Each `TaskUpdate` contains any task data that has changed since the last
diff --git a/console-api/src/generated/rs.tokio.console.trace.rs b/console-api/src/generated/rs.tokio.console.trace.rs
index [220](https://github.com/tokio-rs/console/actions/runs/8603263859/job/23574759021?pr=515#step:6:221)b55a..be3516e 100644
--- a/console-api/src/generated/rs.tokio.console.trace.rs
+++ b/console-api/src/generated/rs.tokio.console.trace.rs
@@ -1,3 +1,4 @@
+// This file is @generated by prost-build.
/// Start watching trace events with the provided filter.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
test bootstrap ... FAILED Because there are some other issues in this PR, I would recommend:
Perhaps we could address the issue of the failed test that was caused by changes in other dependencies. Also, this would help us make sure the scope of this PR is not extended. We can only focus on bumping the rataui version. Thank you for your patch again! |
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.
I've noticed a large number of unrelated formatting changes. I would really prefer not to merge those as part of this PR, because then, when viewing the Git history, those lines will have been changed as part of the Ratatui update, when it was not actually part of that change. I'm happy to accept formatting changes if they are considered better or more idiomatic style, but please make those changes in a separate branch.
If you're manually reformatting TOML as part of this PR, can you please put it back the way it was? Or, if your editor is doing this automatically, can you please disable that setting for this repo? Thank you!
3127d33
to
4413a62
Compare
I've fixed the PR to just focus on the Ratatui changes (and bumped it to 0.26.2 which was released after this PR was created). I've also bumped crossterm to 0.27.0 to avoid incompatible versions, and fixed a small bug which hits most crossterm based apps on Windows (duplicate key presses). I've bumped all the projects to MSRV 1.74 as this is the version that we build with in Ratatui. I'm not sure if it was right to just bump the tokio-console project or all the files, but this seems to be the least likely to cause CI pain (e.g. building the libs with 1.64 and the tui app with 1.74). |
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.
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.
The rest looks good to me.
Thank you very much for working on this!
@@ -95,6 +95,11 @@ async fn main() -> color_eyre::Result<()> { | |||
let input = input | |||
.ok_or_else(|| eyre!("keyboard input stream ended early")) | |||
.with_section(|| "this is probably a bug".header("Note:"))??; | |||
|
|||
if input::should_ignore_key_event(&input) { |
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.
console/tokio-console/src/main.rs
Line 81 in bb463c1
let mut input = Box::pin(input::EventStream::new().try_filter(|event| { |
We already have a filter here to ignore the release event. Maybe we should consider merging them together.
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.
I missed seeing that, fixing it by just using the should_ignore_key_event instead of the filter. Either way would be fine I guess.
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.
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.
Looks good to me. Thanks! 👍
Lint CI fixed in #548 |
@joshka There are some unused imports after your change. Could you please help to remove them? Thanks! |
Done |
@hawkw Could you please rereview and approve (if you're happy with it) this PR? Your request for changes is blocking at the moment. Thanks! |
Bumps MSRV to 1.74.0 This necessitated 3 changes to the codebase: - `Spans` was renamed to the more ergonomic `Line` type. - `Frame` no longer requires a backend type parameter. - `Table::new` requires a widths parameter, so we use `Table::default().rows(rows)` instead of `Table::new(rows)`. Crossterm on Windows triggers events for key press as well as release and repeat, which causes duplicate key presses. This change filters out those events.
The changes that Eliza requested have been made, and she also previously approved the PR.
Bumps MSRV to 1.74.0
This necessitated 3 changes to the codebase:
Spans
was renamed to the more ergonomicLine
type.Frame
no longer requires a backend type parameter.Table::new
requires a widths parameter, so we useTable::default().rows(rows)
instead ofTable::new(rows)
.Crossterm on Windows triggers events for key press as well as release
and repeat, which causes duplicate key presses. This change filters out
those events.