Here is an example: I create a directory ~/Julia/ExamplePackage
with a Project.toml
[deps]
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
and a file src/ExamplePackage.jl
with contents
module ExamplePackage
using MacroTools
end
My LOAD_PATH
contains ~/Julia
. Then I start Julia in my home directory and say
julia> using ExamplePackage
[ Info: Precompiling ExamplePackage [471cb73a-b2fc-536a-893f-35a09b8f328a]
ERROR: LoadError: ArgumentError: Package MacroTools [1914dd2f-81c6-5fcd-8719-6d5c9610ff09] is required but does not seem to be installed:
- Run `Pkg.instantiate()` to install all recorded dependencies.
Saying instantiate
in this situation (or in the package directory with julia --project=.
) doesn’t help, neither does adding a UUID to the Project.toml
. If I replace MacroTools
with a package like Test
that doesn’t need to be downloaded, then it works.
What am I missing?