# Frequent (and annoying) precompilation when using several Pkg environments

**URL:** <https://discourse.julialang.org/t/frequent-and-annoying-precompilation-when-using-several-pkg-environments/21963>\
**Category:** General Usage\
**Tags:** precompilation\
**Created:** [March 17, 2019, 12:41pm UTC](https://discourse.julialang.org/t/frequent-and-annoying-precompilation-when-using-several-pkg-environments/21963 "2019-03-17T12:41:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedxa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedxa/32/488_2.png) [@fedxa](https://discourse.julialang.org/u/fedxa)\
**Post date:** [March 17, 2019, 12:41pm UTC](https://discourse.julialang.org/t/frequent-and-annoying-precompilation-when-using-several-pkg-environments/21963/1 "2019-03-17T12:41:36Z")

</div>

There is currently a quite annoying precompilation behaviour. I have the following configuration. I have two working environments one for “Project” and a generic one. Both have, for example, DifferentialEquations installed, and the version is the same. However, after some time I call `Pkg.update` in the root environment, which updates some _dependency_ of DifferentialEquations. In this situation each time I switch between the root and Project environments DifferentialEquations are precompiled.

The reason is that the precompiled file is associated only withe the version of the package, not the versions of all its dependencies. I may think, that just storing the precompiled files withing a directory of the working environment would solve the problem.

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [March 17, 2019, 12:51pm UTC](https://discourse.julialang.org/t/frequent-and-annoying-precompilation-when-using-several-pkg-environments/21963/2 "2019-03-17T12:51:54Z")

</div>

This is [How precompile files are loaded need to change if using multiple projects are going to be pleasant · Issue #27418 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/27418). I hope it’ll be fixed soon.

---

<div class="post-metadata">

**Author:** ![fedxa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fedxa/32/488_2.png) [@fedxa](https://discourse.julialang.org/u/fedxa)\
**Post date:** [March 17, 2019, 1:25pm UTC](https://discourse.julialang.org/t/frequent-and-annoying-precompilation-when-using-several-pkg-environments/21963/3 "2019-03-17T13:25:08Z")

</div>

Thanks! Yes, this is it.

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [March 17, 2019, 6:05pm UTC](https://discourse.julialang.org/t/frequent-and-annoying-precompilation-when-using-several-pkg-environments/21963/4 "2019-03-17T18:05:57Z")

</div>

Is anyone actually actively working on that issue?
