Skip to content

Backend: Move ErrorManager Consts to Repo#4514

Draft
DavidArthurCole wants to merge 4 commits intohannibal002:betafrom
DavidArthurCole:backend/strip-stack
Draft

Backend: Move ErrorManager Consts to Repo#4514
DavidArthurCole wants to merge 4 commits intohannibal002:betafrom
DavidArthurCole:backend/strip-stack

Conversation

@DavidArthurCole
Copy link
Contributor

Dependencies

What

Moves the ErrorManager constants to the repo so we can whittle down stacks ad-hoc without changing versions.
I left the 'old' values in place in the default vars, as there are definitely code paths that would lead to ErrorManager being called before repo load.

I also added at.hannibal2.skyhanni.api.event.SkyHanniEvent.post as one of the breakAfter values, as it's always the trace down to the packet level after that in the stack.

image

Changelog Technical Details

  • Moved ErrorManager cleanup constants to repo. - Daveed

@github-actions github-actions bot added Waiting on Dependency PR waiting for a dependency pr to be merged Backend A backend pull request that will be merged soon labels Jul 28, 2025
@hannibal002 hannibal002 added this to the 5.0.0 milestone Jul 29, 2025
@hannibal002 hannibal002 modified the milestones: 5.0.0, 6.0.0 Aug 5, 2025
@github-actions github-actions bot removed Waiting on Dependency PR waiting for a dependency pr to be merged Backend A backend pull request that will be merged soon labels Nov 7, 2025
@github-actions github-actions bot added the Backend A backend pull request that will be merged soon label Feb 24, 2026
Copy link
Owner

@hannibal002 hannibal002 left a comment

Choose a reason for hiding this comment

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

the values in the repo are correct


import com.google.gson.annotations.Expose

data class ErrorManagerJson(
Copy link
Owner

Choose a reason for hiding this comment

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

please do not use camel case names in the json. e.g. in the json, use break_after, then use @SerializedName to map this to the kotlin variable breakAfter

fun onRepoReload(event: RepositoryReloadEvent) {
val repoData = event.getConstant<ErrorManagerJson>("ErrorManager")
breakAfter = repoData.breakAfter
replace = repoData.replacements
Copy link
Owner

Choose a reason for hiding this comment

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

please use consistent variable names, for replace vs replacements and replace entirely vs entire replacements

"at net.minecraft.client.main.Main.main",
"at.hannibal2.skyhanni.api.event.EventListeners.createZeroParameterConsumer",
"at.hannibal2.skyhanni.api.event.EventListeners.createSingleParameterConsumer",
"at.hannibal2.skyhanni.api.event.SkyHanniEvent.post"
Copy link
Owner

Choose a reason for hiding this comment

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

please add the trailing comma

@DavidArthurCole
Copy link
Contributor Author

the values in the repo are correct

Yes, this branch is massively outdated, and needs updating for Fabric, anyways.
I'll take to draft for now.

@DavidArthurCole DavidArthurCole marked this pull request as draft February 26, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend A backend pull request that will be merged soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants