Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default diff backends missing argument #26

Open
lukas-weber opened this issue Jul 27, 2023 · 1 comment
Open

default diff backends missing argument #26

lukas-weber opened this issue Jul 27, 2023 · 1 comment

Comments

@lukas-weber
Copy link

When doing

using FiniteDifferences
using ManifoldDiff

I get the following error, seemingly caused by the code around ManifoldDiff.jl:206 missing some function arguments. Some other backends seem to have the same issue.

┌ Warning: Error requiring `FiniteDifferences` from `ManifoldDiff`
│   exception =
│    MethodError: no method matching ManifoldDiff.FiniteDifferencesBackend()
│
│    Closest candidates are:
│      ManifoldDiff.FiniteDifferencesBackend(::TM) where TM
│       @ ManifoldDiff ~/.production_depot/packages/ManifoldDiff/iL1ys/src/finite_differences.jl:7
│
│    Stacktrace:
│      [1] top-level scope
│        @ ~/.production_depot/packages/ManifoldDiff/iL1ys/src/ManifoldDiff.jl:206
│      [2] eval
│        @ ./boot.jl:370 [inlined]
│      [3] eval
│        @ ~/.production_depot/packages/ManifoldDiff/iL1ys/src/ManifoldDiff.jl:1 [inlined]
│      [4] (::ManifoldDiff.var"#36#51")()
│        @ ManifoldDiff ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:101
│      [5] macro expansion
│        @ timing.jl:393 [inlined]
│      [6] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│        @ Requires ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:47
│      [7] (::ManifoldDiff.var"#35#50")()
│        @ ManifoldDiff ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:100
│      [8] withpath(f::Any, path::String)
│        @ Requires ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:37
│      [9] (::ManifoldDiff.var"#34#49")()
│        @ ManifoldDiff ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:99
│     [10] listenpkg(f::Any, pkg::Base.PkgId)
│        @ Requires ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:20
│     [11] macro expansion
│        @ ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│     [12] __init__()
│        @ ManifoldDiff ~/.production_depot/packages/ManifoldDiff/iL1ys/src/ManifoldDiff.jl:204
│     [13] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
│        @ Base ./loading.jl:1115
│     [14] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
│        @ Base ./loading.jl:1061
│     [15] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::String, sourcepath::String, depmods::Vector{Any})
│        @ Base ./loading.jl:1391
│     [16] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
│        @ Base ./loading.jl:1494
│     [17] _require(pkg::Base.PkgId, env::String)
│        @ Base ./loading.jl:1783
│     [18] _require_prelocked(uuidkey::Base.PkgId, env::String)
│        @ Base ./loading.jl:1660
│     [19] macro expansion
│        @ ./loading.jl:1648 [inlined]
│     [20] macro expansion
│        @ ./lock.jl:267 [inlined]
│     [21] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:1611
│     [22] include(mod::Module, _path::String)
│        @ Base ./Base.jl:457
│     [23] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:307
│     [24] _start()
│        @ Base ./client.jl:522
└ @ Requires ~/.production_depot/packages/Requires/Z8rfN/src/require.jl:51```
@mateuszbaran
Copy link
Member

Hm, thanks for reporting, I will check that. For now a simple workaround is importing the packages in the reverse order:

using ManifoldDiff
using FiniteDifferences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants