Closed bluesmoon closed 3 months ago
Thanks!
Thanks. I see it implemented in #576. Does a new version get triggered directly?
Thanks again. I really appreciate your pointing this out.
This causes the following error in Julia 1.6...
ERROR: LoadError: LoadError: ArgumentError: Package Polynomials does not have MakieCore in its dependencies:
- If you have Polynomials checked out for development and have
added MakieCore as a dependency but haven't updated your primary
environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Polynomials
Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base ./loading.jl:906
[2] include(mod::Module, _path::String)
@ Base ./Base.jl:384
[3] include(x::String)
@ Polynomials ~/.julia/packages/Polynomials/aeqze/src/Polynomials.jl:6
[4] top-level scope
@ ~/.julia/packages/Polynomials/aeqze/src/Polynomials.jl:64
[5] include
@ ./Base.jl:384 [inlined]
[6] 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
[7] top-level scope
@ none:1
[8] eval
@ ./boot.jl:360 [inlined]
[9] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[10] top-level scope
@ none:1
in expression starting at /home/runner/.julia/packages/Polynomials/aeqze/ext/PolynomialsMakieCoreExt.jl:1
in expression starting at /home/runner/.julia/packages/Polynomials/aeqze/src/Polynomials.jl:1
Could you use Requires
to load the extension code only when MakieCore
is explicitly loaded?
@static if !isdefined(Base, :get_extension)
using Requires
end
function __init__()
@static if !isdefined(Base, :get_extension)
@require MakieCore = "20f20a25-4f0e-4fdf-b5d1-57303727442b" include("../ext/PolynomialsMakieCoreExt.jl")
end
end
Thanks. (Now I know why I had that in there.) I'll see if your suggestion works, as I'd really love to drop MakieCore from deps
/
Heres some guideline on how to do backwards compatibility with extensions: https://pkgdocs.julialang.org/dev/creating-packages/#Backwards-compatibility
@jverzani your jverzani:issue_575 branch works well for me on Julia 1.6.7
Yes, now to get it to work without Aqua errors. Hopefully it will sort out today.
Aqua.test_all(Polynomials; stale_deps=(;ignore=[:Requires]))
Merci!!
No problem, thanks for taking care of this so quickly :)
Fixed in 4.0.11
I see
MakieCore
is indeps
as well asweakdeps
in theProject.toml
file. Since it's only used by thePolynomialsMakieCoreExt
extension, I don't believe it needs to be indeps
as well. Can it be removed as it's pulling in a large number of dependencies.