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

Saving creates new database file instead of overwriting the old one #2633

Closed
TLCFEM opened this Issue Mar 12, 2017 · 8 comments

Comments

Projects
None yet
5 participants
@TLCFEM

TLCFEM commented Mar 12, 2017

It seems that the new version 3.8.2 changes the saving manner. The old versions just overwrite the original file. I guess the new version rename the orginal file to the backup file and write a new database file.

This causes trouble for me (maybe also for others). I use hard links to point to the same database file in different folders so that the database can be updated automatically.

Currently the orginal file is either deleted or renamed. Hence the link is broken.

Will the developers consider to change it back to original saving manner?

@koppor

This comment has been minimized.

Member

koppor commented Mar 13, 2017

Refs #2635

@koppor koppor added the linux label Mar 13, 2017

@TLCFEM

This comment has been minimized.

TLCFEM commented Mar 13, 2017

I'd like to kindly comment that I am using Windows 7 so...

@koppor koppor removed the linux label Mar 13, 2017

@stefan-kolb stefan-kolb changed the title from 3.8.2 SAVING ISSUES to Saving creates new database file instead of overwriting the old one Mar 13, 2017

@stefan-kolb

This comment has been minimized.

Member

stefan-kolb commented Sep 14, 2017

@JabRef/developers Is this still valid for 4.0? Will we change this?

@TLCFEM

This comment has been minimized.

TLCFEM commented Sep 14, 2017

As far as I can tell, in 4.0 beta 3 the problem still exist..

@koppor

This comment has been minimized.

Member

koppor commented Sep 14, 2017

@TLCFEM You say, that 3.8.1 worked correctly or some other earlier version?

@LinusDietz LinusDietz added the devcall label Sep 14, 2017

@TLCFEM

This comment has been minimized.

TLCFEM commented Sep 14, 2017

It has been a long time and I cannot remember exactly. So far I can tell that version 3.6 works properly so the modification was carried out somewhere between version 3.6 and 3.8.2. And I am sure that there is no fix since 3.8.2. I know little about Java so I cannot examine the codes and locate the problem. Sorry for little information provided.

@tobiasdiez

This comment has been minimized.

Member

tobiasdiez commented Sep 15, 2017

So your final aim is to include one bib file in many tex documents without having to copy the file over and over again? For this, TeX actually provides a neat mechanism: you can put your bib file in a central folder (or register the current location within your TeX distribution), where every TeX document find it. See for example the following answer to a similar question.

@koppor koppor added beginner linux and removed devcall labels Sep 18, 2017

@koppor

This comment has been minimized.

Member

koppor commented Sep 18, 2017

Solution for a potential developer: Check our file mode when writing. It should truncate + append, not delete and recreate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment