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

Certain functions can not be called while precompiling #4713

Open
KristofferC opened this issue Apr 3, 2023 · 1 comment
Open

Certain functions can not be called while precompiling #4713

KristofferC opened this issue Apr 3, 2023 · 1 comment
Labels

Comments

@KristofferC
Copy link
Contributor

See the discourse post https://discourse.julialang.org/t/plots-breaks-incremental-compilation/96990/3. This @eval call does not work during precompilation.

In general, I am a bit scared about all the @evals (even into Main) that Plots.jl does. I am sure there are reasons for it but would be good to try reduce it as much as possible probably.

@KristofferC KristofferC added the bug label Apr 3, 2023
@t-bltg
Copy link
Member

t-bltg commented Apr 6, 2023

It's already reduced, I guess, this has also bothered me for a while.
This is induced by Plots initial design of having optional backends (we are forced to @eval in Main, else Pkg will complain about a backend not being a Plots dependency), and I don't think there is a trivial enhancement to this if we want to retain compatibility with previous julia versions.
Maybe we can use weak deps following #4649 in julia 1.9, but that's a lot of work and breaking for sure, so reserved for Plots 2.0.

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

No branches or pull requests

2 participants