Open hbsmith opened 2 years ago
It's worth noting that if instead of trying to load the module with using
, I just navigate to the directory and do
julia> include("src/TestMod.jl")
everything works as expected
You might need to use @eval
before the includes so that the methods are read into the top level global scope.
(Originally this was created as an issue in the InteractiveDynamics repo, but the issue might be with requires so I'm reposting here):
I have a MWE where I would expect to get access to the
agents/
functions from InteractiveDynamics, but for some reason they don't get loaded.The main
InteractiveDynamics.jl
src file looks like this:If I
generate
a new package "TestMod", activate the environment, andadd
only "InteractiveDynamics" and "Agents", I get a Project.toml that looks like this:Then if my
TestMod.jl
file is simply:And I run:
I would expect to get access to all the functions within the
src/agents/
files, but we can see that I don't get access to any of them.Is this expected behavior? How can I get access to these functions from inside my "TestMod.jl" module?
Thanks