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

write lock on file Windows

Open kafisatz opened this issue 11 months ago • 0 comments

On Windows 11 (using VS Code) the second line below locks the file. I.e. once the line is executed I can no longer amend the file and write to disk (in another application)

My workaround is the first line.

Any idea why this is happening? Is it possible to define JSON3.read(fi) = JSON3.read(read(fi,String)) as such (I have not looked at the source code)

js = JSON3.read(read(fi,String)); #works perfectly fine
js = JSON3.read(fi); #produces a read/write lock for this file 

kafisatz avatar Jan 21 '25 11:01 kafisatz