SciML / EllipsisNotation.jl

Julia-based implementation of ellipsis array indexing notation `..`
https://docs.sciml.ai/EllipsisNotation/stable/
Other
88 stars 14 forks source link

is_splat_index property not defined in dependents #35

Closed deszoeke closed 2 years ago

deszoeke commented 2 years ago

The is_splat_index property seems to be causing some problems in dependent packages. In my case it is preventing Images from precompiling:

(@v1.6) pkg> precompile
Precompiling project...
  ✗ EllipsisNotation
  ✗ IntegralArrays
  ✗ ImageAxes
  ✗ ImageMetadata
  ✗ Images
  0 dependencies successfully precompiled in 49 seconds (248 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]

Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /home/server/pi/homes/sdeszoek/.julia/compiled/v1.6/Images/jl_xc2Zbk.
ERROR: LoadError: UndefVarError: is_splat_index not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:26
 [2] top-level scope
   @ ~/.julia/packages/EllipsisNotation/qFNQT/src/EllipsisNotation.jl:58
 [3] include
   @ ./Base.jl:384 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base ./loading.jl:1235
 [5] top-level scope
   @ none:1
 [6] eval

(@v1.6) pkg> status
      Status `~/.julia/environments/v1.6/Project.toml`
  [8f4d0f93] Conda v1.5.2
  [150eb455] CoordinateTransformations v0.6.2
  [717857b8] DSP v0.7.3
  [864edb3b] DataStructures v0.18.10
  [b4f34e82] Distances v0.10.6
  [5789e2e9] FileIO v1.11.2
  [7073ff75] IJulia v1.23.2
  [6a3955dd] ImageFiltering v0.7.1
  [80713f31] ImageSegmentation v1.7.0
  [916415d5] Images v0.25.0
  [a98d9a8b] Interpolations v0.13.4
  [033835bb] JLD2 v0.4.15
  [23992714] MAT v0.10.1
  [e1d29d7a] Missings v1.0.2
  [85f8d34a] NCDatasets v0.11.7
  [b8a86587] NearestNeighbors v0.4.9
  [30363a11] NetCDF v0.11.3
  [e7bfaba1] NumericalIntegration v0.3.3
  [91a5bcdd] Plots v1.24.3
  [438e738f] PyCall v1.92.5
  [d330b81b] PyPlot v2.10.0
  [295af30f] Revise v3.1.20
  [ebc72ef8] SciPy v0.1.1
  [3646fa90] ScikitLearn v0.6.4
  [2913bbd2] StatsBase v0.33.13
  [0a941bbe] Zarr v0.7.0

julia> versioninfo()
Julia Version 1.6.4
Commit 35f0c911f4 (2021-11-19 03:54 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Opteron(tm) Processor 6172
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, amdfam10)
deszoeke commented 2 years ago

Upon inspection, this is the same version error as #34.

Pkg.add(Pkg.PackageSpec(;name="EllipsisNotation", version="1.1.3")) fixes it.

ChrisRackauckas commented 2 years ago

The bad version is now fixed in the registry: https://github.com/JuliaRegistries/General/pull/49611 so this issue shouldn't show up anymore.