My code seems to big to be decompile in Block

Hello, here is my project: https://arcade.makecode.com/S14934-36874-77891-43155

For a reason, I can’t use Block anymore. What can I do to have the Block back?

whats happening is you have an error in your code and until you can fix it, you cant go back into blocks

The code works perfectly on the simulator. If there was error in my code, it wouldn’t work on the simulator.

1 Like

hmmm…
try going into the file explorer and look for any errors with the non-user code files.

only main.ts have the error: Can’t decompile because the script is too large.

1 Like

I believe that your javascript code is just to big overall if I translated it right so it might work its just It cant be turned into blocks

@Darcia sorry about that, it’s an old restriction put in place to make sure that people don’t accidentally hang their computers by decompiling gigantic projects.

Here is your script with the blocks restored:

2 Likes

I have removed this restriction so this shouldn’t happen again in future versions of arcade (whenever we get around to pushing a new release)

for now, the only real workaround is to just stay in blocks.

5 Likes

Thank you!! It works until i come back to the code. So, I must remember to not go on the code.^^