MakeCode will not process code

When coding in MakeCode and pressing the green process button, the button turns red and will not process the code.

Hello Wayne,

Can you share your project? Here are the steps to share a project in micro:bit, but it will be the same in our other editors as well: https://makecode.microbit.org/share

Hello Wayne,

You are not meant to use https://minecraft.makecode.com/ by itself. It should be used with the Minecraft Education application. The other targets have built-in simulators, but not Minecraft.

Once you get into a world in Minecraft Education Edition, press the c key to bring up the code builder. Select MakeCode, and the site should load on half your screen. Create a new project, and you’ll be dropped into the code editor:

From there, press play. The code window will minimize, but it is still running in the background. If we bring up the chat with t and type “run” (make sure to delete the “/” that my be there by default), our function will run and chickens will spawn:

1 Like

Thanks for your response. I am not new to this software. I know how to access it and know how it is to work. My problem is that MakeCode responds the same way in Minecraft in the screenshots I sent. We have white listed all the URLs and even do the access test for the URLs on the Microbit site. Still does not work. Any other recommendations?

I sent a reply to you last week about this issue. I have not received an answer to my problem. Please let me know if there is anything you can do to solve this issue.

Still have not seen a new post to my question. Any recommendations on the problem?"

Hello, sorry for the delay! Let’s see if we can get to the bottom of the issue. If the green process button turns red, then that means that it is processing the code. When I import your project into Minecraft Education Edition, I can run it. Because the code is in the on chat command block, nothing will happen until I type the actual chat command word.

If you want your code to jut run when you press the process button, then you should use the on start block in the loops category instead.



This will now spawn the ocelots as soon as the processing begins.

Try it out and let me know if that solves your issue! If it doesn’t, then we’ll need to dig further.

Thanks for the recommendation. I will try it but I do not think it will solve the basic problem. The MakeCode on my school PC as a teacher works correctly. However, the students have Surface PC that have more Internet restrictions. When they put block code into MakeCode, and they press the green button, the screen freezes with the red button. If they drop out of MakeCode and type the on chat word they used, the program does not run because the code has not processed. For now, I do not see how the on start addition will work if the code is not processed into Minecraft.

As I may have stated before, my IT person has white listed in all the URLs in the Minecraft advisory for MakeCode. It still did not solve the processing issue. Do you have the capability to access one of our student computers to see what is happening and find out what is happening? That might be helpful. I would appreciate continued help to see if this processing issue can be resolved. Thank you.

Wayne Anderson

Ah, okay. Is this the site with the list of domains?

On the student’s Surface PC, could you have them navigate to Reachable MakeCode domains? It will load a page that will try and hit various URLs used by MakeCode and will let you know if those URLs are reachable from said PC.Could you then reply to this thread with a screen shot of the results? Your results should hopefully look like the following:

Sincerely,
Hassan

I did find these URLs on the Microbit website. We did run them on a student’s PC. They all passed but I will do that test again and send you the results tomorrow.

Yes, the site link you have given is the tech bulletin we have looked at for the URLs for MakeCode. However, the link you provided only shows the page of the results, not the webpage that you can use to test the URLs. I have also shared the picture of the results with my IT person to see if all the URLs are white listed in the firewall. I will let you know if what you have given will work for us.

Wayne Anderson

One more question that my IT person is asking. He is not comfortable opening the Github URLs because of the type of access the students would have to other games and coding. What is the purpose of using any of theGibhub URLs? Can MakeCode still work without the Github URLs? Thanks.

Hello,

The second link does test if each of the domains in the list are reachable. If you opened the webpage from the student’s PC and see success in each every row, then it is likely not a domain access problem.

MakeCode uses GitHub to host official extensions, allow users to backup projects. The core functionality will be there if GitHub is blocked, but the aforementioned features will not work as intended.

After the screen freezes, can you still interact with the sight? Can you stop the simulator when that happens? When it happens, can you

  • press the settings cog, followed by About.
  • Take a screen shot of the about page so we can see what version you are running and post it here.
  • Click on the purple Experiments button, followed by Copy console logs. Then can you paste those console logs here as well?

This is all assuming the students PC can reach all the domain in the list first.

Sincerely,
Hassan

The MakeCode code still does not process. I have attached the picture of the version of MakeCode we are using. I do not understand where to find the Experiments button you refer to. I also send you the firewall policy we set up with all the URLs we are aware of. I will await your response.

Wayne Anderson

(Attachment MakeCode Policy for Firewall.pdf is missing)

(attachments)

Thanks for the response! It appears the Firewall.pdf file did not upload. If that continues to be the case, please email the file to makecode@microsoft.com.

Looking at your screenshot I can see that we are using the same version, which is good to know. As for the Experiments button, it is the purple one on your screen shot next to the green OK. If you press it, another screen will appear with the Copy console logs tile. Make sure you copy the console logs after you press the green start button and it fails to run.


Sincerely,
Hassan

I have sent two files to you thru Makecode@microsoft.com, the Firewall settings and Console Log. Please review these files and see if you can find a solution. The MakeCode still stops went processing the code and the green arrow turns red.

Wayne Anderson

Here is the information you requested. Please let me know if there is a solution.

URL White List

Category Category IDDomain Notes