Loss of selection menu
Hi John, I wrote a block library, when I save the program to the motherboard, the next time I use to open the program in the motherboard, I found that the selection menu will be lost and become unselectable, what is the reason for this?
Comments (10)
-
reporter -
repo owner Yes, that is because the selection menu in your custom library is part of the source code that is not included in the compiled code that is actually stored on the board.
See my comment about decompiation on issue 463.
One solution is to keep the source code of your block library in a file and reload that file after decompilation.
-
repo owner - changed status to resolved
-
Thanks for the reply, I'll reprocess it
-
repo owner You can decompile your program from the board, then drag-and-drop the library file onto the IDE and your selection menu will re-appear!
-
I found this problem only with libraries in the Longan Core directory, which I added to the source code and should not need to decompile it!
-
repo owner The Longan Core libraries are not part of the MicroBlocks stable release, which is what you get with the URL:
https://microblocks.fun/run/microblocks.html
However, from the screenshot (not the video) it appears that those libraries are part of the Chinese version of MicroBlocks. If so, then if you decompile a project (i.e. load from board) using that Chinese version then I believe the decompiler will load the library automatically and you'll get the choices menu.
-
Yes, this directory is part of the Chinese version of MicroBlocks, here is the link, can you open it there? You can load the ubl library in the Longan Core directory.
-
Hi John, in the Chinese version of the latest version of the test will not appear this problem, the version of the above domain update to the latest problem will be solved, thank you for your reply!
-
repo owner I am glad it is solved! :-)
- Log in to comment
After testing, I found that this problem occurs in this new directory that I defined, but not in other directories