Forum des utilisateurs de Blockly(s)

Blockly@rduino => HHEEELLLPPP !!! => Discussion démarrée par: uppermill le Mars 10, 2021, 08:14:10 PM

Titre: Custom Blocks
Posté par: uppermill le Mars 10, 2021, 08:14:10 PM
I am trying to create a new block, for the first time, using BlocklyArduino.

I can add the new category to the palette and the new block has the right colour and I can move it onto the canvas.

When I press the <Source> button I get the following error

TypeError: Cannot read property 'call' of undefined.

Can someone give me some guidance as to how I can narrow this error down?

Thanks for your help.

Allan
Titre: Re : Custom Blocks
Posté par: uppermill le Mars 11, 2021, 04:23:34 PM
I was able to open the Javascript Console using F8 and there was a tab to the console. The console showed a syntax error on a javascript file. I loaded the file into an online validator (one that ignored style) and identified a missing comma at the end of a line.

After I corrected the problem, everything worked as expected.

Allan
Titre: Re : Custom Blocks
Posté par: SebCanet le Mars 15, 2021, 03:28:18 PM
Hi,
I'm really sorry but all my documentation are outdated..no time to do this kind of work. But you can find information in French (and translate it) here: http://www.technologiescollege.fr/wiki/doku.php?id=fr:arduino:blockly_rduino:creerblocsmultiling (http://www.technologiescollege.fr/wiki/doku.php?id=fr:arduino:blockly_rduino:creerblocsmultiling)
And also in englis (but really deprecated...): http://www.technologiescollege.fr/wiki/doku.php?id=en:blockly_rduino:create_blocks (http://www.technologiescollege.fr/wiki/doku.php?id=en:blockly_rduino:create_blocks)

I hope this could help... And if you want to contribute, all help are welcome!  ;D