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

names does not include as-renamed import #42527

Closed
fonsp opened this issue Oct 7, 2021 · 0 comments · Fixed by #42532
Closed

names does not include as-renamed import #42527

fonsp opened this issue Oct 7, 2021 · 0 comments · Fixed by #42532

Comments

@fonsp
Copy link
Member

fonsp commented Oct 7, 2021

hello_world does not show when calling names when using the following import syntax, but the original name (archive_artifact) does:

julia> module A
       import Pkg: Artifacts.archive_artifact as hello_world
       end;

julia> names(A; imported=true, all=true)
6-element Vector{Symbol}:
 Symbol("#eval")
 Symbol("#include")
 :A
 :archive_artifact
 :eval
 :include

This case works as expected:

julia> module B
       import Pkg as pip
       end;

julia> names(B; imported=true, all=true)
6-element Vector{Symbol}:
 Symbol("#eval")
 Symbol("#include")
 :B
 :eval
 :include
 :pip
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 a pull request may close this issue.

1 participant