50 variables suddenly appeared in my project

I kept my makecode arcade tab open on my project over the weekend, with the laptop off the entire time, and when I opened up the tab today I looked at my project and my index and value variables have duplicated like 50 times and I have a variable for every value between index1 and index30, same thing for value. not a huge problem to fix but it is a bit of a time waster to delete all of these.

I’m mostly just wondering how this even happens tbh.

Photos:

image

image

1 Like

I think - and this might just be me hallucinating - that this happened to me once when i switched a project with lots of “for element value of list” blocks into javascript and back into blocks.

My educated guess is that it made a unique variable for every instance of “value” in the code because compiler shenanegans

1 Like

nevermind as to how this happens - apparently its from switching from blocks to javascript.

3 Likes

Yeah it happens sometimes.
It also happens with various other blocks, if you don’t want the great summoning to occur, stick to one language.

Crazy bug, but for some reason I find it kind of funny.

yeah pretty much what happened

1 Like