xuhdev / vim-latex-live-preview

A Vim Plugin for Lively Previewing LaTeX PDF Output
https://www.topbug.net/blog/2013/06/13/live-preview-of-latex-in-vim/
GNU General Public License v3.0
834 stars 74 forks source link

"failed to compile bibliography" error with no bibliography #90

Closed DGotshalk closed 4 years ago

DGotshalk commented 4 years ago

Expected behavior

Create a tex file without any bibliography, use vim :LL command to compile to pdf viewer

Actual behavior

get "Failed to compile Bibliography" while there is no bibliography package or file referenced in the .tex file Failure

Steps to reproduce

  1. Create a .tex file
  2. Attempt to compile via :LL or :LLPStartPreview command

    System configuration

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. Thanks for contributing to vim-llp!

sunwukonga commented 4 years ago

I had this same problem. However, after delving into the plugin code:

let l:bib_files = split(glob(b:livepreview_buf_data['root_dir'] . '/**/*.bib'))

I realized that this error could NEVER happen unless there is a *.bib file somewhere in (or in my case under) the working directory. In my case I had another tex project nested in a subdirectory and it contained a *.bib file.

willbelr commented 4 years ago

This is likely the same bug as https://github.com/xuhdev/vim-latex-live-preview/issues/46

sunwukonga commented 4 years ago

This is likely the same bug as #46

They're completely different. In this issue, the OP had no bibliography references and his issue was most likely that he had a an errant .bib file in his project root or subdirectory thereof.

The other issue relates to users trying to include a bibliography and failing when using biblatex because of a bug.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. Thanks for contributing to vim-llp!