@lukasmaximus @m5stack @ajb2k3 @admin
Critical bug with the word "global" at python code transformation from UIFlow 1.6.2
... i agree with you, there is a critical bug in UIFlow 1.6.2.
E.g. using the word "global" causes the python code transformation to replace the following text with all defined variables. Or defining a function with parameters causes a global definition in this function with the given paramater (look at my short test_global-program):
with variables: value, var01
var01 is set to "Bug with text global"
In function "dosomething" with given parameter "value" i placed an Execute-code block with following content:
# Test function for global error
# look for global error
# look for Global error
when switching to </>Python - page you can see that UIFlow made incorrect code transformation:
This code cann not run because:
Line 17: the identifier "value" is redifined as global
Line 27: the text after the word "global" is replaced by "var01, value" and the closing quotation mark is missing
As you can see, each time the word "global" appears, the following text is replaced by all defined variables (see lines 18, 19 and 27).
In line 20, the word "global" begins with a capital letter which doesn't lead to mistakes in code transformation.
With UIFlow 1.6.1 desktop version this problem does not exist!