@comment and @online not recognized ; and error message is unhelpful

Issue #96 resolved
Mark Galassi created an issue

The following fails:

@online{NoteFrequencies1977,
   title={Musical Note to Frequency Conversion Chart},
   author={Backus, J},
  year={1977},
  url = {\url{http://www.audiology.org/sites/default/files/ChasinConversionChart.pdf}},
  urldate = {2016-05-06}
 }

with the unhelpful message:

parsing bibtex file /home/markgalassi/Erivate/.tmp/hackingcamp-teacher-manual/small-courses/hackingcamp.bib... parsed 6 entries

Exception occurred: File "/home/markgalassi/.local/lib/python2.7/site-packages/pybtex/style/formatting/init.py", line 60, in format_entries f = getattr(self, "format_" + entry.type) AttributeError: 'Style' object has no attribute 'format_online' The full traceback has been saved in /tmp/sphinx-err-dhWrol.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. A bug report can be filed in the tracker at https://github.com/sphinx-doc/sphinx/issues. Thanks!

Similar things happen with @comment when I comment a whole block. Note that @online is a biblatex introduction, not there in old bibtex. Still it should be supported, and it should give a more useful error message.

I'm attaching the stack trace from /tmp

Comments (3)

  1. Jaakko Kantojärvi

    I might have a bit of time and interested to look into this issue, while writing a paper with rst+sphinx and using pybtex for references. Does to maintainer have any thoughts, comments or something,, which I should consider before drafting ideas for an implementation?

  2. Matthias Troffaes

    Add support for @online entries and the urldate field (see issue #96).

    Just making it an alias for misc, since it is pretty much the same.

    → <<cset bfc690ec8522>>

  3. Log in to comment