vim-pandoc/vim-pandoc — Issue #38: Problem with `Find_Bibfile` and `PandocBibSuggestions`
Author: james-estevez
Created: 2011-12-07 06:21:43+00:00
State: open

Having a an issue with my bibfile. Here are my settings:

" vim-pandoc Settings
let g:pandoc_use_hard_wraps = 1
let maplocalleader = ","
let g:pandoc_bibfiles = ['/home/james/Dropbox/refs/library.bib']
let g:pandoc_use_bibtool = 1

Which produces this error:

"~/Dropbox/Academics/STS330/paper/termp.mkd" 232L, 13511C
Error detected while processing function pandoc#Pandoc_Find_Bibfile:
line 47:
Traceback (most recent call last):
File "", line 40, in
AttributeError: 'list' object has no attribute 'expand' "

If I set `let g:pandoc_bibfiles = '/home/james/Dropbox/refs/library.bib'` I get:

Error detected while processing /home/james/.vimrc:
line 122:
E706: Variable type mismatch for: g:pandoc_bibfiles

If I comment out the line I don't get an error on open, but completion fails with:

Error detected while processing function pandoc#Pandoc_Complete..pandoc_bib#PandocBibSuggestions:
line 30:
Traceback (most recent call last):
Error detected while processing function pandoc#Pandoc_Complete..pandoc_bib#PandocBibSuggestions:
line 30:
File "", line 8, in
Error detected while processing function pandoc#Pandoc_Complete..pandoc_bib#PandocBibSuggestions:
line 30:
IOError: [Errno 2] No such file or directory: 'MyLibrary.bib'
Error detected while processing function pandoc#Pandoc_Complete:
line 22:
E706: Variable type mismatch for: suggestions

But the file is there:

james@tiberius:~$ head MyLibrary.bib
% This file was created with JabRef 2.6.
% Encoding: UTF-8

@ARTICLE{aanen_as_2006,
author = {Duur K Aanen},
title = {As you reap, so shall you sow: coupling of harvesting and inoculating
stabilizes the mutualism between termites and fungi},
journal = {Biology Letters},
year = {2006},
volume = {2},

This is on Ubuntu 10.04. You can see everything else going on with my Vim at my
[repo](https://github.com/james-estevez/vim_files), `vim --version` output is on [pastebin](http://pastebin.com/rYxXZ0cV). Let me know if you need any additional information. I know a bit of python so if you can point me in the right direction I might be able to try myself---after finals.