jabref: Empty entry in JabRef leads to Error when compiling in LaTeX

JabRef version

5.3 (latest release)

Operating system

Windows

Details on version and operating system

Windows 10, 20H1

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  • Create a new Entry (because you intend to enter a new entry, BUT THEN YOU CHANGE YOUR MIND AND FORGET DELETING IT)
  • Do not enter any data into the entry; A empty entry.
  • This is how an empty entry looks like in the bib-file:
@Article{,
}

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:

  • Give warning or explanation in JabRef that having empty entries in your bib-files could lead to this.
  • Enhance empty entries visually
  • Ask if empty entries should be deleted upon saving (with explanation why)

Appendix

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 26 (22 by maintainers)

Most upvoted comments

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.: https://github.com/JabRef/jabref/issues/7057#issuecomment-929963560

In addition to the solutions i mentioned in my first post, i became aware of solutions that involve:

  • Preferences
  • Cleanup actions
  • automatic deletion of empty entry upon saving (without warning for user)

@LIM0000 pulling you into this, because there was some discussion here.

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),

JabRef 2.x had the feature to jump from a ? to the help page. We seem to still have it: org.jabref.gui.help.HelpAction#openHelpPage. So it would be a good thing, to keep using it. We should add many more help buttons to JabRef to direct the users to our documentation.

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 empty entry jabref into the ecosia search engine, the first thing that pops up is this very github issue ๐Ÿ˜„

Thank you very much everybody, but especially @ruoyu-qian for your contributions ๐Ÿ˜ƒ)) I am very happy. So far, everything works perfectly! ๐Ÿ‘Œ

Additional enhancements would be:

  • add checkbox for do not ask for this kind of issue again
  • add tiny ? that explains what an โ€˜empty entryโ€™ is. Something like:
    • An empty entry is defined as @entrytype{, }. An example would be: @Article{, }. An empty entry can be found in the library-file or in biblatex source when selecting the empty entry via the entry editor.

Hello, is this issue open to be assigned to someone? If yes, can I work on this issue?