# Warning during tests

**URL:** <https://discourse.julialang.org/t/warning-during-tests/124796>\
**Category:** General Usage\
**Tags:** package, ordinarydiffeq\
**Created:** [January 15, 2025, 3:26pm UTC](https://discourse.julialang.org/t/warning-during-tests/124796 "2025-01-15T15:26:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [January 15, 2025, 3:26pm UTC](https://discourse.julialang.org/t/warning-during-tests/124796/1 "2025-01-15T15:26:43Z")

</div>

When I run the tests of KiteModels.jl I get the warning:

```julia
┌ Warning: Using a `Bool` for keyword argument `autodiff` is deprecated. Please use an `ADType` specifier.
│ caller = _process_AD_choice(ad_alg::Bool, chunksize::Val{0}, diff_type::Val{:forward}) at misc_utils.jl:147
└ @ OrdinaryDiffEqCore ~/.julia/packages/OrdinaryDiffEqCore/3Talm/src/misc_utils.jl:147

```

In which package can this be fixed?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 15, 2025, 4:54pm UTC](https://discourse.julialang.org/t/warning-during-tests/124796/2 "2025-01-15T16:54:26Z")

</div>

If you run with `depwarn=error` you will get stacktraces (if the OrdinaryDiffEq side implemented the warning correctly). That said, it looks like the problem is in KiteModels: [KiteModels.jl/src/KiteModels.jl at 37536ee062b65eed57b2e89b168d1d26c35a61e0 · ufechner7/KiteModels.jl · GitHub](https://github.com/ufechner7/KiteModels.jl/blob/37536ee062b65eed57b2e89b168d1d26c35a61e0/src/KiteModels.jl#L558) this should now be `DImplicitEuler(autodiff=AutoFiniteDiff())` etc…

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [January 15, 2025, 5:01pm UTC](https://discourse.julialang.org/t/warning-during-tests/124796/3 "2025-01-15T17:01:19Z")

</div>

I tried that, and I get:

```julia
ERROR: LoadError: UndefVarError: `AutoFiniteDiff` not defined

```

Any idea?

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [January 15, 2025, 5:04pm UTC](https://discourse.julialang.org/t/warning-during-tests/124796/4 "2025-01-15T17:04:18Z")

</div>

`using ADTypes`
