Adding some extensions doesn't work

I have been doing some random stuff related to cool visuals, and I am trying to use one of my favourite extensions ever.

I have noticed this before with the new update, when I add some extensions it says adding but does nothing.
I have been quite frustrated with some of the glitches in the new makecode update, but I don’t want to quit yet. Also the game I was working on, cold dungeon, I can’t finish or edit and it has become corrupted. If you could get back to me quickly and approve this quickly that would be awesome.

7 Likes

try this https://github.com/robo-technical-group/pxt-arcade-image-transform

2 Likes

This is so weird! I looked into the file on GitHub and it doesn’t have any of the stuff needed to turn the functions into blocks! @richard did the new update change the requirements for block definitions? If you look in the GitHub it has this:

/**
     * Rotates the given sprite using the RotSprite Algorithm
     * @param sprite The sprite being rotated
     * @param angle The angle that the sprite is being rotated. (Clockwise in Radians)
     */

But no “//% block” stuff. Are these extension errors the result of changing Blockly versions?

1 Like

@WoofWoof nope! that extension wouldn’t have created blocks in the old arcade version either. @BotWarrior can you share a project where you were using this extension?

2 Likes

I’ve started having these problems as well with many extensions - it’s depends on the order in which you add extensions otherwise something will fail. I’m trying to reproduce this…

1 Like

Oh, right, that’s just the stuff that shows up when you hover over the function that tells you what it does!

@UnsignedArduino if you could post here next time it happens with which extension is triggering the issue; i would appreciate it. we recently made some changes to our backend which have been causing some extension flakiness

@UnsignedArduino @BotWarrior also, as per usual, check the developer tools console whenever any error occurs and send it to me. it’s very hard for me to fix issues like this when i don’t have a solid repro or error log

5 Likes

i wrote up some instructions on how to copy the browser console and other things to do when reporting a bug:

4 Likes

Argh I tried it right now and it worked, but I have noticed this problem multiple times with different extensions… I don’t know if I am just being stupid, but it seems that older extensions aren’t working as much. By the way, here was what I have done so far on the project in question.

This isn’t using sprite utils to draw circles, it has an invisible spinning sprite drawing lines to the centre.

I can’t add https://github.com/UnsignedArduino/Fast-Random-Blocks/ to https://github.com/UnsignedArduino/Procedurally-Generated-Platformer-2 (don’t know how I forgot to add the core mechanic at the beginning lol)

I can also create an issue if u want

3 Likes

Oh also sometimes GitHub projects fail to import on the first try, I have to do it again for it to actually do anything, which you also see in the video, which is another problem…

3 Likes

@BotWarrior did you notice the problem in projects imported from github?

that’s what @UnsignedArduino’s issue was, and I’ve got a fix for that one:

5 Likes

@UnsignedArduino do you see the double-importing issue for all repos or just that one? that particular repo has one file that is too big for our backend to copy (you probably saw that in the error logs)

3 Likes

It doesn’t matter what two repos you select, after (re)loading the page the first repo selected will always not do anything. Then after that importing works normally.

Will there be a fix for it or should I try to do something else?

Just wondering when do these get put into prod?

1 Like

Yes! I am glad it wasn’t just me; that I wasn’t going crazy :zany_face:

1 Like

@UnsignedArduino there will probably be a hotfix sometime this week.

we aren’t likely to increase the limit on file size; i’d recommend moving images into named assets

2 Likes

I would do this but sometimes the named assets just disappear so I’ve been avoiding them for now. But I’m pretty sure I’ll hit the limit soon even with just plain code due to the amount of extensions I will have…is there anything I can do about that? Maybe developing locally with the VS code ext?

1 Like

I have had a slightly different problem before: adding certain extensions deletes all of my assets. Since I use github with my projects, I am able to revert changes and then re-add the extension, and it usually works. I can try to reproduce the issue.