# Warning: Package A does not have B in its dependencies

**URL:** <https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424>\
**Category:** General Usage\
**Created:** [October 16, 2018, 8:20pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424 "2018-10-16T20:20:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtackm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jtackm/32/4784_2.png) [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Post date:** [October 16, 2018, 8:20pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/1 "2018-10-16T20:20:36Z")

</div>

I’m getting the following warning when precompiling a [package](https://github.com/meringlab/FlashWeave.jl) I’m working on:

```julia
julia> using FlashWeave
[Info: Recompiling stale cache file <some_path>/.julia/compiled/v1.0/FlashWeave/PSwZf.ji for FlashWeave [2be3f83a-7913-5748-9f20-7d448995b934]
┌ Warning: Package FlashWeave does not have SharedArrays in its dependencies:
│ - If you have FlashWeave checked out for development and have
│ added SharedArrays 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 FlashWeave
└ Loading SharedArrays into FlashWeave from project dependency, future warnings for FlashWeave are suppressed.

```

I’m confused because as far as I understand SharedArrays is a stdlib package and thus does not need to be declared in REQUIRE. Other stdlib packages (Distributed, Statistics etc.) do not result in this warning. Strangely, this currently does not show up in Travis or Appveyor (it did in some earlier version, though). Any ideas?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [October 16, 2018, 9:54pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/2 "2018-10-16T21:54:03Z")

</div>

The detection for stdlibs are not working when you separate a `using` line to multiple ones. You can replace [FlashWeave.jl/FlashWeave.jl at 2e76b4217c3087995533b7e41fe56778d91b723c · meringlab/FlashWeave.jl · GitHub](https://github.com/meringlab/FlashWeave.jl/blob/2e76b4217c3087995533b7e41fe56778d91b723c/src/FlashWeave.jl#L4-L5) that with

```julia
using Distributed, SparseArrays, Statistics, DelimitedFiles, Random
using SharedArrays, LinearAlgebra, Dates

```

and It should detect `SharedArrays`, `LinearAlgebra` and `Dates`.

---

<div class="post-metadata">

**Author:** ![jtackm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jtackm/32/4784_2.png) [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Post date:** [October 16, 2018, 10:07pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/3 "2018-10-16T22:07:16Z")

</div>

Thanks a lot, that solved it! Is this currently on the agenda for future improvements (quick issue search in the Pkg repo didn’t show anything)? Seems like a subtle thing to get wrong.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [October 16, 2018, 10:27pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/4 "2018-10-16T22:27:51Z")

</div>

The long term solution is to switch away from `REQUIRE` files to `Project.toml` files in which stdlib dependencies must be given explicitly.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 17, 2018, 7:16am UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/5 "2018-10-17T07:16:56Z")

</div>

Would love to do that, but it breaks registration with attobot.

[https://github.com/attobot/attobot/issues/50](https://github.com/attobot/attobot/issues/50)

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [October 17, 2018, 1:15pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/6 "2018-10-17T13:15:51Z")

</div>

Yes, attobot needs to be replaced with a new registry version of attobot. There’s a lot of package development infrastructure that needs to be replaced in order to switch over; it’s in progress. If you want to follow and/or help, see the #pkg-dev channel on Slack; we have a weekly call on Tuesdays at 2 pm US Eastern.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 17, 2018, 1:41pm UTC](https://discourse.julialang.org/t/warning-package-a-does-not-have-b-in-its-dependencies/16424/7 "2018-10-17T13:41:57Z")

</div>

Thanks, I will follow, then see how I can help.
