eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
601 stars 99 forks source link

[LVGL] Code generation error in screens.c when assigning variable to Roller. #551

Closed tobinieil04 closed 1 month ago

tobinieil04 commented 1 month ago

Describe the bug A code generation bug occurs in EEZ Studio when using LVGL v9.x. The bug appears when trying to assign a variable to the options property of an lvgl_roller object. The issue manifests in the generated screens.c file within the src/ui directory after building the project. Despite updating EEZ Studio to version 16.1, the bug persists.*

To Reproduce Steps to reproduce the behavior:

  1. Create new LVGL project in EEZ Studio 16.1 (latest).
  2. Add Roller object to main page.
  3. Create a global string variable and assign to roller options in properties.
  4. Hit build.
  5. Check generated screens.c file in output src/ui directory.

Expected behavior The generated screens.c file should correctly reflect the assignment of the variable to the options property of the lvgl_roller object, with no errors.

Actual Behavior:

Screenshots With variable on roller object: image

Without variable on roller object: image

Desktop

LVGL version (if used)

Additional context I am available to provide additional details

mvladic commented 1 month ago

Fixed.