Skip to content

Fix linking/unlinking in external.jl file #731

Open
@musm

Description

@musm

There's some hard to track bugs in this file
For one, the commented out rm(fn2) is unable to unlink even though the handle is closed.

There's also the common warning when running the file directly that keeps showing up locally and on CI

┌ Warning: temp cleanup
│   exception =
│    IOError: unlink: resource busy or locked (EBUSY)
│    Stacktrace:
│     [1] uv_error
│       @ .\libuv.jl:97 [inlined]
│     [2] unlink(p::String)
│       @ Base.Filesystem .\file.jl:916
│     [3] rm(path::String; force::Bool, recursive::Bool)
│       @ Base.Filesystem .\file.jl:270
│     [4] temp_cleanup_purge(; force::Bool)
│       @ Base.Filesystem .\file.jl:516
│     [5] (::Base.var"#775#776")()
│       @ Base .\initdefs.jl:317
│     [6] _atexit()
│       @ Base .\initdefs.jl:338
│     [7] exit
│       @ .\initdefs.jl:28 [inlined]
│     [8] _start()
│       @ Base .\client.jl:488
└ @ Base.Filesystem file.jl:520

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions