I was expecting the --project switch to apply to all processes, but apparently it does not. Is this a bug, or something by design?
(I can work around this with @everywhere Pkg.activate(...), that is not the issue. I encountered this on 1.11, did not test on 1.12.)
3 Likes
Huh. Propagate package environment to local workers by fredrikekre · Pull Request #43270 · JuliaLang/julia · GitHub. But supposedly that’s already in 1.10, 1.11, and 1.12.
If it’s not working, that seems (IMO) like a bug.
1 Like
Does it work if you start Julia with julia --project (without -p), and then do addprocs()?
If so, the bug may be specific to the -p codepath.
1 Like
Thanks for linking the bug. I am still paring it down to an MWE, in simple cases it works as expected.
2 Likes