ExplicitImports.jl icon indicating copy to clipboard operation
ExplicitImports.jl copied to clipboard

Dynamic includes

Open timholy opened this issue 1 year ago • 1 comments

If the dynamic includes are part of the package code, you can extract the full list of included files from the precompile cache header. https://github.com/JuliaLang/julia/blob/faf17eb2d8ef811e59a0e6b541c4502f5d51964c/base/loading.jl#L3245. Which is presumably not public API 😉

timholy avatar Jul 10 '24 21:07 timholy

I think by doing a fully-dynamic introspection of the module as you suggested in #76, I can probably handle dynamic includes for-free, since there may be no parsing needed anymore! We shall see.

edit: also it would be good to not require precompilation (for use during development w/ Revise where the precompile cache may be out of date)

ericphanson avatar Jul 11 '24 08:07 ericphanson