# Warning in package dependency that I do not understand

**URL:** <https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110>\
**Category:** General Usage\
**Created:** [May 25, 2020, 7:44am UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110 "2020-05-25T07:44:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 25, 2020, 7:44am UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/1 "2020-05-25T07:44:01Z")

</div>

I am developing a package (`Bblt`) and at a certain point I added (or at least, I thought to have added) a dependency to `ProgressMeter`.  
I did that by activating the package environment and adding `ProgressMeter`.

This action added the following line to `~/.julia/dev/Bmlt/Project.toml`:

```julia
[deps]
...
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
...

```

But now I have the following warning, claiming that (in the first line) the package `Bmlt` doesn’t have ProgressMeter as a dependency, but (last line) it is loading it from the project dependency.  
I am a bit lost with that warning, and ran unsuccessfully the suggested solution (`Pkg.resolve()`)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/c/cc1f5db10eadf0db5432606cbe451354b0528bc3.png)

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 25, 2020, 7:47am UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/2 "2020-05-25T07:47:18Z")

</div>

I get rid of the warning by adding ProgressMeter to the main Julia environment, but still it is not clear to me if other people when they will install Bmlt will also install ProgressMeter or they will get the same warning…

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [May 25, 2020, 8:11am UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/3 "2020-05-25T08:11:05Z")

</div>

Did you try the `Pkg.resolve()` step that the warning told you?

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 25, 2020, 9:11am UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/4 "2020-05-25T09:11:44Z")

</div>

Yes I did it but it didn’t work, in the sense that on subsequent Julia sessions I remained with the warning. I can’t replicate it any more as I installed (`] add ProgressMeter`) so the warning went away.

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 25, 2020, 3:09pm UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/5 "2020-05-25T15:09:50Z")

</div>

Similar now for Revise…

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/f/1f3b4667bfbc351cab754f4c039ae8cbccf12614.png)

But in this case I obviously didn’t add `Revise.jl` as a dependency, and it is not in Bmlt’s Project.toml:

```julia
name = "Bmlt"
uuid = "024491cd-cc6b-443e-8034-08ea7eb7db2b"
authors = ["Antonello Lobianco <antonello@lobianco.org>"]
version = "0.1.0"

[deps]
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
julia = ">=1.3.1"

```

So I don’t really know where this message is coming from…

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [May 25, 2020, 3:11pm UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/6 "2020-05-25T15:11:49Z")

</div>

Are you loading Revise inside Bmlt?

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [May 25, 2020, 3:15pm UTC](https://discourse.julialang.org/t/warning-in-package-dependency-that-i-do-not-understand/40110/7 "2020-05-25T15:15:26Z")

</div>

Thanks, I am very sorry, I pasted it on the code by error.

Thank you very much.
