Repository navigation
Improve code prevenance for @autoreleasepool functions - #73
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #73 +/- ##
=======================================
Coverage ? 73.55%
=======================================
Files ? 13
Lines ? 1006
Branches ? 0
=======================================
Hits ? 740
Misses ? 266
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
maleadt
approved these changes
Jun 3, 2026
Member
|
I guess the only disadvantage is that crashes from code inserted by the macro would now be misattributed to the source function and not the macro? |
Contributor
Author
|
I threw in an error in Old: julia> autothrowfunc()
ERROR:
Stacktrace:
[1] error()
@ Base ./error.jl:45
[2] macro expansion
@ ~/.julia/dev/ObjectiveC/src/foundation.jl:570 [inlined]
[3] macro expansion
@ ./lock.jl:376 [inlined]
[4] ObjectiveC.Foundation.NSAutoreleasePool(f::var"#autothrowfunc##0#autothrowfunc##1")
@ ObjectiveC.Foundation ~/.julia/dev/ObjectiveC/src/foundation.jl:565
[5] autothrowfunc()
@ Main ~/.julia/dev/ObjectiveC/src/foundation.jl:644
[6] top-level scope
@ REPL[2]:1New: julia> autothrowfunc()
ERROR:
Stacktrace:
[1] error()
@ Base ./error.jl:45
[2] macro expansion
@ ~/.julia/dev/ObjectiveC/src/foundation.jl:570 [inlined]
[3] macro expansion
@ ./lock.jl:376 [inlined]
[4] ObjectiveC.Foundation.NSAutoreleasePool(f::var"#autothrowfunc##0#autothrowfunc##1")
@ ObjectiveC.Foundation ~/.julia/dev/ObjectiveC/src/foundation.jl:565
[5] autothrowfunc()
@ Main ~/.julia/dev/ObjectiveC/test.jl:3
[6] top-level scope
@ REPL[2]:1 |
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.
This has bothered me for a while since it makes error messages much harder to parse. May also fix codecov not picking up coverage of the function definition line if annotated with
@autoreleasepool.test.jl
Old:
New: