Skip to content

Do not use clear_store! during precompilation #136

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

serenity4
Copy link
Contributor

Caused by JuliaLang/julia#57635, if in the future this issue is resolved in a way that allows for evaluation into closed modules during precompilation then we may revert this PR as well as #134.

#134 was not sufficient (see #134 (comment)) because Infiltrator.__init__() may still be called during precompilation by any package that loads Infiltrator, and this function mutates the store.

I further added a safeguard during access to getfield(::Session, :store) to make sure we correctly report any errors due to this new behavior.

@pfitzseb
Copy link
Member

pfitzseb commented Apr 1, 2025

Tests need JuliaDebug/TerminalRegressionTests.jl#18.

@pfitzseb pfitzseb closed this Apr 1, 2025
@pfitzseb pfitzseb reopened this Apr 1, 2025
@pfitzseb pfitzseb merged commit 9ceed3a into JuliaDebug:master Apr 1, 2025
12 of 14 checks passed
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

Successfully merging this pull request may close these issues.

2 participants