Mblock5 Beta v3.1 - Bug causes compile to fail with the mBot


#1

Mary Had A Little Lamb and LEDS.zip (18.0 KB)

We’ve tried using mBlock5 Beta 3.1 and have encountered an issue on first use. The software will just not compile. Debugging the code suggests that the IDE is inserting null statements into the code.

Open up the attached code in Beta v3.1 and try compiling it. It fails with no error message which is sad. The failure message also says, “compie error” which is misleading to a child. The error seems to pop up when using the block to make use of button on the mBot.

Can you please fix it and let us know when an update will be made available. We have purchase the product and would like to be able to use it with mBlock5 which is slight more user friendly than the previous version.

Is there a way to submit bugs? Can’t seem to find a way to do so other than this forum. Also, how do we get access to regular updates of the software? Any nightly build options available?

Cheers/Trevor


#2

Hi tangowhisky37,
It fails to compile, a possible reason maybe the software crashes, so rerunning the software will solve the compiling issue. Actually I can compile and upload to mBot but it does nothing after uploading. You may try below code:
image
Or please kindly let us know what is the performance you expect for the mBot.


#3

Hi there,

Apologies but when i try to compile the above code using the “upload to device” option the compile fails with the following error “compie error” (which i am assuming is compile error).

The software or mBlock IDE does not crash so a re-start of the mBlock IDE is not essential. It’s the compilation that fails when i use mBlock 5 Beta 3.1 on Windows 10. Are you using the same version?

I can see the arduino compiler failure message in the window below. So i am absolutely sure it’s the compiler failing due to a null line in the code. And how i know that it’s inserting a null line in the code…it’s because i copied the code to the Arduino/C tab and tried reading through/compiling there… :slight_smile:

Cheers/Trevor


#5

Did you get what i said about the error?

Your lack of acknowledgement of the issue tell me that you have not understood the issue in the first place.

If you would like me to explain the issue again let me know and I’ll try using different wording. For now mBlock 5 Beta 3.1 keeps failing and won’t compile.

Cheers,
Trevor


#6

Hi, Trevor,
Sincerely sorry for the misunderstanding.
Sometimes when I upload many times in a short period, the mBlock will crash.
I did test your code again, nothing wrong with it. I can upload to mBot with mBlock 5 directly.
When we copy the code (in Arduino C mode) to Arduino and save it as new file, you have to delete original words, like below:
image
Then we can compile.
If there is still misunderstanding, please kindly take a video of how the issue happened. Thank you!


#7

Hi Tangowhiskey, I’m having this same issue. Did you ever find a solution?


#8

Hey Moose… :slight_smile:

No it didn’t but I had to drop it and move on. We’ve been able to use mBlock 5 (on the PC) with other tutorials but not the one i mentioned on this thread.

Cheers,
Trevor


#9

One reason is the
wait until on board button pressed
This block does not compile - see my bug entry on that topic. mBlock support acknowledged it as a bug and promised a fix.


#10

Aah nice one mjbaynes!!!

Cheers,
Trevor