# KeyError: key "repo-rev" not found (v0.7)

**URL:** <https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777>\
**Category:** General Usage\
**Created:** [June 19, 2018, 8:10am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777 "2018-06-19T08:10:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [June 19, 2018, 8:10am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/1 "2018-06-19T08:10:22Z")

</div>

Trying to run `pkg> status` and I’m getting a very unclear error message. I assume something is not right with one of the dependencies, I have no idea which, what to do next or where the problem is.

```julia
(Genie) pkg> status
Project Genie v0.1.0
ERROR: KeyError: key "repo-rev" not found
Stacktrace:
 [1] name_ver_info(::Dict{String,Any}) at ./dict.jl:485
 [2] manifest_diff(::Pkg.Types.Context, ::Dict{String,Any}, ::Dict{String,Any}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Display.jl:218
 [3] status(::Pkg.Types.Context, ::Pkg.Types.PackageMode, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Display.jl:55
 [4] status at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Display.jl:33 [inlined]
 [5] do_status!(::Pkg.Types.Context, ::Array{Union{Pkg.Types.VersionRange, String, Pkg.REPLMode.Command, Pkg.REPLMode.Option, Pkg.REPLMode.Rev},1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:688
 [6] #invokelatest#1 at ./essentials.jl:670 [inlined]
 [7] invokelatest at ./essentials.jl:669 [inlined]
 [8] do_cmd!(::Array{Union{Pkg.Types.VersionRange, String, Pkg.REPLMode.Command, Pkg.REPLMode.Option, Pkg.REPLMode.Rev},1}, ::REPL.LineEditREPL) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:275
 [9] #do_cmd#8(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:235
 [10] do_cmd at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:232 [inlined]
 [11] (::getfield(Pkg.REPLMode, Symbol("##27#30")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:950
 [12] top-level scope

```

---

<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:** [June 19, 2018, 9:03am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/2 "2018-06-19T09:03:02Z")

</div>

Just open issues like this on the Pkg repo instead. No need to spam “usage” with eventual Pkg bugs 🙂

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [June 19, 2018, 9:11am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/3 "2018-06-19T09:11:41Z")

</div>

Sure 🙂

---

<div class="post-metadata">

**Author:** ![cdsousa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cdsousa/32/215553_2.png) [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Post date:** [June 19, 2018, 9:22am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/4 "2018-06-19T09:22:40Z")

</div>

When I encounter some problem and I’m unsure whether it’s my fault or it is a Julia or some package bug, I usually come here asking for help to triage the problem, since it seems to me that the Github issues is the place not to be spammed 🙂  
Shouln’t it be like that?

---

<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:** [June 19, 2018, 9:30am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/5 "2018-06-19T09:30:00Z")

</div>

Well, Pkg is quite new and it is likely to have some bugs. Also since it is new, not many users here will have answers like with normal julia questions. An error message like this is unacceptable no matter what so it is good to open an issue here.

---

<div class="post-metadata">

**Author:** ![cdsousa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cdsousa/32/215553_2.png) [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Post date:** [June 19, 2018, 9:57am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/6 "2018-06-19T09:57:59Z")

</div>

OK, fair enough.

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [August 12, 2018, 12:41pm UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/7 "2018-08-12T12:41:47Z")

</div>

@kristoffer.carlsson Maybe you can throw me a rope here, I still don’t know what to do. I just removed REQUIRE, Project.toml and Manifest.toml just thinking that I can start over with a clean state, add all packages, etc.

And then,

Step 1 ✅:

```julia
(Genie) pkg> generate Genie
Generating project Genie:
    Genie/Project.toml
    Genie/src/Genie.jl

```

Step 2 💥:

```julia
(Genie) pkg> st
Project Genie v0.1.0
ERROR: KeyError: key "repo-rev" not found
Stacktrace:
 [1] name_ver_info(::Dict{String,Any}) at ./dict.jl:478
 [2] manifest_diff(::Pkg.Types.Context, ::Dict{String,Any}, ::Dict{String,Any}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Display.jl:226
 [3] status(::Pkg.Types.Context, ::Pkg.Types.PackageMode, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Display.jl:57
 [4] status at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Display.jl:33 [inlined]
 [5] do_status!(::Pkg.Types.Context, ::Array{Union{VersionRange, String, Command, Option, Rev},1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:748
 [6] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [7] invokelatest at ./essentials.jl:690 [inlined]
 [8] do_cmd!(::Array{Union{VersionRange, String, Command, Option, Rev},1}, ::REPL.LineEditREPL) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:346
 [9] #do_cmd#10(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:281
 [10] do_cmd at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:278 [inlined]
 [11] (::getfield(Pkg.REPLMode, Symbol("##26#29")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/Pkg/src/REPLMode.jl:1067
 [12] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [13] invokelatest at ./essentials.jl:690 [inlined]
 [14] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/LineEdit.jl:2261
 [15] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:1029
 [16] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v0.7/REPL/src/REPL.jl:191
 [17] (::getfield(Base, Symbol("##831#833")){Bool,Bool,Bool,Bool})(::Module) at ./logging.jl:311
 [18] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [19] invokelatest at ./essentials.jl:690 [inlined]
 [20] macro expansion at ./logging.jl:308 [inlined]
 [21] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:340
 [22] exec_options(::Base.JLOptions) at ./client.jl:252
 [23] _start() at ./client.jl:432

```

No Manifest file was created. Project.toml looks like this:

```julia
authors = ["Adrian Salceanu <e@essenciary.com>"]
name = "Genie"
uuid = "fa5f4624-9e2b-11e8-31ab-154a7c554cc7"
version = "0.1.0"

[deps]

```

julia\> versioninfo()  
Julia Version 0.7.0-rc2.0  
Commit 78540cba4c (2018-08-02 19:14 UTC)  
Platform Info:  
OS: macOS (x86\_64-apple-darwin14.5.0)  
CPU: Intel(R) Core™ i7-6820HQ CPU @ 2.70GHz  
WORD\_SIZE: 64  
LIBM: libopenlibm  
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

```julia

```

---

<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:** [August 12, 2018, 12:52pm UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/8 "2018-08-12T12:52:26Z")

</div>

```julia
(Genie) pkg> generate Genie

```

If you where in a clean slate the prompt would not say `Genie`. You can look at `Base.active_project()` to see which is the current project you are using which seems to have a hand edited invalid Manifest file.

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [August 12, 2018, 12:53pm UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/9 "2018-08-12T12:53:45Z")

</div>

It seems that the problem was the one we discussed a while ago: `dev` did not bring the latest codebase from Github. The old Project, Manifest and REQUIRE were still present, though they were not on Github master anymore. I had to do a manual `git pull` into `dev/Genie` and then they were removed.

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [August 12, 2018, 12:58pm UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/10 "2018-08-12T12:58:03Z")

</div>

@kristoffer.carlsson This is what it looks now

- Genie is setup in `dev`
- `status` mentions Project but the file does not exist - is that OK?  
 ![screen](https://global.discourse-cdn.com/julialang/original/3X/c/2/c2979f52c3f4e82ebd31cae5f02766df15a5cf5f.png)

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [August 12, 2018, 1:00pm UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/11 "2018-08-12T13:00:08Z")

</div>

`activate .` seems to make it show `(Genie)` regardless of the existence of a Project file?

---

<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:** [August 12, 2018, 1:03pm UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/12 "2018-08-12T13:03:30Z")

</div>

If you activate `.` it will set the current directory as the active project and create a project + manifest the first time you add a package.

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [August 18, 2018, 10:26am UTC](https://discourse.julialang.org/t/keyerror-key-repo-rev-not-found-v0-7/11777/13 "2018-08-18T10:26:36Z")

</div>

Thanks @kristoffer.carlsson

I can confirm that it has created the files – but it didn’t add required info.  
I now get:

```julia
(v0.7) pkg> resolve
 Resolving package versions...
ERROR: expected a `name` entry in project file at /Users/adrian/.julia/dev/Genie/Project.toml

```

I presume I should now manually edit the file? Cheers

* * *

P.S. what do you think of automatically activating the local environment if a `Project` file is present?
