-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
JabRef breaks hard links to .bib files #7718
Comments
This is correct in so far that JabRef writes all content to a temporary file first and then replaces the existing file in an atomic move where possible. |
And would it be conceivable to do it some other way (naive question)? |
This somehow refs #6694 There is a lengthy discussion. May I ask why you need a hard link? Why don't you edit the file directly in the repo? |
The main An easy workaround (that is sufficient for my projects) is to create copies instead of links, and to renew them from time to time. But in general it doesn't seem very satisfactory. |
I have been frustrated for years about this. My workaround is now simplistic: I store my core library at a specific place X. And in the bibtex file I reference that file F with its complete path. |
But this wouldn't solve my git problem, would it? (See that comment.) |
+1 --- I just stumbled on this issue. Like @sparusaurata, I also keep my bib file in a central location and link to it within individual latex projects. Normally, I use a symbolic link, but this time I have created a hard link instead because I am using Overleaf's own git repository for syncing. So neither a symbolic link, nor using a full path (as suggested by @ilippert) would work. I was excited about trying out this different setup because it would make it less painful to use JabRef with Overleaf projects, which now are the norm. (Right now when you want to edit a bib file stored in an Overleaf project you need to download it from Overleaf, edit it with JabRef, and then reupload it.) |
This is a hard one. We need to rethink of our writing. We were pointed to different implementation approaches at #8750 (comment). @glciampaglia Does VisualStudio Code properly handle hard links? |
@koppor I am not sure since I am not a VSCode user myself. I am afraid I don't have technical skills to be very much of help here, but can only say that solving this issue would definitely make it possible to keep a centralized DB shared across multiple versioned projects, as @sparusaurata mentioned. |
For implementation:
|
I use JabRef version 5.2 on Linux Mint 20.1.
When I open a
.bib
file and modify it with JabRef, its inode number is modified and the hard links are broken. An example:The text was updated successfully, but these errors were encountered: