Code deleting randomly

I got a message from pxt arcade and was so happy YAY

1 Like

what about tile disappearing from the container blocks

2 Likes

Thats still the same.

In fact its happened to me

TWICE

JUST

TODAY!!!

same bro

1 Like

Richard explained it on stream. (Y’all should watch the streams!!)

Apparently, when you open a block tab, the data has to load fresh, so instead of loading the block tabs fresh every time, they save the block layout, so that you don’t have a huge load time when opening block tabs. As it turns out, they can only save 21 of these block tab layouts, so after 21 they delete old ones to load the new one. Somehow, their service changed, and so when they deleted old block layouts to make room for new ones, the sprite kind data got deleted too!

There are’t even 21 layouts in normal Makecode, which is why this issue would only happen to people using extensions, and why it would happen more often to people who used more extensions.

3 Likes

when do streams happen

1 Like

Im trying to ok
Sadly i can’t on fridays…

Altho, that does make sense. The project this happened to has:

Sprite Data, Sprite Utils, Javascript extras, Statusbars, Color Fading, Browser Events, Text Sprites, Mini Menus, Tile Util, Timer, Settings and Robo Technical Sprite Transformations. Wow.

1 Like

At 1:00 PM PDT every Monday, Wednesday and Friday.

1 Like

Just renamed all the variables, sprite of kind and etc… That worked for me.

Richard actually announced just yesterday (on stream) that this has also been fixed, though it has not been pushed to production just yet. Here is the explanation he wrote in GitHub:


This doesn’t exactly explain the issue, but basically the data from one project would get replaced by the data from another if you opened a project, didn’t edit it at all, and then opened another project. He explained this on stream. If you can’t watch the streams live, you can always watch them later on YouTube! The explanation is at 23:30 in this stream video.

(once again y’all should watch on stream! I like chatting with people in stream chat. I often see Random, Astral, Astronomer, Luke, and more!)

2 Likes

another bug I think its like the enums in extensions change back to the first one no matter what after closing the tab for like 8 hours