-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method definition overwritten warning could be more helpful... #35140
Comments
The risk here (with the proposed change) is that having |
StefanKarpinski
pushed a commit
that referenced
this issue
Jul 10, 2020
simeonschaub
pushed a commit
to simeonschaub/julia
that referenced
this issue
Aug 11, 2020
Always show the warning for anonymous functions, but update the verbiage to give additional information. This warning can still be avoided by explicitly calling delete_method first. fixes JuliaLang#32635 fixes JuliaLang#35140 refs JuliaLang#15602
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...in the case that a file is included twice. In that case, it shows up as
(example from Slack). This is actually really helpful if you know the only way a method at
LinearSolver.jl:62
can overwrite a method atLinearSolver.jl:62
is if the code is being evaluated twice, i.e., a duplicatedinclude
statement, but is pretty confusing if you don't realize that is possiblity. I propose adding a check to see if the file path and line number is the same for the two methods, and in that case changing the warning to something likeThe warning is generated here
julia/src/gf.c
Lines 1372 to 1387 in 3b53f54
The text was updated successfully, but these errors were encountered: