Skip to content

XLSX.jl locks file on Windows / Julia 0.7 #42

@zundertj

Description

@zundertj

While attempting to make this package run on Julia 0.7-beta2, I ran into this (I cannot reproduce this on Julia 0.6.2!)

I'm on a Windows 10 machine, and this error keeps popping up while running the tests on the very last line where rm("output_tables.xlsx") is called:

ERROR: LoadError: unlink: resource busy or locked (EBUSY)
Stacktrace:
 [1] uv_error at .\libuv.jl:80 [inlined]
 [2] unlink(::String) at .\file.jl:741
 [3] #rm#9(::Bool, ::Bool, ::Function, ::String) at .\file.jl:253
 [4] rm(::String) at .\file.jl:245
 [5] top-level scope at none:0
 [6] include at .\boot.jl:317 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1034
 [8] include(::Module, ::String) at .\sysimg.jl:29
 [9] include(::String) at .\client.jl:393
 [10] top-level scope at none:0
in expression starting at C:\Users\Gebruiker\.julia\dev\XLSX\test\runtests.jl:1035
ERROR: Package XLSX errored during testing

Apparantly, this is a common problem on Windows with respect to file IO, see for instance https://discourse.julialang.org/t/windows-specific-uv-error/3127/8.

I suspect that it might (partially) be a base Julia bug, but for some reason it only fails at the last rm("output_tables.xlsx"), and not on previous calls. Do you have any idea what is so special about this last time, are there operations in the final set of tests that make it lock the file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions