-
-
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
"File directory" error on importing Springer entries #11075
Comments
I can reproduce on a clean JabRef install (by using Windows Sandbox) |
@subhramit You did not provide a screenshot. You tried to download something with an unsaved library. Thus, JabRef cannot know where to store PDF files. Please save your library first. I am not sure whether we should keep that issue. I think its a very, very low UI issue. Which user tries to work with JabRef having "unsaved" as library. -- Fixing this causes much work and we do have many other high-priority bugs (https://github.com/orgs/JabRef/projects/7) and high-priority features (https://github.com/orgs/JabRef/projects/6), where energy should spend. |
Are you referring to screenshot of each step? As I did provide one for the error dialog box that comes in the appendix. Let me know if I can add something further.
Yes, agreed. I only thought it should be an issue because it does not come up when working with other fetchers. |
@subhramit I meant, reproducing the issue was difficult. Which steps did you do before? Which library is opened etc. As you saw (hopefully), I could reproduce. No need for you to do additional things with that regard. What you could to is to update the string shown. Add "Please save the library." Then, you learn about localization in JabRef - https://devdocs.jabref.org/code-howtos/localization.html |
Nothing apart from the ones I mentioned. There was no precondition, it always occurred when I tried.
Will do. |
Your steps were incomplete. You started JabRef. And then directly Web Search?
Nice! 🤩 |
Oh, got it, my bad. Edited the steps. |
@subhramit Thank you. These were also my steps. My answer thus stays the same: We have many other bugs to fix. - Workaround for this bug: Save the library. I think, that will be done by most users during usage. @subhramit Updating the localization will help users. |
@koppor @calixtus @Siedlerchr It has also come to my notice that if there are 5 entries selected and we click on Import entries, the warning dialog will come up 5 times. Just once is sufficient. A. Should I create a new issue for this? B. Any direction on how I can fix this? |
@subhramit No. If you save your library, the issue is gone away (for that library) forever. (BTW, we do get notifications even without mentioning. Thus, use the mentions only whrn really needed) |
Alright. Will let it be then.
Oh, sorry. I didn't know. Will keep in mind from now. |
You know, Oliver, I was thinking - for someone who is not very well-versed with JabRef (and that might be especially true for pure science or arts researchers who might not be very well versed with computers), if they don't save the library and during their usage, import, say, 20 papers, they will have to either close the warning dialog 20 times before they can return to functionality, or close and re-open JabRef to continue from scratch again. Not a priority, I understand, but this might not be very user-friendly as well. |
Decision needed: Force users to save the library when creating a new one or handling the special case of unsaved libraries. @calixtus @Siedlerchr . Currently I lean towards the first one, because the latter option seems to more effort. |
Force saving |
Should we close this issue and create another for force saving? |
@subhramit No, because force saving as a solution to this issue. We typically track issues and not implementation decisions. |
Okay, so what's the plan about force saving - do we open the save pop-up window the moment a user clicks on "New library"? |
In case its easy at importing, we should do it there... Otherwise, it is a bad UX. Only force saving if file path of library is unknown |
Clarifying, so ideally we want to force saving at the time of creation of the library? And if that's difficult we do it during importing if file path of library is unknown? |
No. At the latest point required. See, this thing is broken since years and no one complained yet. Thus, we should keep the existing percieved UI flow. When the web search is called AND the path of the library is unknown, then the user should be asked to save the file. |
I was wondering why I had mentioned "Springer" specifically in the issue. I checked again - the issue is indeed only with springer. This is also some non-uniformity. |
That might also be one of the reasons why people did not complain. In the latest unreleased build, Springer search is working, before that it was not... So they never faced any dialog boxes, let alone multiple times. |
Did you start with a new and unsaved library ("untitled")? |
Yes. Double-checked. |
@subhramit I think, you did not follow your steps closely - or your steps are incomplete. I can reproduce with I bet you changed your preferences. The preference so that the issue occurs are following: Learning: The steps at "Steps to reproduce the behaviour" need to be complete and precise:
|
No Oliver, I did not change any preferences. With Springer, the dialog always comes up. My point was it does not come up in case of other search sources apart from Springer. That is what I meant to refer to as non uniform. Did you try something else, like Medline? The dialog won't come up then. Thank you for the corrections, I will make my steps more concrete. |
Refer to the following video: bandicam.2024-03-30.01-25-59-869.mp4 |
And that is what the issue title says! Maybe, I missed some important text.
Did any of the other fetchers download a PDF? Where was it stored? (arXiv could be a fetcher fetching PDFs) My guess: The other fetchers skip file downloading if no dir exists.
No. The issue title says Springer. -- It is good that you work on the refinement of the issue. It is good that work is spend here to make JabRef more newcomer friendly. In case I am right with my guess, one could just ignore dir non existence during download. Cheers, Oliver |
Yes, I think the confusion occurred because I started the issue referring to one thing (annoying dialog box), then the discussion led to "multiple popups of the dialog box", and then finally evolved to "issue is only with Springer - not uniform on all fetchers!" |
This is a good catch, let me see. |
Yes, you're right. Arxiv causes the same dialog popups. So it happens when pdfs are associated. |
JabRef version
5.12 (latest release)
Operating system
Windows
Details on version and operating system
Windows 11 23H2
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
You will see a dialog box with the following error (as attached in Appendix):
File directory is not set or does not exist!
The entries are imported nevertheless, so I guess it's mostly a false alarm that needs a fix.
Appendix
Log File
The text was updated successfully, but these errors were encountered: