Skip to content
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

Rewrite Application.init() async #1978

Closed
wants to merge 4 commits into from

Conversation

martinpitt
Copy link
Member

We will soon add another piece of initialization at the top, and this already has too many indentation levels.

This fixes the avalanche of

> Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.

console messages, which completely drown any actually useful messages
for debugging.
During terminal initialization, the `_renderService` or its
`.dimensions` attribute may not yet be defined. Exit the resizing
function in this case instead of crashing with a `TypeError`.

Add a reference to the upstream issue about this internal API hackery.
We will soon add another piece of initialization at the top, and this
already has too many indentation levels.
@@ -80,11 +80,14 @@ class ContainerLogs extends React.Component {
}

resize(width) {
if (!this.term?._core?._renderService?.dimensions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This added line is not executed by any test.

Comment on lines +203 to +204
.catch(e => console.warn("initContainers", system ? "system" : "user",
"getContainers failed:", e.toString()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 added lines are not executed by any test.

@martinpitt
Copy link
Member Author

Green -- that's good information, I mostly just wanted to test this in isolation as the topmost commit in #1976 breaks the podman service in a weird way.

@martinpitt martinpitt closed this Jan 26, 2025
@martinpitt martinpitt deleted the async-init branch January 26, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants