User defined block results in wrong script - missing include <MeMCore.h>


#1

I installed mblock 3.3.16 and startup worked fine.
When I drag a mbot program block to the workspace and open the script window (by using
the option „upload to Arduino“) it shows a script including line 5:

5 # include <MeMCore.h>

see

After defining a new block a new „define“-Block appears in the block-oriented
workspace, parallel the described code line dissappears.

see

Sometimes I have to drag the two elements a bit around on the workspace to reproduce the
error.

Using the Arduino IDE and putting the code line back to the script is a workaround for
me but not for my 9 year old son ;(

Can you reproduce the situation? Thanks!


#2

I can confirm this behavior in 3.3.6 as well.

@tec_support, the code generator seems to have been broken in 3.3.6. Could you ask the developers to have a look at it as it breaks mBlock 3.3.6 functionality.


#3

fixed in 3.3.7.


#4

Yes, this issue is fixed in mBlock 3.3.7
Thanks for the answer @bigeyex


#5

Sorry, but this problem occurs with mblock 3.3.16 to me (see post #1;)


#6

Sorry. Sorry. Sorry. Got the wrong version in mind. Thanks for your quick answers, I will try to update!


#7

Installed version 3.3.7. Problem solved. Thanks!