-
-
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
Synchronize file links issues when .bib is in the same directory as the PDFs #3626
Comments
Yeap, that was something we worked on quite recently. (see c93ae63) I guess the problem is that I can't link all files accordingly and the exception handling (maybe only the displayed message) is wrong. |
I see. So is there a way to fix the "Define PDF" issue, independent of the exception handling? |
Short version for @felker: The problem occurs because your bib file is in the same folder as the PDFs. If you (temporarily) move your bib file to a parent directory and set the PDF file directory in File > Database properties to the sub-directory, then the file link util should work as expected. Short version for developers: Long version: The reason for the problem is that some files are changed between the creation of the stream ( |
Thanks for the reply @tobiasdiez . This fixed both the Log errors and the Define PDF issue. However, I am not sure that the "Synchronize file links" or "Automatically set file links" abilities are working correctly. For example, I have an entry with bibtexkey 'AuerPaletou1994' and no linked file. There is matching file at
fails to add the link, and the result says "Finished synchronizing file links. Entries changed: 336" which is my entire library, but most do not end up file links. I am guessing that is due to "Check existing file links"? My relevant settings are:
In addition, I produced a new Log error (but unfortunately I did not record the steps that caused it)
|
Yes, this seems to be a bug with the "Check existing file links" option. You can safely uncheck this option or try out Quality > Automatically set file links. @JabRef/developers can we just remove the "Synchronize file links" action? To me this looks like auto-find together with a file existence checker. For the first part, there exists already a menu item and the second part of the feature is covered by the integrity check. |
👍 for removing the synchronize file links. Autostart file link Already covers all |
The dialog renders as follows: With "auto-find" you mean the following? The "integrity check" is something like that. koppor#282 ? Did anyone check what "Check links" is doing? --> I would move that functionality to a second dialog and not show it on Mac OS X (make it a Windows feature only). The following functionality is not in the check integrity thingy: I would say that we improve our check integrity so that only file-based things can be executed. Otherwise, it takes too long for a database... |
No "auto-link" refers the "Automatically set file links (F7)" option, which does exactly the same thing as the the first part of the sync-file links. Yes, there is no equivalent integrity check for the last dialog. But what is this dialog even asking?! I really don't understand it. |
"PDF" vs. mimetype pdf ( See #98 That means, instead of "PDF" "application/pdf" (or similar) should be used. But that was an idea of JabRef 1.x or 2.x. Maybe, this check should be dropped... Maybe we should work on the format of the file field and remove the mimetype as currently, everything works well with the file extension only. - Or do I miss something in the context of compressed files? |
Regarding the select files dialog, it will be reworked, see my wip pr |
@tobiasdiez is correct in what I was referring to as "auto-link". As indicated in #3629 , there seems to be a problem with "Automatically set file links (F7)", so I will wait to add the links to my database. |
DevCall decision: Remove "check links" at a separate PR. - Then, we know, which code it is and what it did. This could be a start for integrating the functionality in "check integrity". |
@tobiasdiez We should enable to have DevCall decision: Reimplement Files.walk, ... -- Maybe even imperatively (AKA "traditionally") to make the code more understandable. |
Repeating my comment in #3629 here in the hopes that it is useful for others: The "Automatically set files link" functionality seems to work well on macOS High Sierra with JabRef 3.8.2 and JDK build 1.8.0_162-b12. My current workflow for managing my BibTex database involves switching from JabRef 3.8.2 to "Automatically set file links", to JabRef 4.1 or 4.2 to add new entries via DOI since #2879 was never patched in 3.8.2. |
@tobiasdiez I have the same problem using Jabref v 4.3.1 in ubuntu 16.04. |
Synchronize File links was removed in favor of Automatically set file links in dev-5.0. |
Ok, but I would like to point out that "Automatically set file links" is also not working even with dev-5.0 on macOS. Besides, I feel like the "Automatically set file links" feature checks every file when I just want to add another file and link it (meaning that all the other files have already their links). But I could be mistaking since it crashes when I try this feature anyway. |
@PierreMarchand20 Could you please add some details on where it crashes and if you something in the log? |
Well, it just hangs, so there is no log to give unfortunately. I just open my database, take a random file where I delete the link. Then I click on Quality>Automatically set file links and it freezes |
Ok I tried with a new database with only one entry, and this time it does not hang (so that, I really feel like it is looking at all the files in my database where I just want to update the selected entry). But it actually does not find the file (and I checked the options and it should find it). |
This issue has been inactive for half a year. Since JabRef is constantly evolving this issue may not be relevant any longer and it will be closed in two weeks if no further activity occurs. As part of an effort to ensure that the JabRef team is focusing on important and valid issues, we would like to ask if you could update the issue if it still persists. This could be in the following form:
Thank you for your contribution! |
JabRef version 4.1 on Mac OS X 10.13.2 x86_64 with Java 1.8.0_151
I am a recent adopter of JabRef after I finally had enough with Mendeley, which had become completely incapable of opening my library. So, I exported what I could to
.bib
and arduously cleaned up the entries in JabRef.The final step in this process was to ensure that the database was in 1-1 correspondence with my
Published/
directory which contained all the PDFs. I was hoping to synchroize the majority of the files automatically, and fix the names of the remaining unliked PDFs with names not matching the JabRef entry BibTeX keys However, running the file link tools in JabRef has not worked for me. In addition to failing to link the eligible files in v 4.1, JabRef will open the "Undefined file type" prompt for file type "PDF" repeatedly, even after "Define PDF" is completed.Steps to reproduce:
Log File
Note, on the development version
JabRef_macos_4_2-dev--snapshot--2018-01-10--master--5cbeb2baa.dmg
, the Log File is simply:The text was updated successfully, but these errors were encountered: