Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Package does not have AnotherPackage in its dependencies

$
0
0

I have a small functioning Julia project.
I needed to add JSONSchema package
so I did:
pkg> add JSONSchema
It added following line to my Project.toml under [deps]:
JSONSchema = "7d188eb4-7ad8-530c-ae41-71a32a6d4692"
My environment is properly activated.
But when I try this:

julia> using MyProject
[ Info: Precompiling MyProject [a7d6e318-225e-4d8e-889c-a5cbc6ddf7fb]
ERROR: LoadError: LoadError: ArgumentError: Package MyProject does not have JSONSchemas in its dependencies:
- If you have MyProject checked out for development and have
  added JSONSchemas as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with MyProject

But resolve doesn’t seem to do anything:

(MyProject) pkg> resolve
No Changes to `.julia\dev\MyProject\Project.toml`
No Changes to `.julia\dev\MyProject\Manifest.toml`

What am I missing, or how could I solve this issue?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles