-
Notifications
You must be signed in to change notification settings - Fork 111
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
over-eager method deletion? #137
Comments
Thanks for the example. Sadly doesn't trigger for me: julia> includet("nash.jl")
julia> process
process (generic function with 3 methods)
julia> methods(process)
# 3 methods for generic function "process":
[1] process() in Main at /tmp/nash.jl:15
[2] process(data::Array{#s24,1} where #s24<:Unsigned) in Main at /tmp/nash.jl:15
[3] process(data::Array{#s25,1} where #s25<:Unsigned, lidict::Set) in Main at /tmp/nash.jl:15
julia> print_indent
print_indent (generic function with 1 method)
shell> touch nash.jl
julia>
julia> print_indent
print_indent (generic function with 1 method)
julia> methods(process)
# 3 methods for generic function "process":
[1] process() in Main at /tmp/nash.jl:15
[2] process(data::Array{#s24,1} where #s24<:Unsigned) in Main at /tmp/nash.jl:15
[3] process(data::Array{#s25,1} where #s25<:Unsigned, lidict::Set) in Main at /tmp/nash.jl:15
julia> print_indent(stdout, 5)
︰ True also if I place the above inside module Mod1
module Mod2
<body>
end
end Happy to go over these in person together when you have time. |
Could it be related that these were precompiled into stdlib? |
Maybe. #163 might help debug stuff. |
This works around JuliaLang/julia#28899 and probably fixes #137 New tests: - test JuliaLang/julia#28899 - test for signature-changes with a gensymmed type - test that changes that do not fundamentally change the type signature do not result in inadvertent deletion (probably #137).
This works around JuliaLang/julia#28899 and probably fixes #137 New tests: - test JuliaLang/julia#28899 - test for signature-changes with a gensymmed type - test that changes that do not fundamentally change the type signature do not result in inadvertent deletion (probably #137).
I'm calling this fixed by #180. If you encounter future troubles you can always have logging on by default and consequently not worry so much about whether you can find a MWE. |
I had some code like this in a submodule, and it seems like Revise.jl deleted these method when I loaded this package (and touched the file). Sorry I can't try to check it further as an MRE right now.
The text was updated successfully, but these errors were encountered: