So if I run this to re-include a file when it changes:
fname = "/full/path/to/changingfile.jl" t1 = 0 while(true) if t1 != mtime(fname) println(isfile(fname)) include(abspath(fname)) t1 = mtime(fname) end Foo("a") end
changingfile.jl is actually changed I get
could not open file. Just wanted to know if this is normal behaviour? It does not happen when it’s inside either an
if or it is just a loop.
I was impressed by Django server reloading the files I’m working on so decided to implement it in my Julia server( at least not in production ).
Thanks in advance