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

Subprocess IPC improvements #204

Merged
merged 2 commits into from
Oct 2, 2022
Merged

Subprocess IPC improvements #204

merged 2 commits into from
Oct 2, 2022

Conversation

NullSenseStudio
Copy link
Collaborator

Redesigned backend to frontend IPC messages to be more easily modified and less prone to cause complicated issues like exceptions in the middle of writing an action to stdout. Added docstrings so other maintainers can better understand what a few parts do. Exception messages can now include a simplified user seen message and a stderr printed stacktrace, and has simplified integration when send_exception() is called within an except block. Message sending is also simplified by the send_action() function automatically packaging kwargs into json instead of individually writing things to stdout.

Fixes regression #192. The error check that is causing that regression has been swapped for a similar one that doesn't have expectations based on user input width and height.

Copy link
Owner

@carson-katri carson-katri left a comment

Choose a reason for hiding this comment

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

Nice refinements, thanks!

@carson-katri carson-katri merged commit 39ed56c into carson-katri:main Oct 2, 2022
@NullSenseStudio NullSenseStudio deleted the subprocess-cleanup branch October 3, 2022 01:15
@carson-katri carson-katri modified the milestone: v0.0.7 Oct 3, 2022
JasonHoku pushed a commit to JasonHoku/dream-textures that referenced this pull request Dec 20, 2022
* redesigned backend to frontend ipc

* adding docstring
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.

2 participants