Skip to content

Neovim gets Stuck when Continuous Compiling is started #1971

@moreiramn

Description

@moreiramn

Issue
When I turn the Continuous Compiling with \ll, my Neovim instance turns blank with a blinking cursor, and after a few seconds it comes back to normal at the same time the forward search indicator on Zathura is trigered.

I noticed that if I put

let g:vimtex_compiler_latexmk = {'callback': 0}

on my init.vim, this behavior does not show up

  • neovim: nvim -u minimal.vim minimal.tex

minimal.vim

set directory=~/.vim/.tmp//
set backupdir=~/.vim/.backup//
set undodir=~/.vim/.undo//
set termguicolors
call plug#begin()
Plug 'lervag/vimtex'
call plug#end()
colorscheme onedark
let g:onedark_termcolors=256
hi Normal ctermbg=NONE guibg=NONE

let g:vimtex_view_method = 'zathura'
let g:vimtex_compiler_progname = 'nvr'
let g:tex_flavor = "latex"

minimal.tex

\documentclass{article}

\title{}
\author{}

\begin{document}

\maketitle

helloworld

t
\end{document}

Commands/Input
\ll

Observed Behaviour
I am attaching a video to showcase it, but as I stated above, my Nvim gets stuck in a blank background with a blinking cursor.

Expected Behaviour
As I start continuous compiling Zathura should start with no blocks

Output from VimtexInfo

System info
  OS: Fedora release 33 (Thirty Three)
  Vim version: NVIM v0.4.4
  Has clientserver: true
  Servername: /tmp/nvimvHF2TD/0

VimTeX project: teste
  base: teste.tex
  root: /home/fcomoreira
  tex: /home/fcomoreira/teste.tex
  out: /home/fcomoreira/teste.pdf
  log: /home/fcomoreira/teste.log
  aux: /home/fcomoreira/teste.aux
  fls: /home/fcomoreira/teste.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: 4
    pid: 27695
    cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -pvc -view=none -e '$success_cmd = "echo vimtex_compiler_callback_success"' -e '$fai
  viewer: Zathura
    xwin id: 54525955
    process:
      pid: -
      cmd: zathura -x "nvr --servername /tmp/nvimvHF2TD/0 --remote-expr \"vimtex#view#reverse_goto(%{line}, '%{input}')\"" --synctex-forward 11:1:'/home/fcomoreira/teste.tex'  '/home/fcomo
    cmd_forward_search: zathura --synctex-forward 13:1:'teste.tex' 'teste.pdf'
  qf: LaTeX logfile
    root: /home/fcomoreira
    addqflist: 59
    errorformat_saved:
    fix_paths: 60
    main: /home/fcomoreira/teste.tex
    set_errorformat: 58
  document class: article
githubIssue.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions