Skip to content

VimTex executes tectonic compiler without escaping path spaces #2664

@henriqpsantos

Description

@henriqpsantos

Description

Maybe I'm messing up somewhere, since I've seen that the "output-dir" issue has been supposedly fixed in a PR, but I'm having it nonetheless. I'm using neovim 0.9.0, latest vimtex, lazy.nvim as a package manager. Executing :VimtexInfo (which errors out on the first execution, see below) gives the following information:

image

Image with censored name. If the path is C:\Users\Albert Einstein\Documents\a.tex, it shows up as C:\Users\Albert\ Einstein\(...)
I'm not sure why it's erroring out on the first execution of VimtexInfo, but it might be related. Configuration is literally 2 lines in init.lua:

vim.g.vimtex_view_method = 'sioyek'
vim.g.vimtex_compiler_method = 'tectonic'

Steps to reproduce

  1. Open a tex file whose path contains spaces
  2. Run :VimtexCompile or :VimtexInfo
  3. See that file doesn't compile or compiles with an error. :VimtexInfo shows the command as escaped with "\ "

Expected behavior

The document to compile and :VimtexInfo to work

Actual behavior

:VimtexInfo errors on first execution.
Tectonic is run with an output dir that has a space

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS:  ()
  Vim version: NVIM v0.9.0-dev-974+g631775c05
  Has clientserver: true
  Servername: \\.\pipe\nvim-nvr

VimTeX project: curriculum-pt
  base: curriculum-pt.tex
  root: C:\Users\---\Internxt\Documentos\CV\CV
  tex: C:\Users\---\Internxt\Documentos\CV\CV\curriculum-pt.tex
  main parser: current file verified
  document class: moderncv
  packages: geometry ragged2e
  source files:
    curriculum-pt.tex
    cm-pt.tex
  compiler: tectonic
    options:
      --keep-logs
      --synctex
  viewer: sioyek
  qf method: LaTeX logfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions