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 reports an exported but nonexistent/undefined name as defined #51584

Closed
nsajko opened this issue Oct 4, 2023 · 2 comments
Closed

names reports an exported but nonexistent/undefined name as defined #51584

nsajko opened this issue Oct 4, 2023 · 2 comments
Labels
domain:docs This change adds or pertains to documentation

Comments

@nsajko
Copy link
Contributor

nsajko commented Oct 4, 2023

julia> module M
         export n
       end
Main.M

julia> names(M)
2-element Vector{Symbol}:
 :M
 :n

julia> M.n
ERROR: UndefVarError: `n` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ REPL[2]:1

julia> versioninfo()
Julia Version 1.11.0-DEV.595
Commit b790cf8f0c5 (2023-10-03 20:35 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
  Threads: 1 on 8 virtual cores
@vtjnash
Copy link
Sponsor Member

vtjnash commented Oct 4, 2023

Being exported and being defined are 2 different, unrelated aspects

@vtjnash vtjnash closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
nsajko added a commit to nsajko/julia that referenced this issue Oct 4, 2023
nsajko added a commit to nsajko/julia that referenced this issue Oct 4, 2023
nsajko added a commit to nsajko/julia that referenced this issue Oct 6, 2023
nsajko added a commit to nsajko/julia that referenced this issue Jan 14, 2024
nsajko added a commit to nsajko/julia that referenced this issue Jan 14, 2024
@LilithHafner LilithHafner added the domain:docs This change adds or pertains to documentation label Jan 20, 2024
@LilithHafner
Copy link
Member

Explicit documentation added in #51593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

3 participants