OpenRoberta / robertalab-ev3dev

roberta lab connector for ev3dev
Apache License 2.0
17 stars 14 forks source link

Indentation problems in the generated python code #39

Closed DJuego closed 7 years ago

DJuego commented 7 years ago

There are problems with indentation. For any unknown reason the programs are "corrupted"... It is very problematic. :-(

This sample has been generated from a bigger "corrupted" program. The "corruption" remains...

http://i.imgur.com/gfoMj5W.png

This code is generated:

http://i.imgur.com/EWNWNk6.png

I attach the XML file.

NEPOprog.zip

I am working with a open roberta server local (2.2.3).

ensonic commented 7 years ago

This is a blockly issue. If you move the function below the start block the generated code is correct. We've updated blockly in git and this will be fixed with the next release of the server.