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

:save does not change the compiler directory #2734

Closed
user202729 opened this issue Jun 19, 2023 · 1 comment
Closed

:save does not change the compiler directory #2734

user202729 opened this issue Jun 19, 2023 · 1 comment
Labels

Comments

@user202729
Copy link

user202729 commented Jun 19, 2023

Description

See title.

Additional information: looks like echo b:vimtex.compiler.state.root is not properly updated. There's the function! s:filename_changed_post() abort " {{{1 function that is called when the filename changes.

Using \lx manually works.

Steps to reproduce

  1. Have any TeX file.
  2. Start and stop the compiler.
  3. :save another-directory/a.tex.
  4. Start the compiler again. It will fail this time.

VimtexInfo

System info:
  OS: Arch Linux
  Vim version: VIM 9.0 (1-1337)
  Has clientserver: true
  Servername: vim2

VimTeX project: b
  base: b.tex
  root: /tmp
  tex: /tmp/b.tex
  main parser: current file verified
  document class: article
  packages: amsbsy amsfonts amsgen amsmath amsopn amstext amsthm csquotes currfile etoolbox expl3 filehook filehook-2020 iftex keyval kvoptions kvsetkeys l3keys2e ltxcmds precattl pythonimmediate saveenv typstmathinput unicode-math-input xcolor
  compiler: latexmk
    engine: -pdf
    options:
      -file-line-error
      -latexoption=-shell-escape
      -latexoption=-recorder
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
    job: 
      jobid: process 73440 dead
      output: /tmp/vxDgVoe/2
      cmd: max_print_line=2000 latexmk -file-line-error -latexoption=-shell-escape -latexoption=-recorder -synctex=1 -interaction=nonstopmode -pdf -pvc -view=none -e '$compiling_cmd = ($compiling_cmd ? $compiling_cmd . " ; " : "") . "echo vimtex_compiler_callback_compiling"' -e '$success_cmd = ($success_cmd ? $success_cmd . " ; " : "") . "echo vimtex_compiler_callback_success"' -e '$failure_cmd = ($failure_cmd ? $failure_cmd . " ; " : "") . "echo vimtex_compiler_callback_failure"' 'a.tex'
      pid: 73440
  viewer: Zathura
    xwin id: 71303171
    cmd_start: zathura  -x "/usr/bin/vim -T dumb --not-a-term -n -c \"VimtexInverseSearch %{line} '%{input}'\"" --synctex-forward 463:1:'/tmp/a.tex' 'a.pdf'&
  qf method: LaTeX logfile
@user202729 user202729 added the bug label Jun 19, 2023
lervag added a commit that referenced this issue Jun 24, 2023
@lervag
Copy link
Owner

lervag commented Jun 24, 2023

Thanks! I believe this is fixed now.

@lervag lervag closed this as completed Jun 24, 2023
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