ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
166 stars 35 forks source link

Code Generation Failed #157

Closed fpan-UST closed 3 years ago

fpan-UST commented 3 years ago

The issue: After adding widgets like sliders, toggles or listboxes, the builder will fail to generate C code. Error message: "Code Generation Failed: builder.codegen.CodeGenException: Missing template: " Platform: Windows 10 Target platform: Raspberry Pi Builder version: 0.16.b005 JDK version: 15

fpan-UST commented 3 years ago

Actually I figured it out myself. The segment for code generation was missing in the templates/linux.t file. Just put the following: <SEEKBAR_CB_CASE> case $<COM-002>: // Fetch the slider position nVal = gslc_ElemXSeekbarGetPos(pGui,$<COM-019>); break; <STOP>

into linux.t and the builder will generate the C code with no further issue. I'm closing this issue now.

It will be nice if you could still fix the template file mentioned above. Thanks.

Pconti31 commented 3 years ago

fixed in release 0.16.b010