Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"create backup file while saving" option is non-functional. #6092

Closed
buhtz opened this issue Mar 10, 2020 · 9 comments · Fixed by #6226
Closed

"create backup file while saving" option is non-functional. #6092

buhtz opened this issue Mar 10, 2020 · 9 comments · Fixed by #6226

Comments

@buhtz
Copy link

buhtz commented Mar 10, 2020

JabRef 5.1--2020-03-10--d5ee20b
Windows 10 10.0 amd64
Java 13.0.2

In the settings I deactivated the "create backup file while saving" option.
I also deleted the *.sav file from the filesystem.

But the savfile is still created when starting JabRef.
When closing JabRef it is gone.

EDIT: The behaviour is not always reproducable. But please see the attached video which contains different behaviours.

6092.zip

Makes no sense for me.

@buhtz buhtz changed the title Backup found Backup found - and created while starting JabRef Mar 10, 2020
@buhtz
Copy link
Author

buhtz commented Mar 13, 2020

The problem is still reproducable with the current dev - also with the release version. I can not understand why there was a release in the last days but JabRef is still unstable.

@stefan-kolb stefan-kolb added the bug Confirmed bugs or reports that are very likely to be bugs label Mar 13, 2020
@stefan-kolb stefan-kolb added this to the v5.1 milestone Mar 13, 2020
@koppor
Copy link
Member

koppor commented Mar 13, 2020

The option "create backup file while saving" is for the .bak file, not for the .sav file. - Because of the while saving.

The issue is that the setting is without implementation. See

Files.copy(targetFile, backupFile, StandardCopyOption.REPLACE_EXISTING);
.

Options:

  1. Remove setting from the GUI.
  2. Remove creation of .bak while saving - accepting that the user cannot go back one revision manually.
  3. Implement code to respect setting.

@koppor koppor changed the title Backup found - and created while starting JabRef "create backup file while saving" option is non-functional. Mar 13, 2020
@buhtz
Copy link
Author

buhtz commented Mar 14, 2020

What is the difference between bak and sav file?

@koppor
Copy link
Member

koppor commented Mar 14, 2020 via email

@stefan-kolb
Copy link
Member

The option "create backup file while saving" is for the .bak file, not for the .sav file. - Because of the while saving.

The issue is that the setting is without implementation. See

Files.copy(targetFile, backupFile, StandardCopyOption.REPLACE_EXISTING);

.
Options:

  1. Remove setting from the GUI.
  2. Remove creation of .bak while saving - accepting that the user cannot go back one revision manually.
  3. Implement code to respect setting.

I guess we can remove that option from the UI/preferences. @JabRef/developers WDYT? Consens or dev call?

@Siedlerchr
Copy link
Member

I'm voting for remove

@calixtus
Copy link
Member

If it's of no use, remove it.
There are probably some more things that could be removed from the preferences: Like the special option to select the sumatra pdf reader. This should work with the application binding in the external file types manager dialog...

@koppor
Copy link
Member

koppor commented Mar 31, 2020

Decision: Remove option, but keep functionality.

@koppor koppor added type: documentation type: enhancement preferences and removed bug Confirmed bugs or reports that are very likely to be bugs status: devcall labels Mar 31, 2020
@koppor
Copy link
Member

koppor commented Mar 31, 2020

We documented both features at https://docs.jabref.org/general/autosave and https://docs.jabref.org/general/backup. I am merging both documentation into one - and remove the configuration option so that JabRef always creates .sav and .bak.

koppor pushed a commit that referenced this issue Jul 1, 2022
3d3573c Update centre-de-recherche-sur-les-civilisations-de-l-asie-orientale.csl (#5988)
5de0fbe Update society-of-biblical-literature-fullnote-bibliography.csl (#5913)
04b6c7a Create revue-internationale-durbanisme.csl (#5974)
4a5bfe2 Update biological-reviews.csl (#6116)
957b2bc Update harvard-cite-them-right-no-et-al.csl (#6115)
e836a6c Update harvard-university-of-bath.csl (#6011)
b4a8dd7 Update and rename harvard-cite-them-right.csl to harvard-cite-them-ri… (#6113)
a198884 Update twentieth-century-music.csl (#6110)
81c1619 Update archaeonautica.csl (#5928)
fc46f1d Bump actions/cache from 2 to 3 (#6112)
fab57ed Bump actions/checkout from 2 to 3 (#6111)
519d594 [don't merge] chore: Included githubactions in the dependabot config (#6109)
a8aa898 Update universidade-estadual-de-alagoas-uneal-abnt.csl (#5915)
6191640 Update isnad-dipnotlu.csl (#5909)
d65a6ac Update isnad-metinici.csl (#5910)
830d337 Update technische-universitat-dresden-linguistik.csl (#6097)
81adc43 Update american-society-for-horticultural-science.csl (#6089)
b767623 Create south-african-law-journal.csl (#6092)
215e1e9 Create journal-of-lithic-studies.csl (#6080)
0740f8c Create eunomia-revista-en-cultura-de-la-legalidad.csl (#6095)
f93c809 Create endocrine-journal.csl (#6086)
3fdeb51 Revert "chore: Set permissions for GitHub actions (#6096)" (#6108)
35ebd1e chore: Set permissions for GitHub actions (#6096)
1cb8758 Create journal-fur-medienlinguistik (#6100)
f4b5f7f Update unified-style-sheet-for-linguistics.csl (#6098)
c3f856a Update advanced-materials.csl (#6103)
d1e7576 Bump diffy from 3.4.0 to 3.4.2 (#6107)
9e5e7ab Fix Dev Dynamics (#6099)
7234520 Add CSL style for the journal Developmental Dynamics (#6093)
ba8db05 Create independent style for vox-sanguinis.csl (#6085)
845dee0 Create meta.csl (#6088)
684bc3a Update universite-du-quebec-a-montreal.csl (#6087)
3602c18 Up-date & re-title pour-reussir/dionne (#6043)
0cc6e82 Fix Mainz Geography
cfc4cec Add DOI and fix printing author names in Population and Économie et statistique (#6079)
14e8b1d Update journal-of-neuroimaging.csl (#6084)
2c0e1f1 Update isnad-dipnotlu.csl (#6081)
02fdb9b Merge pull request #6082 from denismaier/patch-ube-muwi-note
9309378 removes default-locale

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: 3d3573c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants