Skip to content

@deprecate usage invalid on Julia <=1.7 #299

Description

@MilesCranmer

This is breaking downstream compatibility with older Julia versions: if I install RecursiveArrayTools in a fresh environment:

julia +1.6 --startup-file=no -e 'using Pkg; pkg"activate --temp"; pkg"add RecursiveArrayTools"; pkg"precompile"'

I get this error:

Precompiling project...
  ✗ RecursiveArrayTools
  0 dependencies successfully precompiled in 2 seconds (16 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package
Precompiling project...
  ✗ RecursiveArrayTools
  0 dependencies successfully precompiled in 1 seconds (16 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

RecursiveArrayTools [731186ca-8d62-57ce-b412-fbd966d074cd]

Failed to precompile RecursiveArrayTools [731186ca-8d62-57ce-b412-fbd966d074cd] to /Users/mcranmer/.julia/compiled/v1.6/RecursiveArrayTools/jl_RqK3gX.
ERROR: LoadError: LoadError: LoadError: invalid usage of @deprecate
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] var"@deprecate"(__source__::LineNumberNode, __module__::Module, old::Any, new::Any, ex::Any)
    @ Base ./deprecated.jl:62
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:384
  [4] include(x::String)
    @ RecursiveArrayTools ~/.julia/packages/RecursiveArrayTools/1yY5f/src/RecursiveArrayTools.jl:5
  [5] top-level scope
    @ ~/.julia/packages/RecursiveArrayTools/1yY5f/src/RecursiveArrayTools.jl:20
  [6] include
    @ ./Base.jl:384 [inlined]
  [7] 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::Nothing)
    @ Base ./loading.jl:1235
  [8] top-level scope
    @ none:1
  [9] eval
    @ ./boot.jl:360 [inlined]
 [10] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [11] top-level scope
    @ none:1
in expression starting at /Users/mcranmer/.julia/packages/RecursiveArrayTools/1yY5f/src/vector_of_array.jl:224
in expression starting at /Users/mcranmer/.julia/packages/RecursiveArrayTools/1yY5f/src/vector_of_array.jl:224
in expression starting at /Users/mcranmer/.julia/packages/RecursiveArrayTools/1yY5f/src/RecursiveArrayTools.jl:2
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:55
 [2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, warn_loaded::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:1265
 [3] precompile
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:921 [inlined]
 [4] #precompile#196
   @ /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:919 [inlined]
 [5] precompile()
   @ Pkg.API /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:919
 [6] do_cmd!(command::Pkg.REPLMode.Command, repl::Pkg.REPLMode.MiniREPL)
   @ Pkg.REPLMode /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/REPLMode/REPLMode.jl:405
 [7] do_cmd(repl::Pkg.REPLMode.MiniREPL, input::String; do_rethrow::Bool)
   @ Pkg.REPLMode /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.6/Pkg/src/REPLMode/REPLMode.jl:386
 [8] top-level scope
   @ none:1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions