I have a local project, say MyProject
.
It has a docs
directory with its own Project.toml
file, which contains
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
MyProject = "<UUID>"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
I cd
to the MyProject/docs
folder, Pkg.activate
it, and then upon Pkg.instantiate
ing it, I get the error
Updating registry at `C:\Users\<USER>\.julia\registries\General.toml`
ERROR: expected package `MyPackage [<UUID>]` to be registered
I’ve gotten it to work on rare occasion, and afterwards it breaks itself.
The Documenter.jl
documentation tells you to run locally with julia make.jl
from the docs
folder, but this doesn’t utilise the docs/Project.toml
that other registered packages I’ve seen online use. I’ve had to add the dependent packages in the Julia 1.9 environment instead of the MyProject/docs
environment. I’m quite confused.
Notes:
(MyProject) pkg> test
runs successfully.docs/make.jl
has the neededpush!(LOAD_PATH, "../src/")
.- The
julia make.jl
in Powershell (yes I’m using Windows) doesn’t seem to load myPlotsExt.jl
package extension.