Modify

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#8024 closed defect (fixed)

`[[BibRef]]` macro produce error

Reported by: anonymous Owned by: Amfortas
Priority: normal Component: TracBibPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

When I tried to render the citations using [[BibRef]] per the example, I got the following error:

Error: Macro BibRef(None) failed
expected string or buffer

Here's an example of my bibtex entry, just in case it's relevant:

@article{Quir94,
	Adsnote = {Provided by the SAO/NASA Astrophysics Data System},
	Adsurl = {http://adsabs.harvard.edu/abs/1994IJNMF..18..555Q},
	Author = {{Quirk}, J.~J.},
	Date-Added = {2010-05-04 10:41:00 -0400},
	Date-Modified = {2010-05-04 10:41:10 -0400},
	Doi = {10.1002/fld.1650180603},
	Journal = {International Journal for Numerical Methods in Fluids},
	Month = mar,
	Pages = {555-574},
	Title = {{A contribution to the great Riemann solver debate}},
	Volume = 18,
	Year = 1994,
	Bdsk-Url-1 = {http://dx.doi.org/10.1002/fld.1650180603}}

and this is how I reference it :

[[BibAdd(source:trunk/hydro.bib)]]

Let's cite [[BibCite(Quir94)]].

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by Amfortas

  • Status changed from new to assigned

OK, FINALLY I found some time to look at this error. The funny thing is, that when the file is attached to the page, everything works perfect. If a file "source:trunk/somefile.bib" is loaded everything works, but if your file is loaded from the repository the macro can't load the file. I'm very curious what's responsible for that error.

comment:2 Changed 3 years ago by Amfortas

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [9945]) don't call close() on the repository. Fixes #8024

comment:3 Changed 3 years ago by Amfortas

In http://trac.edgewall.org/ticket/4972#comment:5 it is expliticly said:

You should never call close() by yourself, unless you've created the Repository instance. ![...]

... but I did.

Fixed in r9945

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Amfortas. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.