Skip to content

Commit 6c336b0

Browse files
committed
Add warning on Julia v1.12.0
1 parent 7a5b74f commit 6c336b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/copyable_task.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,13 @@ The above gives the broad outline of how `TapedTask`s are implemented. We refer
279279
readers to the code, which is extensively commented to explain implementation details.
280280
"""
281281
function TapedTask(taped_globals::Any, fargs...; kwargs...)
282+
@static if v"1.12.1" > VERSION >= v"1.12.0-"
283+
@warn """
284+
Libtask.jl does not work correctly on Julia v1.12.0 and may crash your Julia
285+
session. Please upgrade to at least v1.12.1. See
286+
https://github.com/JuliaLang/julia/issues/59222 for the bug in question.
287+
"""
288+
end
282289
all_args = isempty(kwargs) ? fargs : (Core.kwcall, getfield(kwargs, :data), fargs...)
283290
seed_id!() # a BBCode thing.
284291
mc, count_ref = build_callable(typeof(all_args))

0 commit comments

Comments
 (0)