Skip to content

Conversation

joshgiesbrecht
Copy link
Contributor

@joshgiesbrecht joshgiesbrecht commented Aug 1, 2025

Refactored SketchException to live in :app:utils, as per discussion in draft PR #1164. (resubmitted because that draft PR turned into an all-out mess of unrelated commits somehow)

Before merge:

  • Disable/remove GitHub actions related to Ant

Closes #1153

@Stefterv Stefterv marked this pull request as ready for review August 5, 2025 09:02
@Stefterv Stefterv changed the title Sketch exception refactor (new PR) Refactoring SketchException to be available outside of app Aug 5, 2025
@Stefterv
Copy link
Collaborator

Hi @joshgiesbrecht, thank you again for your work on this! I just ran your branch locally and it breaks Android mode since it is looking for the SketchException class but cannot find it within the processing.app. We should keep a SketchException in processing.app and check if it works if it is just an extended version of the processing.utils one.

…ly refactored one, so alternate modes don't break.
@joshgiesbrecht
Copy link
Contributor Author

I think we're good to go now. I wrote a new, very tiny processing.app.SketchException that extends the utils one, so not only does it allow other modes to work but it still plays nicely when testing if something is a processing.utils.SketchException.

Once this is released, I'll submit changes to the other modes so they refer directly to the utils class, and when those are released then I'll come back and delete the extra file. Hopefully. Fingers crossed. 😆

@Stefterv
Copy link
Collaborator

Thank you @joshgiesbrecht! Not sure if the super wrappers are necessary, and could you mark the wrapper class as Deprecated?

@joshgiesbrecht
Copy link
Contributor Author

Deprecated marked. I didn't expect the wrappers would be necessary either, but Idea complained and said it was a compile problem, so I let it generate them. 🤷

@joshgiesbrecht
Copy link
Contributor Author

Not sure how to connect this PR in github to the issue, but it's resolving issue #1153

Comment on lines +1 to +2
// temporary band-aid class to support modes which are still looking here for the now-refactored class.
// - josh giesbrecht
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, when would this band-aid be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My plan was to submit PRs to the other supported modes to switch them over, once this is released. Then when all existing supported modes are fully switched over this could be deleted.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Considering we do not know which 3rd party modes/tools have used this class I would expect this stub to be there for quite a while.

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.

No stack trace or thrower position highlighting on exception
3 participants