Hello,
I’m working with the latest ForeUI using FreeBSD OS and OpenJDK Runtime Environment (build 1.8.0_152-b16)
OpenJDK 64-Bit Server VM (build 25.152-b16, mixed mode).
I seemed to have found a way to corrupt the 4ui file while saving it. The trick to do this is by selecting the ‘Outline’ tab on the left hand side, dragging numerous elements into a group — this was taking over a minute. While wating for the transfer, I saved the file and quit the program. When I restarted, about 50 elements were missing.
I see that backup files are created while I’m working. Is there a way to retrieve these files?
The following is a request…
I would also like to see the *.4ui project format in xml or JSON format for version control. It appears that if a single item gets corrupt I LOST the file forever. I’ve lost a lot of time due to file corruption.
1 answer
Hello, if you see the a file in the same directory, with “_autosaved.4ui” postfix on its name, then it is the backup file for your plot. You can open it and take a look, if it contains the latest content and you want to keep it, you can save this file as a normal plot file, or even overwrite the original plot file.
Usually dragging elements in the Outline view shouldn’t take that long. However if the plot content is not settle while saving, the data could be corrupt. We will look into this.
Actually .4ui file is a ZIP file. If you unzip it, you can see its main data is stored in an XML file. If you want to put the entire .4ui file into version control, you can find an example on this post: http://www.foreui.com/uncategorized/foreui-v3-0-official-released/, by doing so the .4ui file will be submitted to SVN automatically after you saved the file. It is not an ideal solution, but it indeed keeps every revision and make sure you have something to recover.
About the XML for version control, we appreciate your suggestion, and we are considering to allow ForeUI to read plot data from a directory, that way the XML file inside will be easier to be managed with version control system.