pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

Errors loading the Beta editor

Open microbit-carlos opened this issue 1 year ago • 5 comments

Describe the bug

The beta editor seems to work in an incognito window, but in some existing sessions it shows errors to multiple different people.

Some of the issues found with different browser sessions:

Carlos' computer Chrome

Trying to load an existing project from the front page: https://makecode.microbit.org/beta image

Trying to load the beta editor: https://makecode.microbit.org/beta#editor image Same browser with the debug flag: https://makecode.microbit.org/beta?dbg=1#editor image

Carlos' computer Edge

On the same computer with a different browser (which had used makecode and makecode beta before): image

Jonny's computer Chrome

The experimental feature enabled was the accessible blocks image

Katie's computer Chrome

Also accessible blocks experimental feature enabled.

image

microbit-carlos avatar Mar 06 '24 16:03 microbit-carlos

@microbit-katie has found that disabling the accessible blocks experimental feature resolved the issue, so it looks like that might be the culprit.

I've tried this as well and it has fixed the session I had in Edge browser, but not the one I had in Chrome.

One problem though, after disabling the accessible blocks experiment the beta editor deletes all the blocks from your opened project and it saves it, essentially permanently deleting the user code.

microbit-carlos avatar Mar 06 '24 16:03 microbit-carlos

While disabling the accessible blocks feature resolves the problem when the blocky toolbox and workspace don't load, the issue I still have where projects cannot be loaded at all, still persist.

I can leave this session as it is for the time being in case there is any diagnostic you'd like me to run (the ?dbg=1 flag doesn't seem to do anything). In this state all projects are inaccessible, but I can create new ones that work.

image image

microbit-carlos avatar Mar 06 '24 17:03 microbit-carlos

@riknoll blockly issue?

abchatra avatar Mar 06 '24 19:03 abchatra

I've fixed the keyboard nav bug, just haven't bumped it to beta yet!

I'll look into the other bug...

riknoll avatar Mar 06 '24 22:03 riknoll

the keyboard fix is now in beta @microbit-carlos

riknoll avatar Mar 07 '24 00:03 riknoll

Were you able to look into the other issue @riknoll ? I still have the beta session with broken projects, in case it's useful for debugging.

microbit-carlos avatar Mar 18 '24 16:03 microbit-carlos

@microbit-carlos oh, no i wasn't able to repro this after fixing the keyboard nav so i assumed it was fixed. is this only an issue with projects you opened while the keyboard nav bug was still there? it's possible that the exceptions caused the project to save in a corrupted state.

riknoll avatar Mar 19 '24 16:03 riknoll

Not quite, as it's not only with projects I tried to open with the keyboard nav experiment, but I believe with all existing projects that existed at the time, even the ones I didn't attempt to open.

microbit-carlos avatar Mar 19 '24 17:03 microbit-carlos

alright then, can you give me an updated screenshot of your console log?

riknoll avatar Mar 19 '24 17:03 riknoll

image

And trying top open the project in a new tab:

image

microbit-carlos avatar Mar 19 '24 18:03 microbit-carlos

Original issue is fixed.

abchatra avatar Jul 17 '24 22:07 abchatra