microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
727 stars 638 forks source link

Disappearance of code created in MakeCode beta when using the share option #5070

Closed microbit-lucy closed 1 year ago

microbit-lucy commented 1 year ago

Describe the bug When sharing code from MakeCode beta some of the code was missing when the URL was opened.

To Reproduce Steps to reproduce the behavior:

  1. This is the code I was trying image

  2. I used 'share' to create a shareable URL image

  3. Note that the thumbnail never loads (this may be another bug?)

  4. Check the code in the URL shared: in this case https://makecode.microbit.org/_1bh5xqWwW1rf

  5. This code does not match the original - lots of code is missing, not just the beta features. The code is missing in the preview and in the 'edit code' whether you open it in live MakeCode or beta. image

Expected behavior The original code shared via the share link should be available when the shared URL is opened.

Screenshots Included above

Desktop (please complete the following information):

abchatra commented 1 year ago

This is using new beta features like record extension. If you import the project into /beta editor you should be able to see all the right blocks. Live doesn't understand the new extension and gives up half way. Try importing the same link into /beta and see if you can get back all the bugs.

We don't support beta version for share links.

abchatra commented 1 year ago

We have a separate tracking bug for 3 at https://github.com/microsoft/pxt-microbit/issues/4987

microbit-lucy commented 1 year ago

Great, thanks. I suspected that might be the case.