I have a local module that i wrote in my machine, I am using julia 1.7
and when I want to use this module I write something like this:
@everywhere include("Foo.jl")
using .Foo
this is the Error that I get:
UndefVarError: Foo not defined
Stacktrace:
[1] top-level scope
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Distributed/src/macros.jl:200
[2] eval
@ ./boot.jl:373 [inlined]
[3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base ./loading.jl:1196
Now I don't understand why it is not defined even tho it is written in the local machine in the same directory.
~/Downloads
. Create some new Julia package andpkg"activate /folder/to/new/package"
. You really strongly need to perfectly follow this text: pkgdocs.julialang.org/v1/creating-packages Once you have it if something still does not work for you let me know. – Mimimimic