JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
622 stars 263 forks source link

`]dev .` gives error `ERROR: type Nothing has no field name` #1240

Closed DilumAluthge closed 5 years ago

DilumAluthge commented 5 years ago

Should ]dev . work? When I try it, I receive the error ERROR: type Nothing has no field name.

Here is an MWE:

  1. git clone https://github.com/bcbi/PredictMDExtra.jl
  2. cd PredictMDExtra.jl
  3. julia
  4. ]dev .

Step 4 gives me the following error:

(v1.1) pkg> dev .
   Cloning default registries into `~/.julia`
   Cloning registry from "https://github.com/JuliaRegistries/General.git"
     Added registry `General` to `~/.julia/registries/General`
 Resolving package versions...
 Installed AxisAlgorithms ────────────── v1.0.0
 Installed CoordinateTransformations ─── v0.5.0
 Installed Reexport ──────────────────── v0.2.0
 Installed RemoteFiles ───────────────── v0.2.1
 Installed ScikitLearnBase ───────────── v0.4.1
 Installed CommonSubexpressions ──────── v0.2.0
 Installed NLSolversBase ─────────────── v7.3.1
 Installed PGFPlots ──────────────────── v3.1.2
 Installed BinDeps ───────────────────── v0.8.10
 Installed MacroTools ────────────────── v0.5.0
 Installed Ratios ────────────────────── v0.3.1
 Installed IndirectArrays ────────────── v0.5.0
 Installed VersionParsing ────────────── v1.1.3
 Installed OrderedCollections ────────── v1.1.0
 Installed QuadGK ────────────────────── v2.1.0
 Installed JSON ──────────────────────── v0.20.0
 Installed FillArrays ────────────────── v0.6.3
 Installed PDMats ────────────────────── v0.9.7
 Installed TableTraits ───────────────── v1.0.0
 Installed Clustering ────────────────── v0.13.1
 Installed BenchmarkTools ────────────── v0.4.2
 Installed Requires ──────────────────── v0.5.2
 Installed MLJModels ─────────────────── v0.2.5
 Installed StaticArrays ──────────────── v0.11.0
 Installed Zygote ────────────────────── v0.3.2
 Installed AbstractFFTs ──────────────── v0.4.1
 Installed Distributions ─────────────── v0.20.0
 Installed Interpolations ────────────── v0.12.2
 Installed FixedPointNumbers ─────────── v0.5.3
 Installed MultivariateStats ─────────── v0.6.0
 Installed MappedArrays ──────────────── v0.2.1
 Installed ElasticPDMats ─────────────── v0.2.1
 Installed ColorVectorSpace ──────────── v0.7.0
 Installed MLJBase ───────────────────── v0.2.4
 Installed ImageCore ─────────────────── v0.8.4
 Installed ImageMagick ───────────────── v0.7.4
 Installed ImageMorphology ───────────── v0.2.4
 Installed IteratorInterfaceExtensions ─ v1.0.0
 Installed Contour ───────────────────── v0.5.1
 Installed NearestNeighbors ──────────── v0.4.3
 Installed Rotations ─────────────────── v0.11.1
 Installed Missings ──────────────────── v0.4.1
 Installed ProgressMeter ─────────────── v1.0.0
 Installed ColorBrewer ───────────────── v0.4.0
 Installed Calculus ──────────────────── v0.4.1
 Installed CSV ───────────────────────── v0.5.6
 Installed TimerOutputs ──────────────── v0.5.0
 Installed PositiveFactorizations ────── v0.2.2
 Installed Conda ─────────────────────── v1.3.0
 Installed ImageAxes ─────────────────── v0.6.0
 Installed Tables ────────────────────── v0.2.6
 Installed Rmath ─────────────────────── v0.5.0
 Installed RangeArrays ───────────────── v0.3.1
 Installed IterTools ─────────────────── v1.1.1
 Installed CatIndices ────────────────── v0.2.0
 Installed DiffEqDiffTools ───────────── v0.12.0
 Installed LIBLINEAR ─────────────────── v0.5.1
 Installed ForwardDiff ───────────────── v0.10.3
 Installed Discretizers ──────────────── v3.0.1
 Installed FFTW ──────────────────────── v0.2.4
 Installed NNlib ─────────────────────── v0.6.0
 Installed WeakRefStrings ────────────── v0.6.1
 Installed IntervalSets ──────────────── v0.3.1
 Installed StatsBase ─────────────────── v0.30.0
 Installed Tokenize ──────────────────── v0.5.4
 Installed StatsFuns ─────────────────── v0.8.0
 Installed MemPool ───────────────────── v0.2.0
 Installed ImageTransformations ──────── v0.8.0
 Installed DataStructures ────────────── v0.15.0
 Installed SimpleTraits ──────────────── v0.8.0
 Installed ElasticArrays ─────────────── v0.4.0
 Installed Tau ───────────────────────── v0.2.0
 Installed TiledIteration ────────────── v0.2.3
 Installed IdentityRanges ────────────── v0.3.0
 Installed CustomUnitRanges ──────────── v0.2.0
 Installed PhysicalConstants ─────────── v0.2.0
 Installed Parsers ───────────────────── v0.3.6
 Installed Optim ─────────────────────── v0.18.1
 Installed Unitful ───────────────────── v0.15.0
 Installed PooledArrays ──────────────── v0.5.2
 Installed Images ────────────────────── v0.18.0
 Installed FastGaussQuadrature ───────── v0.3.3
 Installed WoodburyMatrices ──────────── v0.4.1
 Installed SpecialFunctions ──────────── v0.7.2
 Installed Colors ────────────────────── v0.9.5
 Installed AxisArrays ────────────────── v0.3.0
 Installed Distances ─────────────────── v0.8.0
 Installed DiffResults ───────────────── v0.0.4
 Installed LineSearches ──────────────── v7.0.1
 Installed PaddedViews ───────────────── v0.4.2
 Installed ImageShow ─────────────────── v0.2.0
 Installed ComputationalResources ────── v0.3.0
 Installed CSTParser ─────────────────── v0.6.0
 Installed MbedTLS ───────────────────── v0.6.8
 Installed URIParser ─────────────────── v0.4.0
 Installed SortingAlgorithms ─────────── v0.3.1
 Installed DiffRules ─────────────────── v0.0.10
 Installed CategoricalArrays ─────────── v0.5.2
 Installed TikzPictures ──────────────── v3.0.5
 Installed IRTools ───────────────────── v0.2.2
 Installed NaNMath ───────────────────── v0.3.2
 Installed ImageMetadata ─────────────── v0.7.1
 Installed FFTViews ──────────────────── v0.2.0
 Installed DataFrames ────────────────── v0.18.3
 Installed ImageDistances ────────────── v0.2.4
 Installed MLDatasets ────────────────── v0.3.0
 Installed IniFile ───────────────────── v0.5.0
 Installed LaTeXStrings ──────────────── v1.0.3
 Installed Measurements ──────────────── v2.0.0
 Installed Graphics ──────────────────── v0.4.0
 Installed Roots ─────────────────────── v0.8.1
 Installed OffsetArrays ──────────────── v0.11.1
 Installed GaussianProcesses ─────────── v0.9.0
 Installed ImageFiltering ────────────── v0.6.3
 Installed Arpack ────────────────────── v0.3.1
 Installed HTTP ──────────────────────── v0.8.2
 Installed LIBSVM ────────────────────── v0.3.1
 Installed Crayons ───────────────────── v4.0.0
 Installed ColorTypes ────────────────── v0.8.0
 Installed RecipesBase ───────────────── v0.7.0
 Installed Parameters ────────────────── v0.10.3
 Installed DataDeps ──────────────────── v0.6.2
 Installed FileIO ────────────────────── v1.0.7
 Installed GZip ──────────────────────── v0.5.0
 Installed Compat ────────────────────── v2.1.0
 Installed MLJ ───────────────────────── v0.2.5
 Installed BinaryProvider ────────────── v0.5.4
 Installed ColorSchemes ──────────────── v3.3.0
  Updating `~/.julia/environments/v1.1/Project.toml`
  [d14d998a] + PredictMDExtra v0.10.0-DEV [`../../../Downloads/PredictMDExtra.jl`]
  Updating `~/.julia/environments/v1.1/Manifest.toml`
  [d14d998a] + PredictMDExtra v0.10.0-DEV [`../../../Downloads/PredictMDExtra.jl`]
ERROR: type Nothing has no field name
Stacktrace:
 [1] getproperty(::Any, ::Symbol) at ./sysimg.jl:18
 [2] #build_versions#48(::Bool, ::Bool, ::Function, ::Pkg.Types.Context, ::Array{Base.UUID,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1023
 [3] build_versions at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1012 [inlined]
 [4] #add_or_develop#63(::Array{Base.UUID,1}, ::Symbol, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1175
 [5] #add_or_develop at ./none:0 [inlined]
 [6] #add_or_develop#17(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:59
 [7] (::getfield(Pkg.API, Symbol("#kw##add_or_develop")))(::NamedTuple{(:mode,),Tuple{Symbol}}, ::typeof(Pkg.API.add_or_develop), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at ./none:0
 [8] do_develop!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Symbol,Any}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:677
 [9] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:742
 [10] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:741
 [11] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:563
 [12] #do_cmd#31(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:538
 [13] do_cmd at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:534 [inlined]
 [14] (::getfield(Pkg.REPLMode, Symbol("##53#56")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/Pkg/src/REPLMode.jl:988
 [15] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [16] invokelatest at ./essentials.jl:741 [inlined]
 [17] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:2273
 [18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:1035
 [19] run_repl(::REPL.AbstractREPL, ::Any) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:192
 [20] (::getfield(Base, Symbol("##734#736")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:362
 [21] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [22] invokelatest at ./essentials.jl:741 [inlined]
 [23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:346
 [24] exec_options(::Base.JLOptions) at ./client.jl:284
 [25] _start() at ./client.jl:436
KristofferC commented 5 years ago

Your example doesn't repro from a clean environment for me. It is likely something in your main Manifest that is causing this.

Also, please post if it can be reproduced on the 1.2-RC1 release.

DilumAluthge commented 5 years ago

I deleted my ~/.julia directory and tried again on Julia 1.1.1, and I can still reproduce the error. Let me try on 1.2-RC1 and report back.

DilumAluthge commented 5 years ago

I cannot reproduce the error in a clean environment on Julia 1.2.0-rc1.0 (2019-05-30). So whatever the bug is, it's been fixed!