-
Notifications
You must be signed in to change notification settings - Fork 7
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
Precompilation errors introduced on v0.4.9 for Julia 1.11+ #51
Comments
Could it be something like JuliaLang/julia#54821? We might be missing some dispatch, but it's not super obvious to me if an additional dispatch is needed. EDIT: I guess you figured it out 😅 |
Sorry, I made that PR too early. It seemed it just caused a different error which hid the precompilation error. I still can't figure it out... Very weird issue |
The issue JuliaLang/julia#54821 seems to be different (but I'm not sure) since they report also seeing the error on v1.10.4, whereas I only see this one on v1.11 |
Ooof, this is one of the nastiest bugs I've ran into... It has this weird interaction with Julia precompilation where it will literally disappear depending on what code you've already precompiled... Meaning you can only see this reliably if you switch back and forth from |
Ok, I think I can confirm that it's NOT the kwargs branch. The error only occurs from the change - :($(Base).promote_op($simulator, map($specializing_typeof, ($(arg_symbols...),))...))
+ :($(_promote_op)($simulator, $(typeof_args))) which is here: DispatchDoctor.jl/src/stabilization.jl Line 272 in 8cde47c
If I only change back this branch, it seems to start working again. (I think) |
Ok, it seems to be working, except now Zygote is generating type instabilities again. Want to take a look at the PR #53 and see if you have luck? For the record I'm testing the precompilation errors with the master version of DynamicExpressions.jl, and dev'ing DispatchDoctor: julia +1.11 --project=. -e 'using Pkg; pkg"dev ~/DispatchDoctor.jl/"; pkg"precompile"' I need to remove the Manifest.toml each time to assert precompilation happens fully. |
Moved to JuliaLang/julia#55147 as it seems to be a Julia bug. v0.4.11 of DispatchDoctor.jl has a workaround. |
cc @avik-pal
It seems like v0.4.9+ of DispatchDoctor.jl causes precompilation errors on Julia 1.11. I'm seeing these on DynamicExpressions.jl and hitting an
Unreachable reached
error: https://github.com/MilesCranmer/SymbolicRegression.jl/actions/runs/9947224797/job/27479456770?pr=326#step:6:643However, v0.4.8 of DispatchDoctor works. This is the diff: v0.4.8...v0.4.9
Error:
The changes are pretty small so hopefully it's easy to track this down.
Any guesses @avik-pal?
The text was updated successfully, but these errors were encountered: