GeneralMine / SenseBox-TestScript

A test script to test all functionalities of the SenseBox Edu Kit
0 stars 0 forks source link

xml file is broken and cannot be imported to blockly #1

Open GeneralMine opened 3 years ago

GeneralMine commented 3 years ago

Importing the xml file for further development doesn't work correctly, due to the faulty export of blockly.

Before exporting the program to xml:

Case0 Case1
image image

The xml file:

Case 0 Case0 (1) !! Case 1 (2)
image image image
This is correct This should be Case 1! This shouldn't be Case 1!

How to reproduce the problem

  1. Download the xml file of the script here https://github.com/GeneralMine/SenseBox-TestScript#Download
  2. Import the file to blockly: https://blockly.sensebox.de/ardublockly/?board=sensebox-mcu
  3. As you can see the code is broken. Rebuild my code as shown above or seen below in the complete code.
  4. export the code to xml
  5. close blockly or delete all
  6. import the xml file to blockly and then its broken again
  7. (open xml file in an editor and search for CASE)
GeneralMine commented 3 years ago

posted this issue in the sensebox forum: https://forum.sensebox.de/t/blockly-export-fehlerhaft-bei-switch-case/1310