Skip to content

Conversation

@topolarity
Copy link
Member

@topolarity topolarity commented Feb 28, 2025

Although a package is loaded, we may not have top-level using rights.

Instead, we need to pull the Module straight out of the loaded modules array in order to do these hacks.

Just because a package is loaded doesn't mean that we have top-level
`using` rights, so we need to pull the Module straight out of the loaded
modules array in order to do these hacks.
@nsajko nsajko added the trimming Issues with trimming functionality or PR's relevant to its performance/functionality label Feb 28, 2025
@topolarity topolarity merged commit 1cead2b into JuliaLang:master Mar 7, 2025
9 checks passed
# Additional method patches depending on whether user code loads certain stdlibs
let loaded = Base.loaded_modules_array()
function find_loaded_module(name)
idx = findfirst((m) -> Symbol(m) === name, loaded)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably use UUID (or name+UUID) here.

oscardssmith pushed a commit that referenced this pull request Mar 8, 2025
@KristofferC KristofferC added the backport 1.12 Change should be backported to release-1.12 label Mar 21, 2025
KristofferC pushed a commit that referenced this pull request Mar 21, 2025
Although a package is loaded, we may not have top-level `using` rights.

Instead, we need to pull the Module straight out of the loaded modules
array in order to do these hacks.

(cherry picked from commit 1cead2b)
KristofferC pushed a commit that referenced this pull request Mar 21, 2025
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trimming Issues with trimming functionality or PR's relevant to its performance/functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants