jabref icon indicating copy to clipboard operation
jabref copied to clipboard

BibtexParser reports "Empty text token" when parsing malformed BibTeX input

Open shamka17 opened this issue 6 months ago • 2 comments

JabRef version

5.15 (latest release)

Operating system

macOS

Details on version and operating system

No response

Checked with the latest development build (copy version output from About dialog)

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

Steps to reproduce the behaviour

Description

While performing automated combinatorial parser testing on JabRef's BibTeX handling components, an "Empty text token" parsing error was observed when malformed BibTeX input was processed.

Steps to reproduce

Parse/import malformed BibTeX content such as:

@article{key
author={John Doe}
title={AI Research}
}

The parser reports:
Empty text token.
This could be caused by a missing comma between two fields.

**Expected behavior**

The parser should ideally:
provide clearer recovery/error handling for malformed field structures, or
more gracefully identify the exact malformed location.

**Environment**
JabRef latest master branch
Java 25
Gradle/JUnit-based parser testing
macOS

### Appendix

...
<details>

<summary>Log File</summary>

Image

</details>

shamka17 avatar May 17 '26 03:05 shamka17

Isn't the error message clear enough? Please do not use AI to create issue.
Image

pluto-han avatar May 17 '26 10:05 pluto-han

Slop issues .Just close

Siedlerchr avatar May 17 '26 11:05 Siedlerchr