Re: Strange xxx-lyxformat-474.lyx files
Thank you all for clarifications and suggestions! I suspected the files were connected to the new 2.2 version, It's better to ask before deleting files and discover doing something stupid too late. 2016-08-02 17:52 GMT+02:00 David L. Johnson : > On 08/02/2016 10:40 AM, Rich Shepard wrote: > > On Tue, 2 Aug 2016, David L. Johnson wrote: > > These are being created since the files were edited by the new version of > LyX you installed, which uses a newer format. LyX then auto-saves them in > the old format so that you can edit it, if you need to, with an older > version of LyX. This seems to be a reasonable thing to do at the start of > a new format, and will not occur when you edit files using LyX-2.2 that > are already in the new format. > > > David, > > Thanks for the clarification. I don't recall seeing these files when > previous versions (from 1.0 on) were upgraded. > > > It was certainly not the case with every change of format --- and was > probably added because someone got caught with a file they could not edit > after going to a new version of LyX, then backing out of the upgrade for > some reason. I am not sure whether this feature had been added earlier --- > I don't have such backups around except those created by lyx 2.2. > > > -- > > David L. Johnson > Department of Mathematics > Lehigh University > >
Re: Strange xxx-lyxformat-474.lyx files
Am Dienstag, 2. August 2016 um 11:52:31, schrieb David L. Johnson > On 08/02/2016 10:40 AM, Rich Shepard wrote: > > On Tue, 2 Aug 2016, David L. Johnson wrote: > > > >> These are being created since the files were edited by the new > >> version of > >> LyX you installed, which uses a newer format. LyX then auto-saves > >> them in > >> the old format so that you can edit it, if you need to, with an older > >> version of LyX. This seems to be a reasonable thing to do at the > >> start of > >> a new format, and will not occur when you edit files using LyX-2.2 that > >> are already in the new format. > > > > David, > > > > Thanks for the clarification. I don't recall seeing these files when > > previous versions (from 1.0 on) were upgraded. > > > > > It was certainly not the case with every change of format --- and was > probably added because someone got caught with a file they could not > edit after going to a new version of LyX, then backing out of the > upgrade for some reason. I am not sure whether this feature had been > added earlier --- I don't have such backups around except those created > by lyx 2.2. > File 'README' suggests to read 'NEWS'. File 'NEWS' suggests to read 'RELEASE-NOTES'. There it is described in the last paragraph. Kornel signature.asc Description: This is a digitally signed message part.
Re: Strange xxx-lyxformat-474.lyx files
On 08/02/2016 10:40 AM, Rich Shepard wrote: On Tue, 2 Aug 2016, David L. Johnson wrote: These are being created since the files were edited by the new version of LyX you installed, which uses a newer format. LyX then auto-saves them in the old format so that you can edit it, if you need to, with an older version of LyX. This seems to be a reasonable thing to do at the start of a new format, and will not occur when you edit files using LyX-2.2 that are already in the new format. David, Thanks for the clarification. I don't recall seeing these files when previous versions (from 1.0 on) were upgraded. It was certainly not the case with every change of format --- and was probably added because someone got caught with a file they could not edit after going to a new version of LyX, then backing out of the upgrade for some reason. I am not sure whether this feature had been added earlier --- I don't have such backups around except those created by lyx 2.2. -- David L. Johnson Department of Mathematics Lehigh University
Re: Strange xxx-lyxformat-474.lyx files
On Tue, 2 Aug 2016, Jürgen Spitzmüller wrote: Note that if you specify a backup directory in Tools > Preferences > Paths, these files will end up there instead of the working directory, which might disturb you less. Jürgen, I'm not disturbed, just assumed they were backup files and deleted them. No big deal. When I'm working on a project and prior verions need to be retained I create a subversion directory for them and commit changes when they're made. Thanks, Rich
Re: Strange xxx-lyxformat-474.lyx files
Am Dienstag, den 02.08.2016, 06:47 -0700 schrieb Rich Shepard: > On Tue, 2 Aug 2016, Påvel Nicklasson wrote: > > > I work on several projects in LyX. Lately I have noticed that in > the same > > folders as my .lyx files there is a second file called -lyxformat- > 474.lyx. > > For instance, if the regular file is called xxx.lyx. The second is > called > > xxx-lyxformat-474.lyx. The 474.lyx files seems to be old versions > of the > > regular files. > > I, too, have started to find these apparent backup files left in > the > document directory when I exit lyx. It would be nice for them to be > cleaned > up when the program exits, but I do it manually. Note that if you specify a backup directory in Tools > Preferences > Paths, these files will end up there instead of the working directory, which might disturb you less. Jürgen > > Rich signature.asc Description: This is a digitally signed message part
Re: Strange xxx-lyxformat-474.lyx files
On Tue, 2 Aug 2016 15:26:42 +0100 Dr Eberhard Lisse wrote: > find ~/ -name '*-lyxformat-*.lyx' -exec rm {] \; Danger Will Robinson! I personally would never run a one-liner that does deletions. My pencil has an eraser because I make mistakes. A mistake with such a one liner could do horrible things. I'd do something like this: find ~/ -name '*-lyxformat-*.lyx' > danger.sh ### Edit danger.sh, prepend each line with "rm " ### Completely check danger.sh . ./danger.sh My way is sort of like "What you see is what you get." The 1liner way is more like "You asked for it, you got it." Did I mention that I make mistakes. SteveT Steve Litt July 2016 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques
Re: Strange xxx-lyxformat-474.lyx files
On Tue, 2 Aug 2016, Richard Heck wrote: It's a new feature with 2.2. When you load files with a new major release, it has to be converted to the new format (which encodes various new features). We had some cases where people tried to load files with 2.1 and the file was for some reason corrupted. Of course, they had a backup. Or not. So now we do not over- write the original file, but just rename it. Richard, Works for me. When I upgrade I don't keep the older version installed. If I work on a file created with a previous version I save the current flavor and continue with that. I understand that others work differently so I appreciate you devs accommodating their needs. Regards, Rich
Re: Strange xxx-lyxformat-474.lyx files
On 08/02/2016 10:40 AM, Rich Shepard wrote: > On Tue, 2 Aug 2016, David L. Johnson wrote: > >> These are being created since the files were edited by the new >> version of >> LyX you installed, which uses a newer format. LyX then auto-saves >> them in >> the old format so that you can edit it, if you need to, with an older >> version of LyX. This seems to be a reasonable thing to do at the >> start of >> a new format, and will not occur when you edit files using LyX-2.2 that >> are already in the new format. > > David, > > Thanks for the clarification. I don't recall seeing these files when > previous versions (from 1.0 on) were upgraded. It's a new feature with 2.2. When you load files with a new major release, it has to be converted to the new format (which encodes various new features). We had some cases where people tried to load files with 2.1 and the file was for some reason corrupted. Of course, they had a backup. Or not. So now we do not over- write the original file, but just rename it. Richard
Re: Strange xxx-lyxformat-474.lyx files
On Tue, 2 Aug 2016, David L. Johnson wrote: These are being created since the files were edited by the new version of LyX you installed, which uses a newer format. LyX then auto-saves them in the old format so that you can edit it, if you need to, with an older version of LyX. This seems to be a reasonable thing to do at the start of a new format, and will not occur when you edit files using LyX-2.2 that are already in the new format. David, Thanks for the clarification. I don't recall seeing these files when previous versions (from 1.0 on) were upgraded. Regards, Rich
Re: Strange xxx-lyxformat-474.lyx files
find ~/ -name '*-lyxformat-*.lyx' -exec rm {] \; el On 2016-08-02 14:58, David L. Johnson wrote: > On 08/02/2016 09:47 AM, Rich Shepard wrote: >> On Tue, 2 Aug 2016, Påvel Nicklasson wrote: >> >>> I work on several projects in LyX. Lately I have noticed that in the >>> same >>> folders as my .lyx files there is a second file called >>> -lyxformat-474.lyx. >>> For instance, if the regular file is called xxx.lyx. The second is >>> called >>> xxx-lyxformat-474.lyx. The 474.lyx files seems to be old versions of the >>> regular files. >> >> I, too, have started to find these apparent backup files left in the >> document directory when I exit lyx. It would be nice for them to be >> cleaned >> up when the program exits, but I do it manually. >> > These are being created since the files were edited by the new version > of LyX you installed, which uses a newer format. LyX then auto-saves > them in the old format so that you can edit it, if you need to, with an > older version of LyX. This seems to be a reasonable thing to do at the > start of a new format, and will not occur when you edit files using > LyX-2.2 that are already in the new format. > > -- > > David L. Johnson > Department of Mathematics > Lehigh University >
Re: Strange xxx-lyxformat-474.lyx files
On 08/02/2016 09:47 AM, Rich Shepard wrote: On Tue, 2 Aug 2016, Påvel Nicklasson wrote: I work on several projects in LyX. Lately I have noticed that in the same folders as my .lyx files there is a second file called -lyxformat-474.lyx. For instance, if the regular file is called xxx.lyx. The second is called xxx-lyxformat-474.lyx. The 474.lyx files seems to be old versions of the regular files. I, too, have started to find these apparent backup files left in the document directory when I exit lyx. It would be nice for them to be cleaned up when the program exits, but I do it manually. These are being created since the files were edited by the new version of LyX you installed, which uses a newer format. LyX then auto-saves them in the old format so that you can edit it, if you need to, with an older version of LyX. This seems to be a reasonable thing to do at the start of a new format, and will not occur when you edit files using LyX-2.2 that are already in the new format. -- David L. Johnson Department of Mathematics Lehigh University
Re: Strange xxx-lyxformat-474.lyx files
On Tue, 2 Aug 2016, Påvel Nicklasson wrote: I work on several projects in LyX. Lately I have noticed that in the same folders as my .lyx files there is a second file called -lyxformat-474.lyx. For instance, if the regular file is called xxx.lyx. The second is called xxx-lyxformat-474.lyx. The 474.lyx files seems to be old versions of the regular files. I, too, have started to find these apparent backup files left in the document directory when I exit lyx. It would be nice for them to be cleaned up when the program exits, but I do it manually. Rich
Strange xxx-lyxformat-474.lyx files
I work on several projects in LyX. Lately I have noticed that in the same folders as my .lyx files there is a second file called -lyxformat-474.lyx. For instance, if the regular file is called xxx.lyx. The second is called xxx-lyxformat-474.lyx. The 474.lyx files seems to be old versions of the regular files. I have no idea how och when the 474 files were created, certainly not by me. The only major tampering I have done lately is upgrading to LyX 2.2. I am on *Buntu 16.04 with LyX stable ppa added. Does anyone know what he 474 files are, and if it is OK to delete them?