Skip to content

Run cppcheck off the ReadAction thread - #111

Open
harmstyler wants to merge 1 commit into
johnthagen:masterfrom
harmstyler:tharms/fix-read-action
Open

Run cppcheck off the ReadAction thread#111
harmstyler wants to merge 1 commit into
johnthagen:masterfrom
harmstyler:tharms/fix-read-action

Conversation

@harmstyler

Copy link
Copy Markdown

Fixes #109

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Moves cppcheck subprocess execution off the ReadAction thread to avoid IntelliJ Platform “Synchronous execution under ReadAction” errors during inspections (per issue #109), while preserving cancellation semantics via ProgressIndicatorUtils.

Changes:

  • Run CapturingProcessHandler.runProcessWithProgressIndicator(...) on an application pooled thread.
  • Await the subprocess result with ProgressIndicatorUtils.awaitWithCheckCanceled(...), canceling and destroying the process on ProcessCanceledException.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

java.lang.Throwable: Synchronous execution under ReadAction

4 participants