Open ffevotte opened 1 month ago
I can reproduce it. This one puzzled me. I have bisected it to #51275. That doesn't make much sense, unless there is something in one of those packages which does some unsafe string handling which by chance happened to work before, and not after that PR. Or the bisection could be random (though I used 50 runs of the script to see if it failed). It would make more sense if it was the Pkg bump in 51296, but it doesn't seem to be that one.
(X-link: https://discourse.julialang.org/t/issue-with-1-11-where-package-loading-order-matters/121233?u=ffevotte)
When switching to julia 1.11 in a big project with lots of dependencies, I’ve encountered a strange issue that didn’t happen with 1.10.
After some debugging, I’ve managed to isolate the following small example:
This example sometimes works, and sometimes fails in the following way:
And the aforementioned discourse discussion helped discover that the issue does not always manifest itself:
I'm not sure whether it is significant, but adding unrelated packages to the environment seems to increase the probability of occurrence of the issue. For example, when adding
CairoMakie
to the mix (even without loading it):I'm filing this issue here because this same example works well (and consistently/reliably) with Julia 1.10, which seems to point at a 1.11 regression. That being said, it may very well be that this issue actually belongs to one of the packages involved.
If there are any more tests that you can think of to better understand this, I'm more than willing to help. But I'm a bit short on ideas at the moment...
Thanks in advance!