-
-
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
Empty entry in JabRef leads to Error when compiling in LaTeX #8096
Comments
I use biblatex and biber for compilation. |
Hello, is this issue open to be assigned to someone? If yes, can I work on this issue? |
@neha-b2001 This issue is free to take! Make sure to follow our contribution guide |
There are more than one ways how to deal with this! There is an interesting discussion in #7057 that deals with a similar problem, that is the deletion of an entry in regards to crossref. e.g.: #7057 (comment) In addition to the solutions i mentioned in my first post, i became aware of solutions that involve:
|
Uh i just noticed that automatic deletion of empty entry upon saving might collide with the automatic saving option (this option is not automatically on, but can be enabled under preferences). It might lead to a situation where you want to create an empty entry, then edit that entry, but because automatic saving triggers, the empty entry gets deleted before you can enter data. |
Oh okay 👍 |
I would argue that "Cleanup actions" might be shown to the user (for instance when they close jabref), the cleanup tasks would be shown, and the user given the chance to intervene, otherwise, the tasks would be completed after waiting for 5 secs. |
Hi, I am a cs student, can I work on this issue? thanks very much |
Thank you. Yes, indeed. Please take into account that there are circumstances where it is WANTED to create an empty entry and then to edit that entry. It can't just get deleted instantly one second after creation. There has to be a proper time and place for deleting it. It has to be, when it is clear that the user will not have any need for the empty entry anymore. Above, some possibilities have been mentioned how to deal with this. Also "article" is just one of the possibly entry types. See here: |
I think we have an integrity check in place that warns of empty entries. Maybe show that also when closing JabRef? |
This is kind of what I was imagining at #8096 (comment). But just to be sure, I guess it will save time in the future if we think of this as part of a wider "interactive closing JabRef procedure". That procedure might encompass the point discusses in this issue, as well as other operations, such as checking for several entries with the same citekeys.
and still, if the user does not react for, say, 5 seconds, then ignore now would be the default and JabRef closes. |
thanks very much for the suggestions. It is very helpful.
********************************(。◕‿◕。)********************************
|
Hi, I am a CS student working together with @jiezheng5 on this issue. I had some initial progress but still plan to make some additional changes. I took a look at your contribution guide, and have created a draft pull request. Hope that's okay. I also plan to add some JUnit tests in the next few days. Thanks!! |
Hi, I made some additional changes and added a couple of unit tests. I have submitted the PR for review. I did see there is one unit test failed: This is also my first time trying to make contribution to an open-sourced project. My apologies in advance if I missed any contribution guide. |
Thank you very much everybody, but especially @ruoyu-qian for your contributions :))) Additional enhancements would be:
|
Thank you for the suggestions! I will try adding them in. One question about
Do we want to include the explanation in the popup confirmation window or were you thinking about somewhere else? |
I would suggest that we just add a help entry to the help page describing this empty entry. I guess it should be obvious for most users what an empty entry is. For the Do not ask again, there is a dialog method in the dialogService class |
Adding info to the help page is fine too. If i had a choice, i would add it within Jabref because it is easier for the user (no need to search on the web first), but i am not the one that has does the coding, so feel free to do the thing that might go into the right direction and you are confident about being able to handle. :) Btw. I noticed that by entering the terms |
Sounds good! I will see what I can do. If I would like to make additional changes, do I need to create a new branch and make a new PR considering the previous one has been merged? Or can I make commits to my same branch? |
You first need to update/sync your fork with the JabRef/Jabref main so that it includes the latest commits. Then you create a new branch and a new PR. |
Got it. Thanks!! |
JabRef 2.x had the feature to jump from a |
@ThiloteE While reviewing the pull requests of this issue, I am asking myself whether JabRef shouldn't just silently delete empty entries. They contain "only" the entry type as information. Otherwise, they would not have been empty. - Why this effort with keeping the entries - and the UI quirks to enable auto-deletion? |
@koppor You might be right. Deleting them silently might be the better approach. Especially if #8768 is taken into account. We would need to wait a while until a fix for 8768 will arrive at JabRef. Back when I created this Issue, I was not aware it would take this much effort to create this pop-up. Not sure if deleting empty entries silently upon save will lead to problems with shared databases, though. If I remember right, sharing your library with a database creates a lot of save actions. Edit: Silently deleting upon closing JabRef should be fine. Of course this still might lead to awkward behaviour, when multiple people work on the same library, so a notification in the event log that another user triggered the delete might be the way forward :-) Also, #8645 actually seems to be the real problem... |
@LIM0000 pulling you into this, because there was some discussion here. |
JabRef version
5.3 (latest release)
Operating system
Windows
Details on version and operating system
Windows 10, 20H1
Checked with the latest development build
Steps to reproduce the behaviour
Save your libary > use this file for your latex project > try to compile your latex project with Miktex and Texmaker > Error ensues, which prevents me from completing my latex compilation.
Solution i would like:
Appendix
No response
The text was updated successfully, but these errors were encountered: