Skip to content

[nixvim] vimtex doesnt find other packages, in scheme full #3327

Closed
@repparw

Description

@repparw
Field Description
Plugin vimtex
Nixpkgs unstable
Home Manager unstable

Using standalone nixvim, both via nix run . and in my nixos build

compiler gives

cv.tex|| File `moderncv.cls' not found.
cv.tex|3 error| Emergency stop.
cv.tex|3 error| Fatal error occurred, no output PDF file produced!

:VimtexInfo

System info:
  OS: Linux 6.12.28
  LaTeX version: pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024/nixos.org)
  Vim version: NVIM v0.11.1
  Has clientserver: true
  Servername: /run/user/1000/nvim.2093371.0
  $PATH:
    - /etc/profiles/per-user/repparw/bin
    - /home/repparw/.local/state/nix/profile/bin
    - /home/repparw/.nix-profile/bin
    - /nix/profile/bin
    - /nix/store/09p3ss8gxvgirp5598hh1p5gv72am3k4-lua-language-server-3.14.0/bin
    - /nix/store/0h96big2p8fpyk87j7dnsmj9a42v08wv-kitty-0.41.1/bin
    - /nix/store/0rglbl343ksn1f0g52kil4yq38an02im-imagemagick-7.1.1-47/bin
    - /nix/store/1xsb8cdydxciwjkfnysa0knsxx1djfz4-hyprland-qtutils-0.1.4/bin
    - /nix/store/2zx2a8g7bkl2lkrql10hnjjpzz4wq09c-binutils-wrapper-2.44/bin
    - /nix/store/41pi0jiyvlhxgpfhxzvb44w1skc8yp4z-bash-interactive-5.2p37/bin
    - /nix/store/583p5x4ywdkkfz4s94ddyixz7v77msya-util-linux-2.41-bin/bin
    - /nix/store/5z8g4p7m2xfkwv8a0zvlsn1sf0lgs2f7-ncurses-6.5-dev/bin
    - /nix/store/6rrvwz3dpqpbd1f9z40wzahfcmxnx9gh-systemd-257.5/bin
    - /nix/store/7cli62frc44ixw5hp8fhfhmzwgl3w6qw-ripgrep-14.1.1/bin
    - /nix/store/7m2i1qi7mm3fdrw38kp8yv2vbvcwjk0g-bat-0.25.0/bin
    - /nix/store/aia4fpwr8iw2rhh6vw23xc07ay24mqib-vscode-langservers-extracted-4.10.0/bin
    - /nix/store/c4gmqsh6s12m20jjrr16g9x9y8mq6dzg-pstree-2.39/bin
    - /nix/store/dbpnwnqqz25a7hhcjhs4d6yzasw282zw-newt-0.52.24/bin
    - /nix/store/dhhyjclgmh9yki4xhls4vfc3ysgwyi10-dmenu-5.3/bin
    - /nix/store/g5h4kh5jy4648fwqyd43fmp2j90c0k08-libnotify-0.8.4/bin
    - /nix/store/j34rdz4g80a6x21zfm4jfjip9izjphjz-marksman-2024-12-18/bin
    - /nix/store/jzv928825yj4wcfs3p0ac21wdwz93zk7-pyright-1.1.399/bin
    - /nix/store/kc2rx8xxqa5735y621cyw3nqqgbs66v8-python3-3.12.10-env/bin
    - /nix/store/prnyi2xc0p0c8vpd1s8p84sz34avkm1p-typescript-language-server-4.3.3/bin
    - /nix/store/qx0jimd9644vssf167w36visyhqqk4k7-xdotool-3.20211022.1/bin
    - /nix/store/sa89ixzj3r5msg8sjq1mwrlhk5g64hb4-jdt-language-server-1.46.1/bin
    - /nix/store/vn9pridbsjvqcqjjyyp1c66nxrpcg9zp-pciutils-3.13.0/bin
    - /nix/store/vx0kj42s9myq1475hmqbcg6fxdbwhzzv-nixd-2.6.3/bin
    - /nix/store/wml83snzb3qvyx5dazdlh1wyfilyl7pn-pkgconf-wrapper-2.4.3/bin
    - /nix/store/xgwsszsf9jy3fdhrrc6095i4jh095jrc-texlive-combined-full-2024-final/bin
    - /nix/store/z7f9fd2kigl4v88zb2r7fz8i2862c8a4-neovim-ruby-env/bin
    - /nix/store/z8z1mhfnvw40dwljqazxv0343sv5ds2g-git-2.49.0/bin
    - /nix/var/nix/profiles/default/bin
    - /run/current-system/sw/bin
    - /run/wrappers/bin

VimTeX project: cv
  base: cv.tex
  root: /home/repparw/src/cv
  tex: /home/repparw/src/cv/cv.tex
  main parser: current file verified
  document class: moderncv
  packages: fontenc geometry inputenc lmodern
  compiler: latexmk
    engine: -pdf
    options:
      -synctex=1
      -interaction=nonstopmode
      -file-line-error
    callback: 1
    continuous: 1
    executable: latexmk
    job: 
      jobid: 6
      output: /tmp/nvim.repparw/Z334OB/0
      cmd: max_print_line=2000 latexmk -synctex=1 -interaction=nonstopmode -file-line-error  -pdf -pvc -pvctimeout- -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"' 'cv.tex'
      pid: 2093437
  viewer: General
  qf method: LaTeX logfile

Minimal, Reproducible Example (MRE)

programs.nixvim = {
plugins.vimtex = {
      enable = true;
      texlivePackage = pkgs.texlive.combined.scheme-full;
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions