-
-
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
PDF indexing should be paused when adding a file via drag and drop #8182
Comments
I think pausing the indexing does not solve this problem. The indexer is triggered by the change in the list of linked files. The file will be added to the indexing queue when the list changes. If the indexer is paused during the drop, the task will still be added to the queue. After unpausing, the indexer would try to index the file at the old location, because that's what was added to the queue. IMO it would be better to add the file-link only after the file was moved and renamed, is that possible? |
Note: I am experiencing different behavior when testing this. For me, the indexer starts after moving the file, but before renaming it. |
I am on Windows with a strong file locking build-in. 😅 |
Does not work :( Instead of pausing the indexer, we avoid the addition of the new pdf to the indexing task list by blocking new tasks during the drag&drop operation. Once the drop happened, we create a new task to index the entry that the pdf was dropped on. |
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
Windows 10
Checked with the latest development build
Steps to reproduce the behaviour
c:\temp
Expected behavior:
File is moved and renamed
Current behavior:
At first attempt, an IOException is risen:
Then, the user can detach the file from the entry and try again. Then, it works.
Solution propsal
Stop PDF indexing during drop handling. Start indexing again after drop (includes file move!!) is finished
The text was updated successfully, but these errors were encountered: