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

Implemented timeout on connect/getPrompt to handle board in strange s… #150

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

ubidefeo
Copy link
Collaborator

@ubidefeo ubidefeo commented Dec 5, 2024

This PR addresses the case of an unresponsive board which cannot produce a properly formatted prompt.
The timeout clearing has been pushed after the await getPrompt() call in order to produce an alert for the user to reset the board.
This will prevent the editor from locking up and requiring quit/reload with consequent loss of code.

Tested on Mac OS and Windows 11 in a Parallels VM.
More testing on Windows would be useful

…tate (crash).

Signed-off-by: ubi de feo <me@ubidefeo.com>
@ubidefeo ubidefeo requested a review from sebromero December 5, 2024 17:39
Copy link
Collaborator

@sebromero sebromero left a comment

Choose a reason for hiding this comment

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

LGTM

@ubidefeo
Copy link
Collaborator Author

ubidefeo commented Dec 6, 2024

Also tested on Ubuntu 22 and 24 LTS
Confirmed on Windows VM and native

@ubidefeo ubidefeo merged commit 9f56d75 into development Dec 6, 2024
11 checks passed
@ubidefeo ubidefeo deleted the fix/timeout-getprompt-alert branch December 6, 2024 11:39
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