LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Missing references with parent modules

Open ghost opened this issue 2 years ago • 0 comments

If I have:

test.jl
├─ test2.jl
├─ test3.jl

Where test.jl includes module defined in test2.jl:

# test.jl
module Mod

include("test2.jl")
include("test3.jl")

end
# test2.jl
module A

const hello = nothing
export hello

end

Then in test3.jl I get missing references if I try to mport module defined in test2.jl

# test3.jl
using .A # missing reference
module B
using ..A # missing reference
end

ghost avatar Dec 22 '22 18:12 ghost