fix: replace deprecated catch_stack with current_exceptions#21
Open
PranavGadge01 wants to merge 3 commits intomgubi:mainfrom
Open
fix: replace deprecated catch_stack with current_exceptions#21PranavGadge01 wants to merge 3 commits intomgubi:mainfrom
PranavGadge01 wants to merge 3 commits intomgubi:mainfrom
Conversation
Author
|
@hammerfunctor could u please check... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The plugin imports and calls
Base.catch_stackin 3 places.This function is deprecated in Julia and lives in
deprecated.jl,as confirmed by:
When Julia fully removes it in a future version, the plugin
will crash on startup for every user.
Fix
Replace all 3 usages of
catch_stack()withcurrent_exceptions(),which is the official modern replacement:
catch_stackfrom theimport Base:linecatch_stack()withcurrent_exceptions()in theerror handling block
catch_stack()withcurrent_exceptions()in thedisplay error fallback
Verification
Running
@doc Base.catch_stackin a Julia 1.12 session confirmsboth methods are defined in
deprecated.jl:213, meaning Juliahas officially marked this function for removal.