What do you want to achieve?
Amend my ui_events.cpp and not loose its content !
What have you tried so far?
Worked with v1.34, now resets the file
Screenshot or video
Others
- SquareLine Studio version: 1.4
- Operating system:
- Target hardware:
Amend my ui_events.cpp and not loose its content !
Worked with v1.34, now resets the file
If you select âExport UI Filesâ from the menu it doesnât wipe/overwrite your functions in ui_events.cpp, just tried it. You probably pressed âCreate Template Projectâ instead, that really wipes/overwrites the whole file.
Thank you for your reply. However I was pretty sure I was using the âExport UIâ option when this happens.
I double-checked and here is a screen capture of the behaviour:
I can confirm my ui_events.cpp file is reset when exporting with âExport UIâ. Any idea or details to troubleshoot this ?
Bruno
Thanks for the video, Iâll forward this to the respective staff. I see in the video that you have an âsrcâ folder. Which board-template are you using for exporting? Is flat export enabled? They shouldnât have impact on this behaviour but this can be a starting point to check the main differences between my correct exports and your problematic export first, to help find the scenario that causes this.
Flat export is checked, and the board is a SC01
Anything else I can provide to help diagnose the problem ?
Maybe where this SC01_PLUS2 board is coming from, so we could test with the same board-template.
Here is the board definition used in this project:
The behaviour where ui_events.cpp is reset at each export is a big pain as I canât easily upload a fully working firmware when working on this project.
Thanks for the board-file. I could reproduce the issue even with other board-templates now, but it seems to happen only with flat-export turned on. Can you counter-test by unchecking the flat export and telling if it has any effect on the overwrite-behaviour at your side? Meanwhile I reported the issue to the responsive team.
Hi, I can confirm that disabling âflat exportâ preserves ui_events.cpp when exporting. This does look like a bug, then
Thanks for the investigation, I have a decent workaround now, switching âflat exportâ off, which I donât really need in fact.