Skip to content
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

Bibtex parsing error doesn't show location #82

Open
girving opened this issue Jul 9, 2018 · 1 comment
Open

Bibtex parsing error doesn't show location #82

girving opened this issue Jul 9, 2018 · 1 comment

Comments

@girving
Copy link

girving commented Jul 9, 2018

There is presumably an error somewhere in my bibliography, since I get Uncaught Token mismatch, expected }, found . This error isn't very informative, since it doesn't include a location and what is found is apparently the empty string.

Ah, figured it out. I had copied a bibliography entry with word wrap off, which gave

@article{silver2017alphazero,
   title={Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithm},
   author={Silver, David and Hubert, Thomas and Schrittwieser, Julian and Antonoglou, Ioannis and Lai, Matthew and Guez
   journal={arXiv preprint arXiv:1712.01815},
   year={2017}
 }

The author line was missing a closing }. There are two ways this experience could be improved:

  1. If what is found is EOF, say that instead of found .
  2. In general, give location information in error messages.

Not sure if these are easy to do with the current parsing mechanism.

@girving
Copy link
Author

girving commented Mar 29, 2019

@ludwigschubert Should we just close this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant