<p dir="auto">When trying to load a package I built, my REPL gets filled up with an absurd number of messages like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Method definition Any(Integer, Static.StaticInt{U}) where {U} in module ArrayInterface at /home/lime/.julia/packages/ArrayInterface/CYf5x/src/ranges.jl:226 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **"><pre class="notranslate"><code class="notranslate">WARNING: Method definition Any(Integer, Static.StaticInt{U}) where {U} in module ArrayInterface at /home/lime/.julia/packages/ArrayInterface/CYf5x/src/ranges.jl:226 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **
</code></pre></div>
<p dir="auto">I definitely don't have any duplicate calls to include; moreover, the error messages only appear when using v1.7, while 1.6.1 works perfectly fine. I'm using <a href="https://aur.archlinux.org/packages/julia-beta-bin/" rel="nofollow">this</a> version.</p>
<p dir="auto">I thought I had filed an issue for this already, but I can't find it. There's a big problem with the DWARF we generated for inlined code. Right now what we're describing is a function inlined into itself, but at a different location and a different file. We need to clean up the scopes we use when generating the debug info.</p>