Skip to content

Custom modules not loaded in my path #1165

@ppasquet

Description

@ppasquet

I have two modules in two separate files:

A.jl

module A

struct Foo
    bar::Integer
end

function create()::Foo
    Foo(1)
end

end

B.jl

module B

using ..A

function test()::Integer
    return -1
end

A.create()
test()

end

In the Julia REPL, I can include("A.jl") and then include("B.jl") and it works.

However, VS Code doesn't add the content of A.jl in the path. For instance, in B.jl I can't jump to the definition of A.create() and nothing happens when I hover it (whereas I can jump to the definition of / hover test(), which is defined in the same file / module).

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