Skip to content
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

Dynamic includes #75

Open
timholy opened this issue Jul 10, 2024 · 1 comment
Open

Dynamic includes #75

timholy opened this issue Jul 10, 2024 · 1 comment

Comments

@timholy
Copy link

timholy commented Jul 10, 2024

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 😉

@ericphanson
Copy link
Owner

ericphanson commented Jul 11, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants