You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#23579 changed how modules are loaded. I thought it best to file #23579 (comment) as an issue. The reason turned out to be that #23579 changed behavior of when the module becomes "visible": it used to be that you could refer to the module from outside code that got called via __init__ or one of the registered Base.package_callbacks. Now you have to defer such references until after __init__ finishes.
Code example at timholy/Revise.jl#48 (only the first commit). This new behavior might be intended, in which case please close this issue.
The text was updated successfully, but these errors were encountered:
The change is intentional. In the new way of doing things, top-level modules don't have Main as their parent module. Since Main is no longer special, assigning X to its module after using X in Main is the last step (the same as in all other modules).
Looking up a top-level module can be done with Base.root_module(name) and replacing one can be done with Base.register_root_module(name, mod).
#23579 changed how modules are loaded. I thought it best to file #23579 (comment) as an issue. The reason turned out to be that #23579 changed behavior of when the module becomes "visible": it used to be that you could refer to the module from outside code that got called via
__init__
or one of the registeredBase.package_callbacks
. Now you have to defer such references until after__init__
finishes.Code example at timholy/Revise.jl#48 (only the first commit). This new behavior might be intended, in which case please close this issue.
The text was updated successfully, but these errors were encountered: