there seems to be a problem with importing unlinked local files in bulk.
JabRef 5.4–2021-12-20–ab44182
Linux 5.11.0-44-generic amd64
Java 16.0.2
JavaFX 17.0.1+1
If I want to import a lot of unlinked local files, I open the search for unlinked local files dialog, select the directory and click search. It then tells me there are 760 Documents (I select all). After clicking on ‘Import’ it imports a few files while the loading bar fills up and it reports (in the Import Results) that all files have been imported. BUT the group I imported them into has only grown by 19 documents instead of 760…
If I now click on search again in the still open search for unlinked local files dialog, it reports that there are still 741 Files left for importing…
Did anyone else encounter this bug? It really annoys me because i have to import ~80.000 Documents from ~100-150 directories… it is just frustrating
I’ve done some digging in the code with a debugger:
I tried importing 125 files
the call of importFilesInBackground() in ImportHandler returns an array of 125(126) items while Jabref shows just 80 new entries
after some further digging I believe it may be a concurrency issue
If by any chance, the files are named after a common scheme AND you do have the corresponding entries in your library, you could try to cut down the workload by using regular expression search and autolink files.
I solved that Problem prelimary by generating the bib file my self (iterating through the filesystem and creating dummy entries with just the file location, the group and the name of the file using a bash script)
As long as the full text search still works it’s acceptable. It is not optimal though