-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Julia nightly failure to precompile REPL #55800
Comments
@IanButterworth might this be related to your PR #55782? |
Why is it recompiling REPL and not using the bundled one? Are you overriding JULIA_DEPOT_PATH without the trailing : ? |
No, we are not messing with depot paths. I have no idea why it might recompile REPL |
I can reproduce this locally as well (with Polymake), the package loads fine when doing Setting
I added the debug flag to our CI here: Edit: Small example package (https://github.com/benlorenz/MyReplTest.jl) with only REPL as a dependency. Failing CI job: https://github.com/benlorenz/MyReplTest.jl/actions/runs/10925420997/job/30326858029#step:4:173 |
It looks like it believes it was requested to load 2 different copies of REPL, but apparently REPL has a type-piracy bug, so that is not permitted:
|
AFAICT, the error occurs because the precompile script starts with trying to execute
And whether or not that succeeds depends on whether those global mutations are able to succeed before the activate call works. We should probably move that into the atreplinit callback, so it runs inside REPL.Precompile before the Base.run_std_repl call instead of in Main afterwards |
That doesn't work out of the box because Line 763 in 02549d5
|
@fingolfin @benlorenz can you confirm that this is fixed on your CI. Both the error and the fact that REPL was being precompiled at all (Pkg.test should be using the bundled stdlib caches) |
Yes, CI for Polymake and GAP is working fine again, thanks for the quick fix! I don't see any messages about precompiling REPL, and the debug log for my test-package shows the bundled file being loaded:
|
Great. Thanks |
In the most recent run of the GAP.jl CI runs with Julia nightly it fails to precompile REPL. Note that GAP.jl has REPL in its dependencies.
For example this log:
The text was updated successfully, but these errors were encountered: