Skip to content

names does not include as-renamed import #42527

Closed
@fonsp

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      `names` does not include `as`-renamed import · Issue #42527 · JuliaLang/julia