Pkg update fails with "no method matching getindix(::Nothing, ::String)"


#1
(v1.0) pkg> up
  Updating registry at `C:\Users\cbinz\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaPlots/StatsMakie.jl.git`
  Updating git-repo `https://github.com/JuliaPlots/AbstractPlotting.jl.git`
  Updating git-repo `https://github.com/JuliaPlots/GLMakie.jl.git`
 Resolving package versions...
 Installed SoftGlobalScope ─ v1.0.8
  Updating `C:\Users\cbinz\.julia\environments\v1.0\Project.toml`
 [no changes]
  Updating `C:\Users\cbinz\.julia\environments\v1.0\Manifest.toml`
  [b85f4697] ↑ SoftGlobalScope v1.0.7 ⇒ v1.0.8
ERROR: MethodError: no method matching getindex(::Nothing, ::String)
Stacktrace:
 [1] #build_versions#47(::Bool, ::Function, ::Pkg.Types.Context, ::Array{Base.UUID,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1045
 [2] build_versions at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1034 [inlined]
 [3] up(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1247
 [4] #up#29(::Pkg.Types.UpgradeLevel, ::Pkg.Types.PackageMode, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:198

 [5] up at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:171 [inlined]
 [6] do_up!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Symbol,Any}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\REPLMode.jl:686
 [7] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:697
 [8] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:696
 [9] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\REPLMode.jl:603
 [10] #do_cmd#33(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\REPLMode.jl:577
 [11] do_cmd at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\REPLMode.jl:573 [inlined]
 [12] (::getfield(Pkg.REPLMode, Symbol("##50#53")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\REPLMode.jl:923
 [13] #invokelatest#1 at .\essentials.jl:697 [inlined]
 [14] invokelatest at .\essentials.jl:696 [inlined]
 [15] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\LineEdit.jl:2273
 [16] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\REPL.jl:1034
 [17] run_repl(::REPL.AbstractREPL, ::Any) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\REPL.jl:191
 [18] (::getfield(Base, Symbol("##718#720")){Bool,Bool,Bool,Bool})(::Module) at .\client.jl:355
 [19] #invokelatest#1 at .\essentials.jl:697 [inlined]
 [20] invokelatest at .\essentials.jl:696 [inlined]
 [21] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at .\client.jl:339
 [22] exec_options(::Base.JLOptions) at .\client.jl:277
 [23] _start() at .\client.jl:425

The only advice I could find was to nuke everything and reinstall, but is there some easier way of fixing this?


#2

Usually this happens when you have a corrupted Manifest.toml file. It would be helpful if you could post your Project.toml + Manifest.toml files as a gist or something.


#3

Manifest.toml and Project.toml


#4

I’ll add that I only encountered this upon my first update after installing julia 1.0.3 (from 1.0.2).


#5

This is most likely irrelevant. The problem is that StatsMakie has changed its uuid and you added it while it had its old uuid. You can fix this by

pkg> rm StatsMakie
pkg> add StatsMakie

#6

Awesome, that did it. Thanks.