The legacy backup and restore plugin loads normally in FH7 under Linux Mint/WINE, but when starting the actual backup, stops with the following error message:
Code: Select all
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:655: COM exception:(d:\my\lua\luacom-master\src\library\tluacom.cpp,382):
stack traceback:
[C]: in metamethod '__index'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:655: in upvalue 'attributes'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:673: in local 'getFileList'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:685: in field 'GetFolderContents'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:4766: in upvalue 'intCopyFiles'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:5756: in function <[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:5719>
(...tail calls...)
[C]: in function 'iuplua.MainLoop'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:2696: in field 'ShowDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:6154: in function 'GUI_MainDialogue'
[string "C:\ProgramData\Calico Pie\Family Historian\Pl..."]:6185: in main chunk
I strongly suspect that the FileSystemObject used to manage files and folders is the culprit. Unix-derived file systems (Mac OS, Linux, etc) have never been bound by the historic 8.3 limitation of 16-bit DOS, so file attributes do not support SHORTNAME, SHORTPATH, or TYPE, which are all Windows-only concepts. This causes issues for emulators (exactly the type of scenario that the proposed KB page is designed to alert to).
fhFileUtils() has exactly the same issue, but the next release of FH should include an updated library with support for these ancient features removed. This only fixes FH7, so if the plugin requires using FileSystemObject directly to support Unicode file paths in legacy versions of FH, the plugin author has to manage the issue directly.
It should be a simple hypothesis to test. Are there any other Store plugins that use FSO to get the attributes of existing files? They may display similar behavior.