Re: Backup feature creates two backups

2023-09-15 Thread Dan


> Do you happen to have a defaults file (~/.lyx/templates/defaults.lyx)
> which is in 2.3 format?
>
> If so, every new file is first created in 2.3 format, and then the
> backup is saved on conversion. I think.
>
Pfff... you are absolutely right.
I created the defaults.lyx with the distribution-packaged version of LyX 
(\lyx_format 544). It made sense all of a sudden. Output of "lyx -dbg info" 
filtered with grep confirming what you hinted

2898:Buffer.cpp (1378): Running 'python3 -tt 
"/home/minsan/Git/lyx/lib/lyx2lyx/lyx2lyx" -t 619 -o 
"/tmp/lyx_tmpdir.DKUPsgKSeKlM/Buffer_convertLyXFormatUCHSIM.lyx" 
"/home/minsan/.lyx/templates/defaults.lyx"'
2899:filetools.cpp (1089): Running: python3 -tt 
"/home/minsan/Git/lyx/lib/lyx2lyx/lyx2lyx" -t 619 -o 
"/tmp/lyx_tmpdir.DKUPsgKSeKlM/Buffer_convertLyXFormatUCHSIM.lyx" 
"/home/minsan/.lyx/templates/defaults.lyx"


Sorry for the fuss and dankeschön for your patiente.


Daniel.
--
Enviat amb Tutanota.
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Backup feature creates two backups

2023-09-15 Thread Jürgen Spitzmüller
Am Freitag, dem 15.09.2023 um 15:02 +0200 schrieb Dan:
> I am attaching the output of "lyx -dbg files" (should have done this
> to begin with, sorry), there you can see
>  1. An actual backup file created with name "newfile1-lyx23.lyx~".
>  2. The expected backup file (with "!" chars) created AFTERWARDS and
> used then on.
> 
> I have trimmed the output (loading of icons and so on).

Do you happen to have a defaults file (~/.lyx/templates/defaults.lyx)
which is in 2.3 format?

If so, every new file is first created in 2.3 format, and then the
backup is saved on conversion. I think.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Backup feature creates two backups

2023-09-15 Thread Dan


> Am Donnerstag, dem 14.09.2023 um 00:21 +0200 schrieb Dan:
>
>> Follow these steps to reproduce the behaviour
>>
>
> OK, I now closely followed your recipe, but I get only one file (after
> step 6) right with the correct name which is then overwritten
> thereafter.
>
I am attaching the output of "lyx -dbg files" (should have done this to begin 
with, sorry), there you can see
 1. An actual backup file created with name "newfile1-lyx23.lyx~".
 2. The expected backup file (with "!" chars) created AFTERWARDS and used then 
on.

I have trimmed the output (loading of icons and so on).

SYSTEM INFO
LinuxMint 21.2 (Victoria) with DE Cinnamon

LyX 2.4.0~RC1.devel (not released yet)
Git commit hash 8e7ae688
Configuration
Host type: x86_64-pc-linux-gnu
Special build flags: build=development warnings assertions stdlib-assertions 
callback-printing use-enchant
Bundled libraries: nod
C++ Compiler: g++ (11.4.0)
C++ Compiler flags: -Wall -Wextra -fPIC -g -O -std=c++17 -Wno-deprecated-copy
C++ Compiler user flags:
Linker flags: -rdynamic
Linker user flags:
Qt Frontend:
  Qt version: 5.15.3
Packaging: posix




Daniel.
--
Enviat amb Tutanota.
ConverterCache.cpp (61): Add file cache item 
/home/verboten/Git/lyx/lib/images/undo.svgz png 
/home/verboten/.lyx/cache/1432879843-png 1693497783 2847669085.
TempFile.cpp (35): Temporary file in 
/tmp/lyx_tmpdir.inDkPvFUNRKd/Buffer_convertLyXFormatXX.lyx
TempFile.cpp (37): Temporary file 
`/tmp/lyx_tmpdir.inDkPvFUNRKd/Buffer_convertLyXFormatigOePf.lyx' created.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (2613): Bibinfo cache was invalid.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
BufferParams.cpp (330): Checking whether document is in a system dir... no
FileName.cpp (628): Checksumming "/home/verboten/newfile1.lyx" 4091183537 
lasted 0 ms.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
FileName.cpp (628): Checksumming "/home/verboten/newfile1.lyx" 4091183537 
lasted 0 ms.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
FileName.cpp (628): Checksumming "/home/verboten/newfile1.lyx" 4091183537 
lasted 0 ms.
Buffer.cpp (5714): External modification but checksum unchanged: 
/home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): /home/verboten/newfile1.lyx
Buffer.cpp (5774): Popped. Stack now:
Buffer.cpp (5776): EMPTY!
Buffer.cpp (5126): Bibfiles unchanged.
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5803): Clearing include list for /home/verboten/newfile1.lyx
Buffer.cpp (5760): Pushed. Stack now:
Buffer.cpp (5765): 

Re: Backup feature creates two backups

2023-09-15 Thread Jürgen Spitzmüller
Am Donnerstag, dem 14.09.2023 um 00:21 +0200 schrieb Dan:
> Follow these steps to reproduce the behaviour

OK, I now closely followed your recipe, but I get only one file (after
step 6) right with the correct name which is then overwritten
thereafter.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Backup feature creates two backups

2023-09-14 Thread Jürgen Spitzmüller
Am Donnerstag, dem 14.09.2023 um 14:45 +0200 schrieb Dan:
> I have read the User's Guide section 2.2 again and I guess you are
> refering to subsection 2.2.4 (Backup Files from Old LyX Versions).

2.2.1, for that matter ("Backup Files")

> I am not opening a file from an older version of LyX, but a new one.
> So that extra file ("newfile1-lyx23.lyx~" in my case) should not be
> created, at least that's why I understood from the User's Guide.
> Even if it is intended, still, feels an undesired result of enabling
> backups.

OK, I probably need to try and reproduce the case.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Backup feature creates two backups

2023-09-14 Thread Dan



>
>
>> So, by enabling the backup feature we end up with an extra backup
>> file, which is absolutely useless and will never be deleted unless
>> done manually.
>>
>
> That's intentional. If you don't want it, you can switch it off.
> Sec. 2.2 of the User Guide explains the purpose of the different backup
> files.
>
I have read the User's Guide section 2.2 again and I guess you are refering to 
subsection 2.2.4 (Backup Files from Old LyX Versions).
I am not opening a file from an older version of LyX, but a new one. So that 
extra file ("newfile1-lyx23.lyx~" in my case) should not be created, at least 
that's why I understood from the User's Guide.
Even if it is intended, still, feels an undesired result of enabling backups.



Daniel.
--
Enviat amb Tutanota.
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Backup feature creates two backups

2023-09-13 Thread Jürgen Spitzmüller
Am Donnerstag, dem 14.09.2023 um 00:21 +0200 schrieb Dan:
> So, by enabling the backup feature we end up with an extra backup
> file, which is absolutely useless and will never be deleted unless
> done manually.

That's intentional. If you don't want it, you can switch it off.
Sec. 2.2 of the User Guide explains the purpose of the different backup
files.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel