# Pkg: \`CodeTracking\` not found

**URL:** <https://discourse.julialang.org/t/pkg-codetracking-not-found/23739>\
**Category:** General Usage\
**Created:** [May 1, 2019, 4:33pm UTC](https://discourse.julialang.org/t/pkg-codetracking-not-found/23739 "2019-05-01T16:33:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [May 1, 2019, 4:33pm UTC](https://discourse.julialang.org/t/pkg-codetracking-not-found/23739/1 "2019-05-01T16:33:22Z")

</div>

I inadvertently made some manual changes to my `Manifest.jl` and now every time I use `]status` I get the following error

```julia
ERROR: KeyError: key "CodeTracking" not found
Stacktrace:
 [1] getindex(::Dict{String,Any}, ::String) at ./dict.jl:478
 [2] Dict{Base.UUID,Pkg.Types.PackageEntry}(::Dict{String,Any}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:519
 [3] #read_manifest#47(::Nothing, ::Function, ::Base.GenericIOBuffer{Array{UInt8,1}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:571
 [4] read_manifest at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:559 [inlined]
 [5] (::getfield(Pkg.Display, Symbol("##4#15")){Pkg.Types.EnvCache})(::LibGit2.GitRepo) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Display.jl:73
 [6] with(::getfield(Pkg.Display, Symbol("##4#15")){Pkg.Types.EnvCache}, ::LibGit2.GitRepo) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/LibGit2/src/types.jl:1125
 [7] #status#2(::Pkg.Types.PackageMode, ::Bool, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Display.jl:68
 [8] #status at ./none:0 [inlined]
 [9] #status#70(::Pkg.Types.PackageMode, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:484
 [10] (::getfield(Pkg.API, Symbol("#kw##status")))(::NamedTuple{(:mode,),Tuple{Pkg.Types.PackageMode}}, ::typeof(Pkg.API.status), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at ./none:0
 [11] do_status!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Symbol,Any}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:603
 [12] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:742
 [13] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:741
 [14] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:561
 [15] #do_cmd#30(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:536
 [16] do_cmd at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:532 [inlined]
 [17] (::getfield(Pkg.REPLMode, Symbol("##48#51")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:967
 [18] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [19] invokelatest at ./essentials.jl:741 [inlined]
 [20] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:2273
 [21] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:1035
 [22] run_repl(::REPL.AbstractREPL, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:192
 [23] (::getfield(Base, Symbol("##734#736")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:362
 [24] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [25] invokelatest at ./essentials.jl:741 [inlined]
 [26] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346
 [27] exec_options(::Base.JLOptions) at ./client.jl:284
 [28] _start() at ./client.jl:436

```

In an attempt to rectify this, I just completely deleted my manifest and started anew, yet still the error persists. I removed all packages that had any dependency on `CodeTracking`, yet still it persists. Finally, I deleted `.julia/registries`, yet still it persists.

I even deleted all of `.julia`, still no luck.

This problem is mind blowing. I’ve deleted _everything_, `.julia`, all the entries from my Project.toml… I still get the error in this project, always.

Any ideas?

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [May 1, 2019, 4:57pm UTC](https://discourse.julialang.org/t/pkg-codetracking-not-found/23739/2 "2019-05-01T16:57:47Z")

</div>

Wow, that was an adventure.

Apparnetly, `Pkg` somehow looks at the `Manifest` in the `git` `HEAD`. Mine was screwed up, so it was getting an error. A simple solution is to commit a non-screwed-up manifest.

Lesson: do _NOT_ manually manipulate `Manifest.toml` under _any_ circumstances! If there is a git diff on it, ignore it.

---

<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:** [May 1, 2019, 5:31pm UTC](https://discourse.julialang.org/t/pkg-codetracking-not-found/23739/3 "2019-05-01T17:31:32Z")

</div>

> [@ExpandingMan](#):
>
> Apparnetly, `Pkg` somehow looks at the `Manifest` in the `git` `HEAD` .

When you are in a git repository, `Pkg.status` shows the diff since last commit, so thats why. Of course it shouldn’t fail like this though. If this still happens on Julia master it would be good if you can file an issue on the Pkg repo.

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [May 1, 2019, 5:39pm UTC](https://discourse.julialang.org/t/pkg-codetracking-not-found/23739/4 "2019-05-01T17:39:18Z")

</div>

Posted [an issue](https://github.com/JuliaLang/Pkg.jl/issues/1180). Thanks.
