Skip to content

Conversation

@vchuravy
Copy link
Member

MethodError is pulled in implicitly and we need to disambiguate our usage here

x-ref: JuliaLang/julia#57290

ought to fix the GPUCompiler issue in JuliaLang/julia#57332

@maleadt
Copy link
Member

maleadt commented Feb 10, 2025

I'd rather do the other way around; to avoid invalidations we don't really want to expose this method globally, do we? We could just rename it to MethodErrorByType.

@vchuravy
Copy link
Member Author

vchuravy commented Feb 10, 2025

to avoid invalidations we don't really want to expose this method globally, do we?

IIUC Keno's comment in JuliaLang/julia#57290 (comment) by resolving the binding directly with global MethodError we choose the behavior we want here, e.g. we create a new binding for MethodError that is not aliased with Base.MethodError.

@codecov
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.21%. Comparing base (4705aea) to head (ad824e3).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #664      +/-   ##
==========================================
- Coverage   71.71%   70.21%   -1.51%     
==========================================
  Files          24       24              
  Lines        3330     3330              
==========================================
- Hits         2388     2338      -50     
- Misses        942      992      +50     

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

Ref{ft}()[]
end
end
global MethodError

Choose a reason for hiding this comment

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

Suggested change
global MethodError
function MethodError end

imo, it's more conspicuous that this does what you want

Copy link
Member Author

@vchuravy vchuravy Feb 10, 2025

Choose a reason for hiding this comment

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

Actually that looks more confusing since it seems redundant to the statement below.

In every other situation I would merge a function declaration and a method declaration into one.

Choose a reason for hiding this comment

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

Fair enough - I agree that neither syntax is really very transparent / consistent

@maleadt maleadt merged commit 870fa83 into master Feb 11, 2025
16 of 19 checks passed
@maleadt maleadt deleted the vc/fix_1.12 branch February 11, 2025 09:21
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.

4 participants