Within a project I tried to use Memoization.jl because it is supposed to be usable with ThreadSafeDicts.
I noticed that my tests were failing due to world age problems with
using ThreadSafeDicts
using Memoization
With using ThreadSafeDicts, Memoization, only the nightly build of Julia succeeded, but 1.5 failed nonetheless.
The specific error was
Got exception outside of a @test
MethodError: no method matching ThreadSafeDicts.ThreadSafeDict()
The applicable method may be too new: running in world age 27819, while current world is 27902.
I decided to forgo ThreadSafeDicts for the moment, which seemed to help at first.
But when running the tests with precompilation disabled, i.e., --compiled-modules=no, I got
MethodError: no method matching _get!(::Type{IdDict}, ::IdDict{Any, Any}, ::Tuple{DataType, UnionAll})
The applicable method may be too new: running in world age 46020, while current world is 49606.
The problems seem related somehow.
For now, I have switched back to Memoize.jl. It does not throw the above errors and seems to also work with ThreadSafeDicts.
Within a project I tried to use
Memoization.jl
because it is supposed to be usable withThreadSafeDicts
. I noticed that my tests were failing due to world age problems withWith
using ThreadSafeDicts, Memoization
, only the nightly build of Julia succeeded, but 1.5 failed nonetheless. The specific error wasI decided to forgo
ThreadSafeDicts
for the moment, which seemed to help at first. But when running the tests with precompilation disabled, i.e.,--compiled-modules=no
, I gotThe problems seem related somehow.
For now, I have switched back to
Memoize.jl
. It does not throw the above errors and seems to also work withThreadSafeDicts
.