Duplicating block functions is not working correctly
To reproduce:
- In the code builder, using blocks, create a function.
- Duplicate the function
- Rename the new function
Expected:
You should be able to rename the new function
Actual:
The new function is created with the same name as the one that was duplicated. When you rename the new function, it also renames the original. This essentially renders the duplicate function capability useless as the only workaround is to delete the function and create a new one.
Reproduction video here: https://youtu.be/1WWgf1Cap8U
-
Hi James Bennett this is a known MakeCode issue. The workaround would be to duplicate the function, then go into JavaScript or python and change the name of one of the duplicate functions and then switch back to blocks. The only issue with this work around is that you will lose block positioning. If you have everything neatly arranged, it will all be auto formatted by MakeCode when you switch back.
0
Please sign in to leave a comment.
Comments
1 comment