Autoreload.jl icon indicating copy to clipboard operation
Autoreload.jl copied to clipboard

smart_reload doesn't seem to be working

Open quinnj opened this issue 11 years ago • 1 comments

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?

quinnj avatar Apr 28 '14 17:04 quinnj

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.

malmaud avatar May 16 '14 20:05 malmaud