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
832 stars 73 forks source link

:LLPStartPreview doesn't open anything #70

Closed addcninblue closed 5 years ago

addcninblue commented 6 years ago

Expected behavior

LLP starts preview

Actual behavior

My Vim installation recognize the command

:LLPStartPreview

but it does nothing.

Steps to reproduce

Relevant parts of my .vimrc:

packadd vim-latex-live-preview
autocmd Filetype tex setl updatetime=1

let g:livepreview_previewer = 'mupdf'

System configuration

NVIM v0.3.0
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wconversion -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99
-Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.3.0/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Other stuff:

Output of echo b:livepreview_buf_data after running :LLPStartPreview

{'root_dir': '/home/addison/stuff/cs70', 'py_exe': 'python', 'tmp_dir': '/tmp/vim-latex-live-preview-N8THwq', 'run_cmd': 'env TEXMFOUTPU
T=/tmp/vim-latex-live-preview-N8THwq/home/addison/stuff/cs70 TEXINPUTS=/tmp/vim-latex-live-preview-N8THwq/home/addison/stuff/cs70:/home/
addison/stuff/cs70: pdflatex -shell-escape -interaction=nonstopmode -output-directory=/tmp/vim-latex-live-preview-N8THwq/home/addison/st
uff/cs70 /tmp/vim-latex-live-preview-N8THwq/home/addison/stuff/cs70/hw00', 'preview_running': 1, 'tmp_src_file': '/tmp/vim-latex-live-pr
eview-N8THwq/home/addison/stuff/cs70/hw00'}

File I'm compiling:

\documentclass{article}

\begin{document}

testing
testing
testing

\end{document}
NikosAlexandris commented 6 years ago

Are there no error messages (in vim's bottom line)?

I had something similar here, with an error complaining about the bibliography not being generated. I added a .bib file and an example \cite{SomeKey} and it worked.

vkhodygo commented 6 years ago

I have similar problems with Fedora. What details do you need?

Newexplorer commented 6 years ago

Check what version of python you have installed. I think the plugin doesn't work with python3.

vkhodygo commented 6 years ago

I use both versions, however, v2 is my system default as it is everywhere else. Nevertheless, it shouldn't be an issue since the plugin checks python versions before starting.

ecly commented 6 years ago

Experiencing the same problem with NeoVim after updating the Plugin after about 8 months.

RedBorg commented 6 years ago

Experiencing same problem also with evince, pdflatex, neovim and arch, fresh plugin install (with vim-plug) with no configs.

xuhdev commented 6 years ago

Folks, I really cannot reproduce this issue here. Have you tried with only this plugin enabled? It can be some conflict but I really don't know.

ghost commented 5 years ago

Same issue, on Manjaro with gvim. Did anyone figure it out? I'll try with just this plugin alone now.

As with other similar issue reports, the document compiles fine via other means.

I had tried it with both vim-plug and pathogen, but as I've been having problems with both (and yay with AUR packages*), I decided just to plop it into .vim/plugin/,

The relevant errors are:

Initial compile...
Error detected while processing function UpdatingToggle[2]..LaunchMuPDF:
line 18:
Compilation failed; the PDF does not exist.
Live updating preview now ON.

And :LLPStartPreview: Failed to compile And: cat: home/tunurit/.config/live-latex-preview/lastresult: No such file or directory With a pdf compiled via other means, I just get:

PDF preview now on.
Live updating preview now ON.

with the same lastresult file missing.

E1: I have both mupdf and zathura with the relevant mupdf backend.

xuhdev commented 5 years ago

@dumuzidsafi Thanks! Can you show what's in your ~/.config/live-latex-preview/?

stale[bot] commented 5 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!

Gfast2 commented 5 years ago

The part really help me out is: Before you actually start the live view, make sure you have started a tex document. So these lines are pretty what you have to have:

\documentclass{article}
\begin{document}

\end{document}