Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on VimtexEventCompileSuccess when g:vimtex_view_use_temp_files = 1 and g:vimtex_view_method has not the default value #1766

Closed
tonico opened this issue Aug 8, 2020 · 1 comment
Labels

Comments

@tonico
Copy link

tonico commented Aug 8, 2020

Issue

Thanks for this great plugin! I'm getting the following error since commit 7c3061f. With the options g:vimtex_view_use_temp_files = 1 and some non-default value for g:vimtex_view_method (e.g., 'zathura'), when compiling a LaTeX document this error message pops up:

Error detected while processing function <SNR>43_callback_continuous_output[6]..
vimtex#compiler#callback[26]..User Autocommands for "<buffer=1>":
E492: Not an editor command: VimtexEventCompileSuccess call b:vimtex.viewer.copy_files()

minimal.vim

set nocompatible
let &runtimepath  = '~/.vim/bundle/vimtex,' . &runtimepath
let &runtimepath .= ',~/.vim/bundle/vimtex/after'
filetype plugin indent on
syntax enable

let g:vimtex_view_use_temp_files = 1
let g:vimtex_view_method = 'zathura'  "error also occurs with the values 'skim' or 'mupdf'

minimal.tex

\documentclass{minimal}
\begin{document}
Hello world!
\end{document}

Commands/Input

When I run vim -u minimal.vim minimal.tex +VimtexCompile, I get the above error message.

Output from VimtexInfo

System info
  OS: Fedora release 32 (Thirty Two)
  Vim version: VIM 8.2 (1-1307)
  Has clientserver: false

vimtex project: minimal
  base: minimal.tex
  root: /home/tonico
  tex: /home/tonico/minimal.tex
  out: /home/tonico/minimal.pdf
  log: /home/tonico/minimal.log
  aux: /home/tonico/minimal.aux
  fls: /home/tonico/minimal.fls
  main parser: current file verified
  compiler: latexmk
    configuration: 
      continuous: 1
      callback: 1
      latexmk options:
        -verbose
        -file-line-error
        -synctex=1
        -interaction=nonstopmode
      latexmk engine: -pdf
    job: process 208226 run
    pid: 208226
    cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -pvc -view=none
  viewer: Zathura
    xwin id: 0
  qf: LaTeX logfile
    config: 
      packages: 
        default: 1
      default: 1
  document class: minimal
@lervag
Copy link
Owner

lervag commented Aug 9, 2020

Sorry, you are right. I've updated the related code. I think it should work as expected now.

@lervag lervag closed this as completed in 0396621 Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants