Autoreload.jl
Autoreload.jl copied to clipboard
smart_reload doesn't seem to be working
In [2]: using Autoreload
In [3]: arequire("Dates")
In [4]: Dates.tester(1)
Out [4]: 0
In [5]: areload()
Out [5]: ERROR: invalid redefinition of constant UTInstant
while loading C:\Users\karbarcca\.julia\v0.3\Dates\src\types.jl, in expression starting on line 37
In [6]: smart_reload("Dates")
Out [6]: ERROR: invalid redefinition of constant UTInstant
while loading C:\Users\karbarcca\.julia\v0.3\Dates\src\types.jl, in expression starting on line 37
Doesn't areload() supposed to use smart_reload by default? Am I doing this right?
Ya, you're doing it right. The problem is I reduced the amount of constant-stripping this package performed after https://github.com/JuliaLang/julia/pull/5280, but a recent change to Julia base has caused reloading parametric type definitions to once again throw 'invalid redefinition' errors. I'll have to modify Autoreload accordingly.