[TxMt] Bibliography completion in the latex bundle
jiho
jo.irisson at gmail.com
Fri Mar 14 16:34:56 UTC 2008
Hello everyone,
I am heavily using the latex bundle currently and the bibliography
completion does not seem to work anymore. When trying to complete ~
\citep{Foo} I get 100% CPU usage by ruby and these messages after
killing it:
/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/
lib/LaTeXUtils.rb:141:in `parse_bibfile': Interrupt
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:116:in `map'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:116:in `parse_bibfile'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:251:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:248:in `each'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:248:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:216:in `call'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:216:in `recursive_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:215:in `each'
... 8 levels...
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:204:in `recursive_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:255:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:63:in `get_citations'
from /tmp/temp_textmate.Bb9x12:8
I am using the latest version of BibDesk to manage my bibfile, which
inserts quite a lot of non bibtex code in custom fields e.g.
@article{McCafferty2002ME,
Author = {McCafferty, S and Bermingham, E and Quenouille, Brice and
Planes, Serge and Hoelzer, G and Asoh, K},
Date-Modified = {2008-01-27 17:23:40 +0100},
Filed = {Yes},
Journal = {Molecular Ecology},
Pages = {1377--1392},
Read = {No},
Title = {Historical biogeography and molecular systematics of the
{I}ndo-{P}acific genus \textit{{D}acyllus} ({T}eleostei:
{P}omacentridae)},
Volume = {11},
Year = {2002},
Bdsk-File-1 =
{YnBsaXN0MDDUAQIDBAUGCQpYJHZlcnNpb25UJHRvcFkkYXJjaGl2ZXJYJG9iamVjdHMSAAG
GoNEHCFRyb290gAFfEA9OU0tleWVkQXJjaGl2ZXKoCwwXGBkdJCVVJG51bGzTDQ4PEBEUViR
jbGFzc1dOUy5rZXlzWk5TLm9iamVjdHOAB6ISE4ACgAOiFRaABIAGWWFsaWFzRGF0YVxyZWx
hdGl2ZVBhdGjSDRobHFdOUy5kYXRhgAVPEQLMAAAAAALMAAIAAANtYWMAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAADCsBfOSCsAAAAQSwYfTWNDYWZmZXJ0eTIwMDItSGlzdG8jMTA0QkFELnB
kZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBLrb2LoXgAAAAAAAAAAAABAAM
AAAkgAAAAAAAAAAAAAAAAAAAABnBhcGVycwAQAAgAAMKv
+64AAAARAAgAAL2LhVgAAAABABQAEEsGABBGCwAQRggAB/
PvAABwQgACAEhtYWM6VXNlcnM6amlobzpXb3JrOmJpYmxpb2dyYXBoaWU6cGFwZXJzOk1jQ2
FmZmVydHkyMDAyLUhpc3RvIzEwNEJBRC5wZGYADgDwAHcATQBjAEMAYQBmAGYAZQByAHQAeQ
AyADAAMAAyAC0ASABpAHMAdABvAHIAaQBjAGEAbAAgAGIAaQBvAGcAZQBvAGcAcgBhAHAAaAB5ACAAYQBuAGQAIABtAG8AbABlAGMAdQBsAGEAcgAgAHMAeQBzAHQAZQBtAGEAdABpAGMAcwAgAG8AZgAgAHQAaABlACAASQBuAGQAbwAtAFAAYQBjAGkAZgBpAGMAIABnAGUAbgB1AHMAIABEAGEAYwB5AGwAbAB1AHMAIAAoAFQAZQBsAGUAbwBzAHQAZQBpAC8AIABQAG8AbQAuAHAAZABmAA8ACAADAG0AYQBjABIAnFVzZXJzL2ppaG8vV29yay9iaWJsaW9ncmFwaGllL3BhcGVycy9NY0NhZmZlcnR5MjAwMi1IaXN0b3JpY2FsIGJpb2dlb2dyYXBoeSBhbmQgbW9sZWN1bGFyIHN5c3RlbWF0aWNzIG9mIHRoZSBJbmRvLVBhY2lmaWMgZ2VudXMgRGFjeWxsdXMgKFRlbGVvc3RlaTogUG9tLnBkZgATAAEvAAAVAAIAC///AADSHh8gIVgkY2xhc3Nlc1okY2xhc3NuYW1loyEiI11OU011dGFibGVEYXRhVk5TRGF0YVhOU09iamVjdF8QfnBhcGVycy9NY0NhZmZlcnR5MjAwMi1IaXN0b3JpY2FsIGJpb2dlb2dyYXBoeSBhbmQgbW9sZWN1bGFyIHN5c3RlbWF0aWNzIG9mIHRoZSBJbmRvLVBhY2lmaWMgZ2VudXMgRGFjeWxsdXMgKFRlbGVvc3RlaTogUG9tLnBkZtIeHyYnoicjXE5TRGljdGlvbmFyeQAIABEAGgAfACkAMgA3ADoAPwBBAFMAXABiAGkAcAB4AIMAhQCIAIoAjACPAJEAkwCdAKoArwC3ALkDiQOOA5cDogOmA7QDuwPEBEUESgRNAAAAAAAAAgEAAAAAAAAAKAAAAAAAAAAAAAAAAAAABFo=}}
The last large chunk is a Finder alias to a file on the disk, wich
allows to store many files associated with each reference. Could that
be preventing the ruby script to parse the file?
Anyone with the same setup?
BTW, the completion method involving bibdesk directly (through
applescripts) still works but is slower and requires mouse clicks.
Thanks in advance.
NB: this was already sent to textmate-dev but is probably more
appropriate here
JiHO
---
http://jo.irisson.free.fr/
More information about the textmate
mailing list