Separate compile cache for `julia-debug`?

Whenever I run julia-debug for the first time in a while, I get:

[ Info: Precompiling Revise ...]

as it is initialized in my startup.jl. And, generally, the compile cache is invalidated and everything recompiled. When I switch back to using julia, the same thing happens.

Is there a way to configure things so that julia-debug gets its own compile cache?

Which version of Julia are you on? You may want to try the latest release candidate for 1.3 ? I don’t know if addresses the issue for julia-debug but the problem is addressed for the non-debug julia executable.

I don’t think it helps with the issue here unfortunately.

Would using a separate depot (JULIA_DEPOT_PATH) be an option for your use case?

Creating a separate depot is a bit of a heavyweight solution, but may be an acceptable workaround for my purposes. I’ll give it a try.

I think fixing this is as easy as adding JLOptions().julia_bin to package_slug. See:

That looks much closer to what I would call the “right” solution. Thanks for the heads-up, @tkf.

I opened an issue and submitted a one-line PR that fixes this. Fingers crossed, some version of it gets merged.

1 Like