Hi,
When I try to use my custom package with Revise.jl, as follows, I am getting warning.
using Revise
using MyPkg
The warning is as follows:
┌ 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:
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
Is C:\Users\zac\.julia\packages\Plots\qZHsp\src\Plots.jl\
an existing directory? Your package depot may be corrupted.
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.
@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?
@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 ?
Instead of debugging how and what exactly is corrupted, I would just delete both directories in
C:\Users\zac\.julia\packages\Plots
and the manifest (the global one), start a new session, and do a pkg> resolve
.
@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
It’s might be solvable, but without a runnable example I don’t know what to say.
@jaakkor2: Yes, I am using MAT in my package. Will it be the problem?
Now that there is a simple reproducer, hopefully Tim is able to fix the warning
1 Like
@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 .
] activate .
add Plots
add MAT
activate
resolve
The file named TestPkg.jl
inside ~.julia/dev/TestPkg/src
is written as below:
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
using Revise
using TestPkg
and I got the warning as below:
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.
1 Like