pybtex.scanner.TokenRequired: syntax error in line 119: '}' expected

Issue #103 invalid
Former user created an issue

I get a missing token error '}' as in the title that is not very informative, it doesn't tell you a line number, so I can;t work out why it is happening. From running biblatex_check.py I think my bibtex is fine apart from missing fields warnings (and from some quick python there are no lines of the form " field = <something>" without a the previous line being finished by a comma).

Comments (5)

  1. Andrey Golovizin

    This is a known issue with sphinxcontrib-bibtex:

    https://sphinxcontrib-bibtex.readthedocs.io/en/latest/usage.html#encoding-percent-signs

    Edit: the problem is caused by the implicit usage of latexcodec in sphinxcontrib-bibtex. As a result, URLs with percent signs are parsed incorrectly. Additionally, latexcodec affects line breaks and changes line numbers, so the line 119 in the error message actually refers to the source line 999 (the Anonymous2016-ys entry with the url field containing percent signs).

  2. Log in to comment