Skip to content

Conversation

serenity4
Copy link
Collaborator

Modify the format of method_info to have it keyed by mt::Union{Nothing, MethodTable} => sig pairs instead of sig.
This allows Revise and other packages to lookup method_info scoped by an external method table, if any (a value of nothing representing the internal method table).

An alternative design would be use two dictionaries, where the current sig => [(lnn, ex)...] mapping would be a value of an outer mt => info mapping. I went with keeping a single dictionary (but modifying its key format) for simplicity, but I am open to other designs.

Copy link
Member

@timholy timholy left a comment

Choose a reason for hiding this comment

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

This looks great and less intrusive than expected. I don't have any reservations about the implementation.

It probably makes sense to bump CodeTracking's version to 2.0.0 as part of this PR. You could also make it 2.0.0-DEV if you want to signal that other breaking changes should land before release.

Copy link

codecov bot commented Apr 21, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 69.60%. Comparing base (923fe46) to head (c0ca2ff).
Report is 37 commits behind head on master.

Files with missing lines Patch % Lines
src/CodeTracking.jl 66.66% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (923fe46) and HEAD (c0ca2ff). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (923fe46) HEAD (c0ca2ff)
10 8
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #140       +/-   ##
===========================================
- Coverage   89.50%   69.60%   -19.90%     
===========================================
  Files           3        3               
  Lines         381      408       +27     
===========================================
- Hits          341      284       -57     
- Misses         40      124       +84     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

As all other manipulation functions for IdDict don't
convert, it's best to be consistent and catch errors
when we detect a mismatch.
@serenity4
Copy link
Collaborator Author

Is it ok to drop 1.6 and support only from 1.10 onwards?

@timholy
Copy link
Member

timholy commented Apr 25, 2025

Is it ok to drop 1.6 and support only from 1.10 onwards?

Definitely!

@serenity4 serenity4 marked this pull request as ready for review April 25, 2025 17:49
Tests will fail, that's normal
@serenity4 serenity4 merged commit 41dd15f into JuliaDebug:master Apr 25, 2025
8 of 12 checks passed
@serenity4 serenity4 deleted the parametrize-by-mt branch April 25, 2025 17:51
serenity4 added a commit that referenced this pull request Apr 25, 2025
@serenity4
Copy link
Collaborator Author

(forgot to squash before merge, I cleaned things up in 8e1ca1e)

@serenity4 serenity4 mentioned this pull request Jun 10, 2025
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.

2 participants