Warning about no referent found when using repeatForSequence

Let’s see if posting about it can make this one go away like my last one did!

I am getting weird and inconsistent warnings when using repeatForSequence, even though it all seems to be working as it should. Some of them can be seen even on the documentation page: <repeatForSequence>{:dn} – Nextra

They appear to happen sometimes when referring to the valueName within the element, and then sometimes also afterward when referring to the item that resulted from the repeat. But like I said, it’s actually working as expected!

For example,

<setup>

  <repeatForSequence name="alldists" from="1" to="24" valueName="kz">
    <math simplify><math simplify>$kz/12</math>pi</math>
  </repeatForSequence>

  <repeatForSequence name="points" from="1" to="24" valueName="k">
    <point styleNumber="2" markerStyle="circle" markerSize="4" showCoordsWhenDragging="false">(cos($k/24*2pi),sin($k/24*2pi))
    </point>
  </repeatForSequence>
  
</setup>

$alldists[1] $alldists[5]

produces the warning shown in the image, but also the correct values!

Yes, there’s something going on wrong here, even though it does work right. And it’s a bit strange what triggers the warning. Here’s a bug report.