Skip to content

Conversation

@jansorg
Copy link
Collaborator

@jansorg jansorg commented Oct 23, 2025

This PR improves the handling of errors loading a webview editor.
After the message is confirmed by the user, the editor is closed because it's not fully initialized.

Instead of returning null or just logging errors, exceptions are now handled more granular and shown to the user.

To test the timeout, you could change this timeout to 10 seconds: https://github.com/applandinc/appmap-intellij-plugin/blob/444ffce3b9b094ae98db565ec7cf6e1ac89e5fbc/plugin-core/src/main/java/appland/files/AppMapFiles.java#L57

Error message after timeout of the stats command:
image

@jansorg jansorg changed the title fix: better error handling for webview-based editors Better error handling for webview-based editors Oct 23, 2025
@jansorg jansorg requested a review from dividedmind October 23, 2025 15:22
Copy link
Contributor

@dividedmind dividedmind left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@jansorg jansorg merged commit 45393f0 into develop Oct 28, 2025
5 checks passed
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.

2 participants