# Method definition setindex in module ArrayInterFaceCore overwritten

**URL:** <https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974>\
**Category:** New to Julia\
**Tags:** question, array\
**Created:** [May 31, 2022, 10:07am UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974 "2022-05-31T10:07:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [May 31, 2022, 10:07am UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/1 "2022-05-31T10:07:25Z")

</div>

Through including various packages I somehow managed to get the warnings

```julia
WARNING: Method definition setindex(AbstractArray{T, 2} where T, Any, Int64, Int64) 
in module ArrayInterfaceCore at /home/user/.julia/packages/ArrayInterfaceCore/0D5yC/src/ArrayInterfaceCore.jl:110 
overwritten in module ArrayInterface at /home/user/.julia/packages/ArrayInterface/R0AhD/src/ArrayInterface.jl:199.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, 1} where T, Any, Int64) 
in module ArrayInterfaceCore at /home/user/.julia/packages/ArrayInterfaceCore/0D5yC/src/ArrayInterfaceCore.jl:105
 overwritten in module ArrayInterface at /home/user/.julia/packages/ArrayInterface/R0AhD/src/ArrayInterface.jl:194.
  **incremental compilation may be fatally broken for this module**

WARNING: Method definition setindex(AbstractArray{T, N} where N where T, Any, Any...) 
in module ArrayInterfaceCore at /home/user/.julia/packages/ArrayInterfaceCore/0D5yC/src/ArrayInterfaceCore.jl:99 
overwritten in module ArrayInterface at /home/user/.julia/packages/ArrayInterface/R0AhD/src/ArrayInterface.jl:188.
  **incremental compilation may be fatally broken for this module**

```

I also have the feeling that they might cause a bug in my program, so I would like to resolve them - how do I do that?

---

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [May 31, 2022, 11:33am UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/2 "2022-05-31T11:33:44Z")

</div>

Please post your `versioninfo()` and a larger section of your code that produces this error.  
Are you changing environments in your program at some point?

---

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [May 31, 2022, 12:03pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/3 "2022-05-31T12:03:24Z")

</div>

```julia-auto
julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 7 5800H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, znver3)

```

For the code: This happens when I included a package (let’s call it FOO for the moment) from `.julia/dev/FOO` via

`using FOO`

Interestingly, with the package `FOO` there come some examples, also using the package without the warnings popping up.

Recently, I added another package to the dependencies of `FOO` and updated the `Project.toml` file via `Pkg`. Still, the “built-in” example programs run, while my custom one gives the warnings.

# Solution: Calling

```julia-auto
pkg> update

```

Seems to have solved the issue.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 31, 2022, 12:47pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/4 "2022-05-31T12:47:43Z")

</div>

> [@jd-foster](#):
>
> ase post your `versioninfo()` and a larger section of your code that produces this error.  
> Are you changing environments in your program at some poin

Share `]st`

---

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [May 31, 2022, 1:16pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/5 "2022-05-31T13:16:48Z")

</div>

```julia
(@v1.7) pkg> st
      Status `~/.julia/environments/v1.7/Project.toml`
  [1e616198] COSMO v0.8.5 `https://github.com/oxfordcontrol/COSMO.jl.git#with_multi_threading`
  [f65535da] Convex v0.15.1
  [1dea7af3] OrdinaryDiffEq v6.14.0
  [91a5bcdd] Plots v1.29.0
  [0c5d862f] Symbolics v4.6.0
  [a7f1ee26] Trixi v0.4.36-pre `~/.julia/dev/Trixi`
  [bc1476a1] Trixi2Vtk v0.3.8

```

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 31, 2022, 1:25pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/6 "2022-05-31T13:25:35Z")

</div>

Try upgrading. I think Octavian wasn’t updated in awhile so it was blocking some packages and causing a few warnings here and there. You should get v0.3.14 [Release v0.3.14 · JuliaLinearAlgebra/Octavian.jl · GitHub](https://github.com/JuliaLinearAlgebra/Octavian.jl/releases/tag/v0.3.14) and I assume that was the issue? If not, I’ll need to see `]st -m`.

---

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [May 31, 2022, 1:51pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/7 "2022-05-31T13:51:02Z")

</div>

Probably, `] st -m` showed that Octavian is now version `0.3.14`.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 31, 2022, 2:24pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/8 "2022-05-31T14:24:45Z")

</div>

And it’s fixed now?

---

<div class="post-metadata">

**Author:** ![DanDoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandoe/32/52717_2.png) [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Post date:** [May 31, 2022, 2:36pm UTC](https://discourse.julialang.org/t/method-definition-setindex-in-module-arrayinterfacecore-overwritten/81974/9 "2022-05-31T14:36:42Z")

</div>

Calling

> [@DanDoe](#):
>
> `pkg> update`

solved it, so yeah I guess that was the reason.
