Hi Haris,
thanks for the quick reply.
Doing kpsewhich -show-path=bib returns
/Users/kjhealy/Documents/bibs:.:/Users/kjhealy/Library/texmf/ [etc]
Is this what is also returned if your type in TM: kpsewhich -show- path=bib followed by pressing ctrl-R?
Yes.
So what you would want to do is set TM_LATEX_BIB in TextMate's preferences as well (TextMate -> Preferences -> Advanced -> Shell Variables.
Yes, this is set too, as the full path, /Users/kjhealy/Documents/bibs. The problem is now a little weirder. I have this issue on two Leopard machines. One is a G5 desktop and one is a recent Macbook Pro.
I thought the problem might have to do with the symlinks I was using to point to ~/Documents/bibs. So I deleted the symlinks and moved all the bib files to ~/Library/texmf/bibtex/bib. So there's no ~/Documents/ bibs anymore, and no symlinks to it. I changed TM_LATEX_BIB in TextMate to reflect this (and changed BIBINPUTS in bash_profile, too). Now kpsewhich -show-path=bib inside TM gives
kpsewhich -show-path=bib/Users/kjhealy/Library/texmf/bibtex/bib:.:/ Users/kjhealy/Library/texmf/bibtex/bib//:!!/usr/local/gwTeX/ texmf.local/bibtex/bib//:!!/usr/local/gwTeX/texmf.pkgs/bibtex/bib//:!!/ usr/local/gwTeX/texmf.gwtex/bibtex/bib//:!!/usr/local/gwTeX/ texmf.texlive/bibtex/bib//:!!/usr/local/gwTeX/texmf/bibtex/bib//:/ Users/kjhealy/Library/texmf/bibtex///:!!/usr/local/gwTeX/texmf.local/ bibtex///:!!/usr/local/gwTeX/texmf.pkgs/bibtex///:!!/usr/local/gwTeX/ texmf.gwtex/bibtex///:!!/usr/local/gwTeX/texmf.texlive/bibtex///:!!/ usr/local/gwTeX/texmf/bibtex///
Again, latex/bibtex compile fine. via latexmk. Now when I try to complete a citation from a word, I get the following error:
/Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:114:in `read': Is a directory - /Users/kjhealy/Library/texmf/bibtex/bib (Errno::EISDIR) from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:114:in `parse_bibfile' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:252:in `cite_scan' from /Users/kjhealy/Library/Application Support/TextMate/ Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:248:in `each' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:248:in `cite_scan' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:216:in `call' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:216:in `recursive_scan' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:215:in `each' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:215:in `recursive_scan' ... 7 levels... from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:204:in `recursive_scan' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:255:in `cite_scan' from /Users/kjhealy/Library/Application Support/TextMate/Bundles/ Latex.tmbundle/Support/lib/LaTeXUtils.rb:63:in `get_citations' from /tmp/temp_textmate.fLdPNM:8
I get this error with different documents and different bibfiles. If I uncheck the TM_LATEX_BIB variable in TM preferences and try to cite something, the cursor changes to a cross and nothing else happens.
Kieran