Skip to content

Viewing with okular using temp files broke #2288

@rolandherzog

Description

@rolandherzog

Description

I am using vimtex in nvim-qt with okular as a viewer and latexmk backend. A minimal init.vim to reproduce the issue is as follows.

call plug#begin('~/.cache/nvim/plugged')
Plug 'lervag/vimtex'
call plug#end()

let g:vimtex_view_general_viewer = 'okular'
let g:vimtex_view_use_temp_files = 1

Expected behavior

Issuing :VimtexCompile, e.g., on a file named test.tex, produces test.pdf. Upon successful compilation, test.pdf is copied over to test_vimtex.pdf, which is the file opened by issuing :VimtexView. This used to work until recently (c72d34b ?)

Actual behavior

test.pdf is created but it is not copied to test_vimtex.pdf. Issuing :VimtexView results in a Viewer cannot read PDF file! error.

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