Modules and files

This should work — eg consider this MWE:

julia> push!(LOAD_PATH, pwd());

julia> using Grid
[ Info: Precompiling Grid [top-level]

julia> mpmGrid()
mpmGrid()

shell> cat Grid.jl
module Grid
export mpmGrid
struct mpmGrid end
end

I am wondering if this is a workflow problem: did you save Grid.jl before loading (if you worked on it), if or whether you are using Revise.jl.

1 Like