Arduboy-Python-Utilities icon indicating copy to clipboard operation
Arduboy-Python-Utilities copied to clipboard

Update to 1.15 in fxdata-build breaks strings

Open randomouscrap98 opened this issue 2 years ago • 0 comments

If you look at the changes included in https://github.com/MrBlinky/Arduboy-Python-Utilities/commit/a5076ae7c51a22cf44ea640c806a61d9ca17b3c8#diff-0557ece742af41a042a5fd073627b0553b7f2f95dff69ca769fb6e25f6e19e05L217, you'll see that you changed strings from using double quotes exclusively to using single quotes exclusively. I'm not sure what the reason for the change was, but this breaks your "helloWorld" example, since it has a string with double quotes. The system does not read the string as a whole part, but instead reads just the "Hello portion as one string, which then leaves World! to be interpreted as a label (which it of course isn't). Furthermore, the regex as is wouldn't allow for, say, a double quoted string to have double quotes escaped within it, as it would be broken up into multiple string parts.

Edit: actually at this point, I'm not quite sure what that line is supposed to do... I'm going to mess around and see. But point is, I can't get the fxdata-build.py script to work on the ArduboyFX "helloWorld" example

randomouscrap98 avatar Dec 07 '23 03:12 randomouscrap98