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

failed to setup environment due to missing dirs #375

Closed
mkitti opened this issue Feb 7, 2022 · 2 comments
Closed

failed to setup environment due to missing dirs #375

mkitti opened this issue Feb 7, 2022 · 2 comments

Comments

@mkitti
Copy link
Member

mkitti commented Feb 7, 2022

(jl_ek7nY5) pkg> st
      Status `C:\Users\kittisopikulm\AppData\Local\Temp\jl_ek7nY5\Project.toml`
  [40e3b903] Clang v0.15.7

julia> using Clang

julia> using Clang.Generators

julia> get_default_args()
ERROR: AssertionError: failed to setup environment due to missing dirs, please file an issue at https://github.com/JuliaInterop/Clang.jl/issues.
Stacktrace:
 [1] get_system_dirs(triple::String, version::VersionNumber)
   @ Clang.JLLEnvs C:\Users\kittisopikulm\.julia\packages\Clang\tldR9\src\shards\JLLEnvs.jl:189
 [2] get_system_dirs
   @ C:\Users\kittisopikulm\.julia\packages\Clang\tldR9\src\shards\JLLEnvs.jl:116 [inlined]
 [3] get_default_args(triple::String) (repeats 2 times)
   @ Clang.Generators C:\Users\kittisopikulm\.julia\packages\Clang\tldR9\src\generator\context.jl:233
 [4] top-level scope
   @ REPL[22]:1

julia> Clang.Generators.get_triple()
"x86_64-w64-mingw32"
@mkitti
Copy link
Member Author

mkitti commented Feb 7, 2022

I think my artifact had gotten corrupted somehow during some garbage collection phase. Only one of the folders were present.

Only the sysroot folder and subfolders were still present. I renamed the artifact folder with a .bak suffix, and allowed Artifacts to redownload it.

@Gnimuc
Copy link
Member

Gnimuc commented Feb 7, 2022

It could happen when something goes wrong during the download&unzip phase. Maybe we should validate the artifacts before throwing this error.

@Gnimuc Gnimuc closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
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

2 participants