You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I watch files using @use_file, the cell-evaluation repeats indefinitely:
Or in code:
# ╔═╡ d897134c-3905-49c9-bc67-cf65252fc18ebegin
f1 =tempname()
open(f1,"w") do io
println(io, "test1")
endend# ╔═╡ da80d3e9-0141-4f27-b6b8-da70abc77fbcbegin
f2 =tempname()
open(f2,"w") do io
println(io, "test2")
endend# ╔═╡ 71e01590-0310-40fa-97c3-3aea48c20ae4
[@use_file(f) for f in [f1,f2]] # <-- this cell re-evaluates indefinitely# ╔═╡ 2902b855-2289-44b0-b53b-41841be6c806
[@use_file(f1), @use_file(f2)] # <-- this cell evaluates once
I guess that's due to a closure in the list-comprehension?
I looked into the @use_file, but didn't find any way to fix this. Maybe @use_file is just not supposed to be used like this, then one could use something @assert isfile(eval(filename)) in @use_file to "warn" users?
The text was updated successfully, but these errors were encountered:
When I watch files using
@use_file
, the cell-evaluation repeats indefinitely:Or in code:
I guess that's due to a closure in the list-comprehension?
I looked into the
@use_file
, but didn't find any way to fix this. Maybe@use_file
is just not supposed to be used like this, then one could use something@assert isfile(eval(filename))
in@use_file
to "warn" users?The text was updated successfully, but these errors were encountered: