Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: report errors while running actions#193

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fioan89 merged 2 commits intomainfromfix-report-errors-while-executing-actions
Sep 16, 2025

Conversation

fioan89
Copy link
Collaborator

@fioan89fioan89 commentedSep 15, 2025
edited
Loading

JetBrains team reported in the past a couple of errors in the log, one of them beingA workspace build is already active. The issue can be reproduced if the user hits theStop action for example quite quick. It takes maybe one or two seconds to make rest api request, then for the backend to enqueue the build and change the workspace action. If we hit the action buttons really fast then this error could be reproduced.

One approach I tried was to disable the action buttons in the context menu for the duration the request is executed. But for some reason the "enabled" property is not working in context menu, only when the actions are rendered on a UI "page".

Instead, I decided to refactor the existing code and (also) visually report the errors in the UI screen to make the user aware in some cases that a job is already running on the backend.

Another error reported by JetBrains is aRejectedExecutionException in the rest api client, and from the stack trace it seems the thread pool in the rest client was at some point shutdown.
I think it is some sort of race condition, some thread calling shutting down the rest api client while the UI thread still executes polling and user's action. I tried to reproduce the issue with no success, and so I'm improving the logging around plugin de-initialization in the hope that next time the sequence of events is more helpful.

JetBrains team reported in the past a couple of errors in the log, one of thembeing `A workspace build is already active`. The issue can be reproduced if the userhits the `Stop` action for example quite quick. It takes maybe one or two secondsto make rest api request, then for the backend to enqueue the build and change theworkspace action. If we hit the action buttons really fast then this error could bereproduced.One approach I tried was to disable the action buttons in the context menu for the durationthe request is executed. But for some reason the "enabled" property is not working in contextmenu, only when the actions are rendered on a UI "page".Instead, I decided to refactor the existing code and (also) visually report the errors in theUI screen to make the user aware in some cases that a job is already running on the backend.
Another error reported by JetBrains is a  `RejectedExecutionException` in the rest api client,and from the stack trace it seems the thread pool in the rest client was at some point shutdown.I think it is some sort of race condition, some thread calling shutting down the rest api clientwhile the UI thread still executes polling and user's action. I tried to reproduce the issue withno success, and so I'm improving the logging around plugin de-initialization in the hope that nexttime the sequence of events is more helpful.
@fioan89
Copy link
CollaboratorAuthor

Screenshot 2025-09-15 at 23 46 47

Copy link

@jcjiangjcjiang left a comment

Choose a reason for hiding this comment

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

The changes you made around improving logging and visually displaying errors make sense. Could still be helpful to get thoughts from an engineer, but I approve.

Copy link
Member

@code-ashercode-asher 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!

@fioan89fioan89 merged commit3867a15 intomainSep 16, 2025
6 checks passed
@fioan89fioan89 deleted the fix-report-errors-while-executing-actions branchSeptember 16, 2025 20:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jcjiangjcjiangjcjiang approved these changes

@code-ashercode-ashercode-asher approved these changes

@matifalimatifaliAwaiting requested review from matifali

@f0sself0sselAwaiting requested review from f0ssel

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@fioan89@jcjiang@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp