SciML / DiffEqOperators.jl

Linear operators for discretizations of differential equations and scientific machine learning (SciML)
https://docs.sciml.ai/DiffEqOperators/stable/
Other
284 stars 74 forks source link

Lots of precompilation errors and noise #554

Open ViralBShah opened 1 year ago

ViralBShah commented 1 year ago
  2 dependencies had warnings during precompilation:
┌ DiffEqOperators [9fdde737-9c7f-55bf-ade8-46b3f136cc48]
│  WARNING: method definition for * at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/multi_dim_bc_operators.jl:221 declares type variable B but does not use it.
│  WARNING: method definition for * at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/multi_dim_bc_operators.jl:244 declares type variable B but does not use it.
│  WARNING: method definition for CompleteCenteredDifference at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/derivative_operator.jl:211 declares type variable N but does not use it.
│  WARNING: method definition for CompleteCenteredDifference at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/derivative_operator.jl:262 declares type variable N but does not use it.
│  WARNING: method definition for CompleteHalfCenteredDifference at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/derivative_operator.jl:317 declares type variable N but does not use it.
│  WARNING: method definition for CompleteHalfCenteredDifference at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/derivative_operator.jl:369 declares type variable N but does not use it.
│  WARNING: method definition for CompleteUpwindDifference at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/derivative_operator.jl:644 declares type variable N but does not use it.
│  WARNING: method definition for CompleteUpwindDifference at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/derivative_operator.jl:701 declares type variable N but does not use it.
│  WARNING: method definition for BandedMatrix at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/concretization.jl:463 declares type variable K but does not use it.
│  WARNING: method definition for BandedMatrix at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/concretization.jl:463 declares type variable N but does not use it.
│  WARNING: method definition for BandedMatrix at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/concretization.jl:463 declares type variable D but does not use it.
│  WARNING: method definition for BandedMatrix at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/concretization.jl:463 declares type variable B but does not use it.
│  WARNING: method definition for BandedMatrix at /Users/viral/.julia/packages/DiffEqOperators/lHq9u/src/derivative_operators/concretization.jl:463 declares type variable T but does not use it.
│  ┌ Warning: DiffEqOperators.jl is in the process of being deprecated.
│  │ 
│  │        - For automated PDE discretization, see MethodOfLines.jl
│  │ 
│  │        - For MatrixFreeOperators, and other non-derivative operators, see SciMLOperators.jl
│  │ 
│  │        - For VecJacOperators and JacVecOperators, see SparseDiffTools.jl
│  └ @ DiffEqOperators ~/.julia/packages/DiffEqOperators/lHq9u/src/DiffEqOperators.jl:61
└  
┌ FiniteDiffBlockBandedMatricesExt [96e4ec09-6d7e-523c-8af1-89de598bdaad]
│  ┌ Warning: Module ArrayInterfaceBandedMatricesExt with build ID fafbfcfd-2865-82a7-0001-ee64741e39f5 is missing from the cache.
│  │ This may mean ArrayInterfaceBandedMatricesExt [26e938bc-0cd5-5679-9003-44616cbf91d3] does not support precompilation but is imported by a module that does.
│  └ @ Base loading.jl:1793
│  ┌ Error: Error during loading of extension ArrayInterfaceBandedMatricesExt of ArrayInterface, use `Base.retry_load_extensions()` to retry.
│  │   exception =
│  │    1-element ExceptionStack:
│  │    Declaring __precompile__(false) is not allowed in files that are being precompiled.
│  │    Stacktrace:
│  │      [1] _require(pkg::Base.PkgId, env::Nothing)
│  │        @ Base ./loading.jl:1797
│  │      [2] _require_prelocked(uuidkey::Base.PkgId, env::Nothing)
│  │        @ Base ./loading.jl:1660
│  │      [3] _require_prelocked(uuidkey::Base.PkgId)
│  │        @ Base ./loading.jl:1658
│  │      [4] run_extension_callbacks(extid::Base.ExtensionId)
│  │        @ Base ./loading.jl:1255
│  │      [5] run_extension_callbacks(pkgid::Base.PkgId)
│  │        @ Base ./loading.jl:1290
│  │      [6] run_package_callbacks(modkey::Base.PkgId)
│  │        @ Base ./loading.jl:1124
│  │      [7] _require_prelocked(uuidkey::Base.PkgId, env::String)
│  │        @ Base ./loading.jl:1667
│  │      [8] macro expansion
│  │        @ ./loading.jl:1648 [inlined]
│  │      [9] macro expansion
│  │        @ ./lock.jl:267 [inlined]
│  │     [10] require(into::Module, mod::Symbol)
│  │        @ Base ./loading.jl:1611
│  │     [11] top-level scope
│  │        @ ~/.julia/packages/FiniteDiff/grio1/ext/FiniteDiffBandedMatricesExt.jl:5
│  │     [12] include
│  │        @ ./Base.jl:457 [inlined]
│  │     [13] 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, UInt128}}, source::String)
│  │        @ Base ./loading.jl:2049
│  │     [14] top-level scope
│  │        @ stdin:3
│  │     [15] eval
│  │        @ ./boot.jl:370 [inlined]
│  │     [16] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
│  │        @ Base ./loading.jl:1903
│  │     [17] include_string
│  │        @ ./loading.jl:1913 [inlined]
│  │     [18] exec_options(opts::Base.JLOptions)
│  │        @ Base ./client.jl:305
│  │     [19] _start()
│  │        @ Base ./client.jl:522
│  └ @ Base loading.jl:1261
│  ┌ Warning: Module ArrayInterfaceBandedMatricesExt with build ID fafbfcfd-2865-82a7-0001-ee64741e39f5 is missing from the cache.
│  │ This may mean ArrayInterfaceBandedMatricesExt [26e938bc-0cd5-5679-9003-44616cbf91d3] does not support precompilation but is imported by a module that does.
│  └ @ Base loading.jl:1793
│  ┌ Error: Error during loading of extension ArrayInterfaceBandedMatricesExt of ArrayInterface, use `Base.retry_load_extensions()` to retry.
│  │   exception =
│  │    1-element ExceptionStack:
│  │    Declaring __precompile__(false) is not allowed in files that are being precompiled.
│  │    Stacktrace:
│  │      [1] _require(pkg::Base.PkgId, env::Nothing)
│  │        @ Base ./loading.jl:1797
│  │      [2] _require_prelocked(uuidkey::Base.PkgId, env::Nothing)
│  │        @ Base ./loading.jl:1660
│  │      [3] _require_prelocked(uuidkey::Base.PkgId)
│  │        @ Base ./loading.jl:1658
│  │      [4] run_extension_callbacks(extid::Base.ExtensionId)
│  │        @ Base ./loading.jl:1255
│  │      [5] run_extension_callbacks(pkgid::Base.PkgId)
│  │        @ Base ./loading.jl:1290
│  │      [6] run_package_callbacks(modkey::Base.PkgId)
│  │        @ Base ./loading.jl:1124
│  │      [7] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::String, sourcepath::String, depmods::Vector{Any})
│  │        @ Base ./loading.jl:1398
│  │      [8] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
│  │        @ Base ./loading.jl:1494
│  │      [9] _require(pkg::Base.PkgId, env::String)
│  │        @ Base ./loading.jl:1783
│  │     [10] _require_prelocked(uuidkey::Base.PkgId, env::String)
│  │        @ Base ./loading.jl:1660
│  │     [11] macro expansion
│  │        @ ./loading.jl:1648 [inlined]
│  │     [12] macro expansion
│  │        @ ./lock.jl:267 [inlined]
│  │     [13] require(into::Module, mod::Symbol)
│  │        @ Base ./loading.jl:1611
│  │     [14] top-level scope
│  │        @ ~/.julia/packages/ArrayInterface/a4Wwt/ext/ArrayInterfaceBlockBandedMatricesExt.jl:8
│  │     [15] include
│  │        @ ./Base.jl:457 [inlined]
│  │     [16] 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, UInt128}}, source::String)
│  │        @ Base ./loading.jl:2049
│  │     [17] top-level scope
│  │        @ stdin:3
│  │     [18] eval
│  │        @ ./boot.jl:370 [inlined]
│  │     [19] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
│  │        @ Base ./loading.jl:1903
│  │     [20] include_string
│  │        @ ./loading.jl:1913 [inlined]
│  │     [21] exec_options(opts::Base.JLOptions)
│  │        @ Base ./client.jl:305
│  │     [22] _start()
│  │        @ Base ./client.jl:522
│  └ @ Base loading.jl:1261
└  
ChrisRackauckas commented 1 year ago

This library is already deprecated and unused in the dependency stack. Where did it come up?

ViralBShah commented 1 year ago

Makes sense. I was seeing if https://github.com/SciML/Sundials.jl/issues/221 could be closed.

ViralBShah commented 1 year ago

Perhaps the package can be archived and a note added as well?

ChrisRackauckas commented 1 year ago

Oh yeah that's just a stale issue.

ChrisRackauckas commented 1 year ago

The README has:

This Package is in the Process of being Deprecated

And the top of the documentation has:

This package is in the process of being deprecated. See below for alternatives

That issue was just from 2019, before the deprecation. We're looking into somethings around ASKEM for how much to incorporate some of the remaining pieces elsewhere.

ChrisRackauckas commented 1 year ago
Screenshot 2023-07-15 at 10 02 10 AM

I think we're pretty hilariously explicit about "this library may have issues, don't use it, use the other things" 😅

ViralBShah commented 1 year ago

Yeah I meant also archive it on github so that people like me who are copy pasting examples can't even open such issues? :-)

If it didn't let me file an issue, then I would have gone and seen the README or docs.