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

Artifact precompile script errors #37904

Closed
KristofferC opened this issue Oct 6, 2020 · 3 comments
Closed

Artifact precompile script errors #37904

KristofferC opened this issue Oct 6, 2020 · 3 comments
Assignees

Comments

@KristofferC
Copy link
Member

cd(() -> @artifact_str("c_simple"), dirname(artifacts_toml))
ERROR: LoadError: Cannot locate '(Julia)Artifacts.toml' file when attempting to use artifact 'c_simple' in 'Main'
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] @artifact_str(__source__::LineNumberNode, __module__::Module, name::Any, platform::Any)
   @ Artifacts ~/julia/usr/share/julia/stdlib/v1.6/Artifacts/src/Artifacts.jl:590
 [3] @artifact_str(__source__::LineNumberNode, __module__::Module, name::Any)
   @ Artifacts ~/julia/usr/share/julia/stdlib/v1.6/Artifacts/src/Artifacts.jl:584
in expression starting at REPL[18]:1

is this intentional?

@staticfloat
Copy link
Member

staticfloat commented Oct 6, 2020

Grr, I hate how I can so easily break things in the precompile script and not notice. Can you try this:

cd(() -> (name = “c_simple”; @artifact_str(name)), dirname(artifacts_toml))

@KristofferC
Copy link
Member Author

KristofferC commented Oct 6, 2020

We could execute everything not specifically for the REPL in a normal script which would throw on error.

@KristofferC
Copy link
Member Author

Any ref for closing this?

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