I am trying to formalize my code in a more julian style and I have sepparated a lot of routines from a Jupyter Notebook to a Julia sort of script with all that I could put on a functions module in another file. I am also using another custom module that I created for solving another problem in the past. This older module is called by one of the new modules only. In the header of the new module I have something equivalent to these instructions:
push!(LOAD_PATH, "../TheOtherProblem/")
using ArrayToSetTools # my older module
In the main file also I have the push!
part, but I guess is superfluous as I don’t really call anything from the other directory here.
When I ran the program with the standar julia main.jl args
it takes some 20 seconds to start giving messages and then I get these:
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Aglomerar [top-level]
│ exception = Required dependency ArraySetTools [top-level] failed to load from a cache file.
â”” @ Base loading.jl:969
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for AglomeraAuxiliar [top-level]
│ exception = Required dependency ArraySetTools [top-level] failed to load from a cache file.
â”” @ Base loading.jl:969
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Aglomerar [top-level]
│ exception = Required dependency ArraySetTools [top-level] failed to load from a cache file.
â”” @ Base loading.jl:969
This takes around 3 minutes every time. Its allways the ArraySetTools
module that is on the other directory the one that seems to generate the mess.
As I am testing continously the code with different parameters, its very tedious, and I do not seem to grasp what is wrong… ¿could it be that Julia needs to have all the code in the same directory by some reason?