Skip to content

Commit

Permalink
use invokelatest to call REPL.active_module (#46866)
Browse files Browse the repository at this point in the history
REPL_MODULE_REF might be populated during execution, in which case we won't
be able to see REPL methods yet.
  • Loading branch information
JeffBezanson authored Sep 23, 2022
1 parent ea9914e commit 24cb92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ end
function active_module()
isassigned(REPL_MODULE_REF) || return Main
REPL = REPL_MODULE_REF[]
return REPL.active_module()::Module
return invokelatest(REPL.active_module)::Module
end

# Check if a particular symbol is exported from a standard library module
Expand Down

2 comments on commit 24cb92d

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

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

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

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

Your package evaluation job has completed - possible new issues were detected. A full report can be found here.

Please sign in to comment.