Basically, I have a personal package (let’s call it MyPackage.jl). It is located in the same folder as I run my scripts. I have added it to the environment using
Pkg.develop("MyPackage/")
Every time I start a Julia process and does
using MyPackage
It will go through precompilation, taking like 5 minutes (and I also have a workflow which requires a decent amount of restarting, which makes this a mess).
What might be related is that I run Julia from VSCode where I have ssh’d into a machine. There I run my package both interactively in VSCode, and in script for from the terminal (julia script_which_uses_mypackage.jl).
I am not an expert on precompilation (when it happens and why), but can someone confirm that this isn’t something that should actually happen? I should not, I do not make any modifications to MyPackage, my enviornment, or Julia version, between restarts.
Here: Why is my package precompiled on every startup? - #8 by erans someone mentioned a cause which could be similar, and linked to GitHub - simonbyrne/PkgLock.jl: Locked Pkg instantiate/precompile. However, all the issues that package links have now been closed (and the package not been updated for 6 years), so I don’t feel that might be the case anymore?