RealRaven2000/SmartTemplates

4.0b2 - saving template menus saves badly formatted file

Closed this issue · 2 comments

When modifying the list of templates, the smartTemplates.json file is saved with a bad format.

image

This is a regression caused by changes from the deprecated OS.File.writeAtomic to IOUtils - I wanted to save a prettyfied json file like before and used writeJSON but that needs the object as parameter (and not a JSON string) . This leads to a bad json file that cannot be read anymore

quick fix version - using writeUTF8 instead - install over the previous versions (4.0b1 or 4.0b2) and prereleases to avoid losing the templates list!

smartTemplate-fx-4.0pre273.zip

Fixed in 4.0b3; published on 17/02/2023