Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#8024 closed defect (fixed)

`[[BibRef]]` macro produce error

Reported by: anonymous Owned by: Roman Mohr
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 13 years ago by Roman Mohr

Status: newassigned

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 13 years ago by Roman Mohr

Resolution: fixed
Status: assignedclosed

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

comment:3 Changed 13 years ago by Roman Mohr

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Roman Mohr.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.