JabRef / JabRef/jabmap

Cannot add a new bib entry node with empty library

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Open an empty library in JabRef
Add new BibEntry node

Image

observer error logs

XHRGET
http://localhost:23119/better-bibtex/cayw?libraryid=jabref-authors.bib-07a56394&format=simple-json

SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [index-BKlN87bF.js:108:47](https://jabref.github.io/jabmap/assets/index-BKlN87bF.js)
    pt https://jabref.github.io/jabmap/assets/index-BKlN87bF.js:108
GET http://localhost:23119/better-bibtex/cayw?libraryid=jabref-authors.bib-07a56394&format=simple-json Request failed (.'T_T) [index-BKlN87bF.js:110:23](https://jabref.github.io/jabmap/assets/index-BKlN87bF.js)
There're no citation keys to create nodes from ( ,_,) [index-BKlN87bF.js:110:5806](https://jabref.github.io/jabmap/assets/index-BKlN87bF.js)
Fail: There're no BibEntry nodes to add as siblings ( ,_,) [index-BKlN87bF.js:110:7140](https://jabref.github.io/jabmap/assets/index-BKlN87bF.js)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem by opening an empty library in JabMap and adding a BibEntry node, then inspect the browser logs and the referenced index-BKlN87bF.js flow. Done means an empty library no longer produces the JSON parse and missing BibEntry-node errors when adding a node.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.