# How to solve warning while using custom package with Revise?

**URL:** https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743
**Category:** General Usage
**Tags:** revise
**Created:** [February 17, 2020, 3:56am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743 "2020-02-17T03:56:16Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)
#### Post date: [February 17, 2020, 3:56am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/1 "2020-02-17T03:56:16Z")

</div>

Hi,  
When I try to use my custom package with Revise.jl, as follows, I am getting warning.

```julia
using Revise
using MyPkg

```

The warning is as follows:

```julia
┌ Warning: C:\Users\zac\.julia\packages\Plots\qZHsp\src\Plots.jl\ is not an existing directory, Revise is not watching
└ @ Revise C:\Users\zac\.julia\packages\Revise\S7mrl\src\Revise.jl:489

```

I started getting this warning after upgrading Julia to version 1.3. Moreover, I reinstalled Plots package. The status of my package is as follows:

```julia
Project MyPkg v0.1.0
    Status `C:\Users\z5168736\.julia\dev\MyPkg\Project.toml`
  [31c24e10] Distributions v0.22.4
  [23992714] MAT v0.5.0
  [429524aa] Optim v0.20.1
  [91a5bcdd] Plots v0.28.4
  [a759f4b9] TimerOutputs v0.5.3
  [fce5fe82] Turing v0.8.3
  [8ba89e20] Distributed
  [b77e0a4c] InteractiveUtils
  [37e2e46d] LinearAlgebra
  [9a3f8284] Random
  [2f01184e] SparseArrays
  [8dfed614] Test

```

How can I solve this issue?

Thanks in Advance !  
Manu

---

<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: [February 17, 2020, 7:17am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/2 "2020-02-17T07:17:35Z")

</div>

Is `C:\Users\zac\.julia\packages\Plots\qZHsp\src\Plots.jl\` an existing directory? Your package depot may be corrupted.

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [February 17, 2020, 8:10am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/3 "2020-02-17T08:10:35Z")

</div>

My guess is you just need to `pkg> up`. Most likely you’re using a Manifest.toml file that is appropriate for one Julia version but not 1.3.

---

<div class="post-metadata">

### Author: ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)
#### Post date: [February 18, 2020, 12:37am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/4 "2020-02-18T00:37:17Z")

</div>

@Tamas_Papp : There is two folders inside `C:\Users\zac\.julia\packages\Plots` folder, `BmY79` and `qZHsp`. How can I check package depot is corrupted or not?

---

<div class="post-metadata">

### Author: ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)
#### Post date: [February 18, 2020, 12:40am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/5 "2020-02-18T00:40:23Z")

</div>

@tim.holy: I removed Revise package and added it again. Then I updated the packages using `]up` . But I am getting the same warning.  
In your reply, you have mentioned that `Manifest.toml` may not be appropriate. is it belongs to my custom package or it’s for the julia 1.3 ?

---

<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: [February 18, 2020, 9:29am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/6 "2020-02-18T09:29:18Z")

</div>

Instead of debugging how and what exactly is corrupted, I would just delete both directories in

```julia
C:\Users\zac\.julia\packages\Plots

```

and the manifest (the global one), start a new session, and do a `pkg> resolve`.

---

<div class="post-metadata">

### Author: ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)
#### Post date: [February 19, 2020, 10:23am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/7 "2020-02-19T10:23:42Z")

</div>

@Tamas_Papp: I have done this too, But still the same issue. May be I need to reprogram my package again. Thanks for your reply.

Thanking You,  
Manu

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [February 19, 2020, 9:05pm UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/8 "2020-02-19T21:05:06Z")

</div>

It’s might be solvable, but without a runnable example I don’t know what to say.

---

<div class="post-metadata">

### Author: ![jaakkor2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaakkor2/32/2540_2.png) [@jaakkor2](https://discourse.julialang.org/u/jaakkor2)
#### Post date: [February 20, 2020, 1:38am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/9 "2020-02-20T01:38:45Z")

</div>

Are you using MAT.jl?

See  
[https://github.com/timholy/Revise.jl/issues/431](https://github.com/timholy/Revise.jl/issues/431)

---

<div class="post-metadata">

### Author: ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)
#### Post date: [February 20, 2020, 1:44am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/10 "2020-02-20T01:44:29Z")

</div>

@jaakkor2: Yes, I am using MAT in my package. Will it be the problem?

---

<div class="post-metadata">

### Author: ![jaakkor2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaakkor2/32/2540_2.png) [@jaakkor2](https://discourse.julialang.org/u/jaakkor2)
#### Post date: [February 20, 2020, 1:56am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/11 "2020-02-20T01:56:42Z")

</div>

Now that there is a simple reproducer, hopefully Tim is able to fix the warning 😀

---

<div class="post-metadata">

### Author: ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)
#### Post date: [February 20, 2020, 2:23am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743/12 "2020-02-20T02:23:29Z")

</div>

@tim.holy: Now, I could make a running example by getting insight from @jaakkor2’s reply.

I simply created a package named TestPkg.

I added two dependencies for this package .

```julia
] activate .
add Plots
add MAT
activate
resolve

```

The file named `TestPkg.jl` inside `~.julia/dev/TestPkg/src` is written as below:

```julia
module TestPkg

using Plots, MAT

greet() = print("Hello World!")

function write_mat_file(file_name)
    b = rand(5,5)
    file = MAT.matopen(file_name, "w")
    write(file, "a", b)
    close(file)
end
function plot_img(mat_size)
    test_img = rand(mat_size,mat_size)
    heatmap(test_img)
end
end # module

```

After that, I used that package by using

```julia
using Revise
using TestPkg

```

and I got the warning as below:

```julia
Warning: C:\Users\z5168736\.julia\packages\Plots\qZHsp\src\Plots.jl\ is not an existing directory, Revise is not watching
└ @ Revise C:\Users\z5168736\.julia\packages\Revise\ZOWOa\src\Revise.jl:489

```

This warning come only when I use Plots and MAT packages together.
