Skip to content

Retry listing editors #234

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

Merged
merged 6 commits into from
Apr 27, 2023
Merged

Retry listing editors #234

merged 6 commits into from
Apr 27, 2023

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Apr 26, 2023

I have been testing manually by replacing dd in my workspace with a script containing sleep infinity.

retry
wait

I put the error underneath the field and added a retry with exponential backoff.

There is sometimes a visual stutter, I think replacing the combox renderer is being wacky but I am not sure if there is another way to do this. Or maybe it is the comment component being weird.

I want to write a unit test for the selection logic.
When a workspace starts the workspace row is replaced with a row for the
agent(s) and you have to select it again which is annoying (similarly
for when the workspace stops).  This preserves the selection when the
workspace transitions.
Also my IDE tells me `is TimeoutCancellationException` is unreachable so
I removed it.
@code-asher code-asher changed the base branch from main to fix-selection April 26, 2023 23:32
@code-asher code-asher force-pushed the retry-listing branch 4 times, most recently from c2dec2c to 6f51bcb Compare April 27, 2023 00:23
@code-asher code-asher marked this pull request as ready for review April 27, 2023 00:31
@code-asher code-asher requested a review from johnstcn April 27, 2023 00:31
retrieveIDEs(executor, selectedWorkspace)
} catch (e: Exception) {
when(e) {
is InterruptedException -> Unit
Copy link
Member

Choose a reason for hiding this comment

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

For posterity: Unit is equivalent to void (see: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/)

Base automatically changed from fix-selection to main April 27, 2023 18:29
@code-asher code-asher merged commit 8d63289 into main Apr 27, 2023
@code-asher code-asher deleted the retry-listing branch April 27, 2023 18:38
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