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

no precompile sentence from Pkg.test() #54

Closed
aminya opened this issue Dec 28, 2019 · 2 comments
Closed

no precompile sentence from Pkg.test() #54

aminya opened this issue Dec 28, 2019 · 2 comments

Comments

@aminya
Copy link
Contributor

aminya commented Dec 28, 2019

When I run Pkg.test("somepackage") it doesn't give me any precompile sentence for that somepackage.

This makes it hard to use runtest.jl for generating a precompile file (a file that is already available for most of the packages).

We can include runtests.jl but because some packages have test dependencies it is hard to add those dependencies to the current environment

@timholy
Copy link
Owner

timholy commented Dec 29, 2019

You understand that Pkg.test("somepackage") starts a completely different Julia process, right? So your settings by @snoopi don't carry over.

You should be able to circumvent this by starting Julia with julia --project and use include("runtests.jl").

@aminya
Copy link
Contributor Author

aminya commented Dec 29, 2019

Ahh, I did not know that. I tried to workaround this by adding test dependencies myself.
I wrote a function myself that parses a toml and adds the deps. However, I think this feature should be in the Pkg Instead

https://github.com/aminya/SnoopCompile.jl/blob/4fe0bf3d3428bbe822d212e5d8ff9d9e0216d1b0/src/utilities.jl#L165

@aminya aminya closed this as completed Dec 29, 2019
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