# Persistent Pkg error

**URL:** <https://discourse.julialang.org/t/persistent-pkg-error/17183>\
**Category:** General Usage\
**Created:** [November 5, 2018, 8:04pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183 "2018-11-05T20:04:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [November 5, 2018, 8:04pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183/1 "2018-11-05T20:04:46Z")

</div>

Hi, I’m having a persistent Pkg error while trying to create a new package. Like in other cases I:

1. Created a new repo [Webview.jl](https://github.com/joa-quim/Webview.jl)
2. `dev https://github.com/joa-quim/Webview.jl`
3. Try to use it

But it annoyingly it insists that the package is not installed when in fact my local copy is exactly equal to the Github repo.

```julia
(v0.7) pkg> dev https://github.com/joa-quim/Webview.jl
   Cloning git-repo `https://github.com/joa-quim/Webview.jl`
  Updating git-repo `https://github.com/joa-quim/Webview.jl`
[ Info: Assigning UUID 46c74a11-416d-571a-8466-59f4bcfc4ddb to Webview
 Resolving package versions...
  Updating `C:\Users\j\.julia\environments\v0.7\Project.toml`
  [46c74a11] + Webview v0.0.0 [`C:\Users\j\.julia\dev\Webview`]
  Updating `C:\Users\j\.julia\environments\v0.7\Manifest.toml`
  [46c74a11] + Webview v0.0.0 [`C:\Users\j\.julia\dev\Webview`]

julia> using Webview
ERROR: ArgumentError: Package Webview [46c74a11-416d-571a-8466-59f4bcfc4ddb] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
 [1] _require(::Base.PkgId) at .\loading.jl:923
 [2] require(::Base.PkgId) at .\loading.jl:852
 [3] macro expansion at .\logging.jl:311 [inlined]
 [4] require(::Module, ::Symbol) at .\loading.jl:834

(v0.7) pkg> instantiate
  Updating registry at `C:\Users\j\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`

julia> using Webview
ERROR: ArgumentError: Package Webview [46c74a11-416d-571a-8466-59f4bcfc4ddb] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

Stacktrace:
 [1] _require(::Base.PkgId) at .\loading.jl:923
 [2] require(::Base.PkgId) at .\loading.jl:852
 [3] macro expansion at .\logging.jl:311 [inlined]
 [4] require(::Module, ::Symbol) at .\loading.jl:834

(v0.7) pkg> st
    Status `C:\Users\j\.julia\environments\v0.7\Project.toml`
  [c52e3926] Atom v0.7.10
  [6e4b80f9] BenchmarkTools v0.4.1
  [9e28174c] BinDeps v0.8.10
  [40e3b903] Clang v0.7.0
  [e30172f5] Documenter v0.20.0
  [7a1cc6ca] FFTW v0.2.4
  [add2ef01] GDAL v0.2.0
  [5752ebe1] GMT v0.5.0+ [`C:\j\.julia\v0.7\GMT`]
  [7073ff75] IJulia v1.13.0
  [6218d12a] ImageMagick v0.7.1
  [e5e0dc1b] Juno v0.5.3
  [b033e98c] Laszip v0.0.0 [`C:\Users\j\.julia\dev\Laszip`]
  [50d2b5c4] Lazy v0.13.2
  [c96a28f8] Libui v0.0.0 [`C:\Users\j\.julia\dev\Libui`]
  [ee78f7c6] Makie v0.9.0
  [91a5bcdd] Plots v0.19.3
  [ee283ea6] Rebugger v0.1.4
  [295af30f] Revise v0.7.12
? [46c74a11] Webview v0.0.0 [`C:\Users\j\.julia\dev\Webview`]
  [d6f4376e] Markdown
+ Warning: Some packages (indicated with a red arrow) are not downloaded, use `instantiate` to instantiate the current environment

```

No matter how many times I do what it requests (running instantiate) the error does not go away.

Can’t understand what is the difference with my other (local) packages that work.

---

<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:** [November 5, 2018, 8:06pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183/2 "2018-11-05T20:06:21Z")

</div>

This file [https://github.com/joa-quim/Webview.jl/blob/master/src/webview.jl](https://github.com/joa-quim/Webview.jl/blob/master/src/webview.jl) has an incorrect name (should be `Webview.jl`).

---

<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:** [November 5, 2018, 8:08pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183/3 "2018-11-05T20:08:13Z")

</div>

Also [Check for case error in main-file when loading a package and give a good error message · Issue #29938 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/29938).

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [November 5, 2018, 8:59pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183/4 "2018-11-05T20:59:13Z")

</div>

Thanks. But actually I only made it work by first cloning the repo and then doing  
`dev C:\\Users\\j\\.julia\\dev\\Webview`

Doing `dev URL` kept giving me the same error.

---

<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:** [November 5, 2018, 9:02pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183/5 "2018-11-05T21:02:58Z")

</div>

You probably had a stale clone ([https://github.com/JuliaLang/Pkg.jl/issues/465](https://github.com/JuliaLang/Pkg.jl/issues/465)) so it is likely that removing `~/.julia/clones` and then `dev URL` would work.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [November 5, 2018, 9:05pm UTC](https://discourse.julialang.org/t/persistent-pkg-error/17183/6 "2018-11-05T21:05:10Z")

</div>

Maybe, but had cleaned that dir before (did lots of trials before posting)
