ImpulseAdventure / GUIslice-Builder

Cross-platform drag & drop GUI builder for GUIslice
Other
171 stars 36 forks source link

Builder: Missing template: <FONT_INCLUDE> #24

Closed mrbloozman closed 5 years ago

mrbloozman commented 5 years ago

I just tried builder 0.13 (linux version), upon code generation I receive an error message: builder.codegen.CodeGenException: Missing template:

GUIsliceBuilder/templates only contains c.t and ino.t along with the font spreadsheets, is there supposed to be more?

ImpulseAdventure commented 5 years ago

Thank you @mrbloozman for noting this! I have recreated the same issue in my LINUX VM. I believe the issue is just a missing section in an internal LINUX template resource (linux.t); I'll let @Pconti31 take a look at it in more detail. thx

Pconti31 commented 5 years ago

The FONT_INCLUDE template isn't used when you target linux platform. This template is only used by arduino. The code was incorrectly trying to open FONT_INCLUDE before testing for linux. Fixed in 0.13.0.1 which is available in the GUIslice-Builder-source repository releases. Calvin will update the GUIslice API releases as soon as possible.

Paul--

mrbloozman commented 5 years ago

Thanks @ImpulseAdventure and @Pconti31 for looking into this. I've installed 0.13.0.1 and tried generating code again. Now I'm getting a fatal crash (see attached log).

20190819_215256.txt

Let me know if I can provide more information.

Pconti31 commented 5 years ago

Thanks for your report. However, to hunt down the problem I need a zip file of your project folder. It contains the *.prj file we are trying to generate code for. Without it I have no idea what is doing on. Thanks.

Paul--

mrbloozman commented 5 years ago

Ah, that's a good hint. I found an older c file that was generated by a prior version of the builder, which I removed, then regenerated a fresh c file with no issues. Thanks for these very useful tools.

ImpulseAdventure commented 5 years ago

Thank you @mrbloozman for the followup. For future reference, Paul had identified the issue with the Builder's import of older Builder-generated projects; this should now be fixed in the Builder hotfix release 0.13.0.2.