Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError: unlink("C:\\Users\\...\\.julia\\compiled\\v1.9\\OhMyREPL\\08e1i_wox7V.dll"): permission denied (EACCES) #290

Closed
AbhimanyuAryan opened this issue Jan 25, 2023 · 1 comment

Comments

@AbhimanyuAryan
Copy link

julia> versioninfo()
Julia Version 1.9.0-beta2
Commit 7daffeecb8 (2022-12-29 07:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 7 5800H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
  Threads: 1 on 16 virtual cores

Getting error while updating to OhMyREPL v0.5.13

(@v1.9) pkg> up OhMyREPL
    Updating registry at `C:\Users\aryan\.julia\registries\General.toml`
  No Changes to `C:\Users\aryan\.julia\environments\v1.9\Project.toml`
  No Changes to `C:\Users\aryan\.julia\environments\v1.9\Manifest.toml`
Precompiling environment...
  ◓ OhMyREPL
  ◓ Genie
┌ Error: Pkg.precompile error
│   exception =
│    IOError: unlink("C:\\Users\\aryan\\.julia\\compiled\\v1.9\\OhMyREPL\\08e1i_wox7V.dll"): permission denied (EACCES)
│    Stacktrace:
│      [1] uv_error
│        @ .\libuv.jl:100 [inlined]
│      [2] unlink(p::String)
│        @ Base.Filesystem .\file.jl:972
│      [3] rm(path::String; force::Bool, recursive::Bool)
│        @ Base.Filesystem .\file.jl:283
│      [4] checkfor_mv_cp_cptree(src::String, dst::String, txt::String; force::Bool)
│        @ Base.Filesystem .\file.jl:330
│      [5] cp(src::String, dst::String; force::Bool, follow_symlinks::Bool)
│        @ Base.Filesystem .\file.jl:378
│      [6] rename(src::String, dst::String; force::Bool)
│        @ Base.Filesystem .\file.jl:981
│      [7] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│        @ Base .\loading.jl:2110
│      [8] (::Pkg.API.var"#236#264"{IOBuffer, String, Base.PkgId})()
│        @ Pkg.API C:\Users\aryan\.julia\juliaup\julia-1.9.0-beta2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\Pkg\src\API.jl:1362
│      [9] with_logstate(f::Function, logstate::Any)
│        @ Base.CoreLogging .\logging.jl:514
│     [10] with_logger
│        @ .\logging.jl:626 [inlined]
│     [11] macro expansion
│        @ C:\Users\aryan\.julia\juliaup\julia-1.9.0-beta2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\Pkg\src\API.jl:1360 [inlined]
│     [12] (::Pkg.API.var"#233#261"{Bool, Pkg.Types.Context, Vector{Task}, Pkg.API.var"#handle_interrupt#253"{Base.Event, ReentrantLock, Base.TTY}, Pkg.API.var"#color_string#251", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, String, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│        @ Pkg.API .\task.jl:514
└ @ Pkg.API C:\Users\aryan\.julia\juliaup\julia-1.9.0-beta2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\Pkg\src\API.jl:1231
@AbhimanyuAryan
Copy link
Author

ok I removed the directory compiled\ohmyrepl manually and then installed the latest version and it worked. Looks like there was a problem with unlinking i.e. deleting the dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant