Matěj Cepl wrote: > Yes, this is not a minimal example, but I am hesitant to touch this > document from LyX 2.1 so that I wouldn’t accidentally fixed it. When > trying to open it with lyx-2.2.2-1.fc25.x86_64 I get this: > > matej@mitmanek: marketa$ lyx Ph.D.project-Brno1.lyx > Error: Document format failure > ---------------------------------------- > /tmp/lyx_tmpdir.CLmZrzV11492/Buffer_convertLyXFormatk11492.lyx is not a > readable LyX document. > matej@mitmanek: marketa$ > > Any ideas, what's wrong?
Your .lyx file starts with a byte order mark U+FEFF and lyx2lyx doesn't expect it. Use a binary editor to get rid of it. Alternatively, load it with lyx 2.2 and wait for the failure. Then edit the problematic converted file (it would be /tmp/lyx_tmpdir.CLmZrzV11492/Buffer_convertLyXFormatk11492.lyx in your previous attempt) with a text editor, delete the *second* line and save it with a new name. You should now be able to load it with lyx 2.2.