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

CodeListener.onUncaughtException #1651

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

swankjesse
Copy link
Collaborator

No description provided.

@swankjesse swankjesse force-pushed the jwilson.1028.uncaught_exceptions branch from 19b61bc to df396a6 Compare October 29, 2023 03:49
@swankjesse swankjesse changed the title WIP: APIs for uncaught exceptions Initial APIs for uncaught exceptions Oct 29, 2023
@swankjesse swankjesse force-pushed the jwilson.1028.uncaught_exceptions branch from 6317805 to 9762a1d Compare October 29, 2023 19:55
@swankjesse swankjesse changed the title Initial APIs for uncaught exceptions CodeListener.onUncaughtException Oct 29, 2023
@swankjesse swankjesse marked this pull request as ready for review October 29, 2023 19:55
@swankjesse
Copy link
Collaborator Author

crash.mp4

@swankjesse swankjesse force-pushed the jwilson.1028.uncaught_exceptions branch from 9762a1d to 7a96d43 Compare October 29, 2023 19:57
@swankjesse
Copy link
Collaborator Author

⚠️ stacked PR!

@swankjesse swankjesse force-pushed the jwilson.1028.uncaught_exceptions branch from 6cfa5d6 to 7a96d43 Compare October 30, 2023 14:21
@swankjesse
Copy link
Collaborator Author

Part of #1458

Copy link
Contributor

@veyndan veyndan left a comment

Choose a reason for hiding this comment

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

That video looks pretty sweet


private inner class ZiplineCodeHost<A : AppService> : CodeHost<A> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was their a requirement to make this an inner class?

(My over dislike of inner class may have motivated this comment 😅)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It reduces the amount of boilerplate to share state with the enclosing class.

@swankjesse swankjesse force-pushed the jwilson.1027.back_listener_cleared branch from e3659c2 to 4d8dd7e Compare October 31, 2023 19:29
Base automatically changed from jwilson.1027.back_listener_cleared to trunk October 31, 2023 20:48
squarejesse and others added 2 commits October 31, 2023 22:11
This new API is called on host views when the guest code fails
with an uncaught exception.

This wires in a CoroutineExceptionHandler in the host code
that cancels the current Zipline instance and updates all
UIs its currently serving, if any.

There is not yet any support for exceptions that occur in
async code, or any mechanism to restart the Zipline instance
after a crash.
…/redwood/emojisearch/android/views/EmojiSearchActivity.kt

Co-authored-by: Jake Wharton <[email protected]>
@swankjesse swankjesse force-pushed the jwilson.1028.uncaught_exceptions branch from 54e0a63 to 3c6ff73 Compare November 1, 2023 02:12
@swankjesse swankjesse enabled auto-merge (squash) November 1, 2023 02:12
@swankjesse swankjesse merged commit 4707fd1 into trunk Nov 1, 2023
8 checks passed
@swankjesse swankjesse deleted the jwilson.1028.uncaught_exceptions branch November 1, 2023 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants