File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = " BasicAutoloads"
22uuid = " 09cdc199-4954-42dd-9e0c-2e47e8233053"
33authors = [" Lilith Orion Hafner <lilithhafner@gmail.com> and contributors" ]
4- version = " 1.0.2 "
4+ version = " 1.0.3 "
55
66[compat ]
77julia = " 1"
Original file line number Diff line number Diff line change @@ -100,14 +100,19 @@ struct _WaitRegisterASTTransform{T}
100100end
101101function (wrat:: _WaitRegisterASTTransform )()
102102 iter = 0
103- while ! isdefined (Base, :active_repl_backend ) && iter < 20
104- sleep (.05 )
103+ while ! isdefined (Base, :active_repl_backend ) && iter < 30
105104 iter += 1
105+ sleep (.02 * iter)
106106 end
107- if isdefined (Base, :active_repl_backend ) && isdefined (Base. active_repl_backend, :ast_transforms )
108- pushfirst! (Base. active_repl_backend. ast_transforms, wrat. ast_transform)
107+ if isdefined (Base, :active_repl_backend )
108+ if isdefined (Base. active_repl_backend, :ast_transforms )
109+ pushfirst! (Base. active_repl_backend. ast_transforms, wrat. ast_transform)
110+ else
111+ @warn " Failed to find Base.active_repl_backend.ast_transforms. Autoloads will not work."
112+ end
109113 else
110- @warn " Failed to find Base.active_repl_backend.ast_transforms"
114+ @warn " Timed out waiting to Base.active_repl_backend to be defined. Autoloads will not work."
115+ @info " If you have a slow startup file, consider moving `register_autoloads` to the end of it."
111116 end
112117end
113118
You can’t perform that action at this time.
0 commit comments