lervag / vimtex

VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
MIT License
5.42k stars 389 forks source link

vimtex reporting false positive fail in compilation (again) #1295

Closed soerenwolfers closed 5 years ago

soerenwolfers commented 5 years ago

As in https://github.com/lervag/vimtex/issues/653 I get vimtex: Compilation failed! even though the compilation is successful.

" vimrc
set nocompatible
let &rtp = '~/.vim/plugged/vimtex,' . &rtp
let &rtp .= ',~/.vim/plugged/vimtex/after'
filetype plugin indent on
% mwe.tex
\documentclass{article}
\usepackage[USenglish]{babel}
\usepackage[backend=bibtex]{biblatex}
\usepackage{xcntperchap}
\begin{document}
Test.
\end{document}
  1. Run vim -u vimrc mwe.tex
  2. Run :VimtexCompile

Surprisingly, the MWE is really minimal. If I remove any of the three packages I get vimtex: Compilation completed.

For completeness, here is the `mwe.log` of the false negative compilation (click here to see the output). ``` This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex 2018.10.13) 29 DEC 2018 21:50 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. %&-line parsing enabled. **mwe.tex (./mwe.tex LaTeX2e <2016/02/01> Babel <3.9q> and hyphenation patterns for 81 language(s) loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty Package: babel 2016/02/24 3.9q The Babel package (/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf Language: english 2012/08/20 v3.3p English support from the babel system (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def File: babel.def 2016/02/24 3.9q Babel common definitions \babel@savecnt=\count87 \U@D=\dimen103 ) \l@canadian = a dialect from \language\l@american \l@australian = a dialect from \language\l@british \l@newzealand = a dialect from \language\l@british )) (/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.sty Package: biblatex 2016/03/03 v3.3 programmable bibliographies (PK/JW/AB) (/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex_legacy.sty Package: biblatex_legacy 2016/03/03 v3.3 programmable bibliographies (bibtex) (PK/JW/AB) (/usr/share/texlive/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2015/08/02 v2.2a e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count88 ) (/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks14 ) (/usr/share/texlive/texmf-dist/tex/latex/logreq/logreq.sty Package: logreq 2010/08/04 v1.0 xml request logger \lrq@indent=\count89 (/usr/share/texlive/texmf-dist/tex/latex/logreq/logreq.def File: logreq.def 2010/08/04 v1.0 logreq spec v1.0 )) (/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/share/texlive/texmf-dist/tex/latex/url/url.sty \Urlmuskip=\muskip10 Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc. ) \c@tabx@nest=\count90 \c@listtotal=\count91 \c@listcount=\count92 \c@liststart=\count93 \c@liststop=\count94 \c@citecount=\count95 \c@citetotal=\count96 \c@multicitecount=\count97 \c@multicitetotal=\count98 \c@instcount=\count99 \c@maxnames=\count100 \c@minnames=\count101 \c@maxitems=\count102 \c@minitems=\count103 \c@citecounter=\count104 \c@savedcitecounter=\count105 \c@uniquelist=\count106 \c@uniquename=\count107 \c@refsection=\count108 \c@refsegment=\count109 \c@maxextrayear=\count110 \c@maxextraalpha=\count111 \c@abbrvpenalty=\count112 \c@highnamepenalty=\count113 \c@lownamepenalty=\count114 \c@maxparens=\count115 \c@parenlevel=\count116 \blx@tempcnta=\count117 \blx@tempcntb=\count118 \blx@tempcntc=\count119 \blx@maxsection=\count120 \blx@maxsegment=\count121 \blx@notetype=\count122 \blx@parenlevel@text=\count123 \blx@parenlevel@foot=\count124 \labelnumberwidth=\skip43 \labelalphawidth=\skip44 \shorthandwidth=\skip45 \biblabelsep=\skip46 \bibitemsep=\skip47 \bibnamesep=\skip48 \bibinitsep=\skip49 \bibparsep=\skip50 \bibhang=\skip51 \blx@auxin=\read1 \blx@auxout=\write3 \c@mincomprange=\count125 \c@maxcomprange=\count126 \c@mincompwidth=\count127 \c@labelname=\count128 \c@savedlabelname=\count129 \c@author=\count130 \c@savedauthor=\count131 \c@shortauthor=\count132 \c@savedshortauthor=\count133 \c@editor=\count134 \c@savededitor=\count135 \c@editora=\count136 \c@savededitora=\count137 \c@editorb=\count138 \c@savededitorb=\count139 \c@editorc=\count140 \c@savededitorc=\count141 \c@shorteditor=\count142 \c@savedshorteditor=\count143 \c@bookauthor=\count144 \c@savedbookauthor=\count145 \c@translator=\count146 \c@savedtranslator=\count147 \c@annotator=\count148 \c@savedannotator=\count149 \c@commentator=\count150 \c@savedcommentator=\count151 \c@introduction=\count152 \c@savedintroduction=\count153 \c@foreword=\count154 \c@savedforeword=\count155 \c@afterword=\count156 \c@savedafterword=\count157 \c@holder=\count158 \c@savedholder=\count159 \c@namea=\count160 \c@savednamea=\count161 \c@nameb=\count162 \c@savednameb=\count163 \c@namec=\count164 \c@savednamec=\count165 \c@institution=\count166 \c@savedinstitution=\count167 \c@language=\count168 \c@savedlanguage=\count169 \c@location=\count170 \c@savedlocation=\count171 \c@organization=\count172 \c@savedorganization=\count173 \c@origlocation=\count174 \c@savedoriglocation=\count175 \c@origpublisher=\count176 \c@savedorigpublisher=\count177 \c@pageref=\count178 \c@savedpageref=\count179 \c@publisher=\count180 \c@savedpublisher=\count181 \c@lista=\count182 \c@savedlista=\count183 \c@listb=\count184 \c@savedlistb=\count185 \c@listc=\count186 \c@savedlistc=\count187 \c@listd=\count188 \c@savedlistd=\count189 \c@liste=\count190 \c@savedliste=\count191 \c@listf=\count192 \c@savedlistf=\count193 Package biblatex Info: Trying to load compatibility code... Package biblatex Info: ... file 'blx-compat.def' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/blx-compat.def File: blx-compat.def 2016/03/03 v3.3 biblatex compatibility (PK/JW/AB) ) Package biblatex Info: Trying to load generic definitions... Package biblatex Info: ... file 'biblatex_legacy.def' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex_legacy.def File: biblatex_legacy.def \c@textcitecount=\count194 \c@textcitetotal=\count195 \c@textcitemaxnames=\count196 \c@biburlnumpenalty=\count197 \c@biburlucpenalty=\count198 \c@biburllcpenalty=\count199 \c@smartand=\count266 ) Package biblatex Info: Trying to load bibliography style 'numeric'... Package biblatex Info: ... file 'numeric.bbx' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx File: numeric.bbx 2016/03/03 v3.3 biblatex bibliography style (PK/JW/AB) Package biblatex Info: Trying to load bibliography style 'standard'... Package biblatex Info: ... file 'standard.bbx' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/bbx/standard.bbx File: standard.bbx 2016/03/03 v3.3 biblatex bibliography style (PK/JW/AB) \c@bbx:relatedcount=\count267 \c@bbx:relatedtotal=\count268 )) Package biblatex Info: Trying to load citation style 'numeric'... Package biblatex Info: ... file 'numeric.cbx' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx File: numeric.cbx 2016/03/03 v3.3 biblatex citation style (PK/JW/AB) Package biblatex Info: Redefining '\cite'. Package biblatex Info: Redefining '\parencite'. Package biblatex Info: Redefining '\footcite'. Package biblatex Info: Redefining '\footcitetext'. Package biblatex Info: Redefining '\smartcite'. Package biblatex Info: Redefining '\supercite'. Package biblatex Info: Redefining '\textcite'. Package biblatex Info: Redefining '\textcites'. Package biblatex Info: Redefining '\cites'. Package biblatex Info: Redefining '\parencites'. Package biblatex Info: Redefining '\smartcites'. ) Package biblatex Info: Trying to load configuration file... Package biblatex Info: ... file 'biblatex.cfg' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/biblatex.cfg File: biblatex.cfg ))) (/home/wolfersf/texmf/tex/latex/xcntperchap/xcntperchap.sty Package: xcntperchap 2018/01/05 - v0.5 (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref.sty Package: zref 2012/04/04 v2.24 A new reference scheme for LaTeX (HO) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref-base.sty Package: zref-base 2012/04/04 v2.24 Module base for zref (HO) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO) Package ifluatex Info: LuaTeX not detected. ) Package etexcmds Info: Could not find \expanded. (etexcmds) That can mean that you are not using pdfTeX 1.50 or (etexcmds) that some package has redefined \expanded. (etexcmds) In the latter case, load this package earlier. )) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO) ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO) Package ifpdf Info: pdfTeX in PDF mode is detected. ) Package pdftexcmds Info: LuaTeX not detected. Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO) ) Package zref Info: New property list: main on input line 759. Package zref Info: New property: default on input line 760. Package zref Info: New property: page on input line 761. )) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/zref-counter.sty Package: zref-counter 2012/04/04 v2.24 Module counter for zref (HO) Package zref Info: New property: counter on input line 53. ) (/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty Package: expl3 2016/01/19 v6377 L3 programming layer (loader) (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex Package: expl3 2016/01/19 v6377 L3 programming layer (code) L3 Module: l3bootstrap 2016/01/01 v6339 L3 Bootstrap code L3 Module: l3names 2015/12/21 v6328 L3 Namespace for primitives L3 Module: l3basics 2015/11/22 v6315 L3 Basic definitions L3 Module: l3expan 2015/09/10 v5983 L3 Argument expansion L3 Module: l3tl 2015/09/29 v6121 L3 Token lists L3 Module: l3str 2016/01/03 v6357 L3 Strings L3 Module: l3seq 2015/08/05 v5777 L3 Sequences and stacks L3 Module: l3int 2016/01/05 v6366 L3 Integers \c_max_int=\count269 \l_tmpa_int=\count270 \l_tmpb_int=\count271 \g_tmpa_int=\count272 \g_tmpb_int=\count273 L3 Module: l3quark 2015/08/17 v5855 L3 Quarks L3 Module: l3prg 2015/11/01 v6216 L3 Control structures \g__prg_map_int=\count274 L3 Module: l3clist 2015/09/02 v5901 L3 Comma separated lists L3 Module: l3token 2015/11/11 v6249 L3 Experimental token manipulation L3 Module: l3prop 2016/01/05 v6366 L3 Property lists L3 Module: l3msg 2015/09/28 v6113 L3 Messages L3 Module: l3file 2015/12/03 v6317 L3 File and I/O operations \l_iow_line_count_int=\count275 \l__iow_target_count_int=\count276 \l__iow_current_line_int=\count277 \l__iow_current_word_int=\count278 \l__iow_current_indentation_int=\count279 L3 Module: l3skip 2016/01/05 v6366 L3 Dimensions and skips \c_zero_dim=\dimen104 \c_max_dim=\dimen105 \l_tmpa_dim=\dimen106 \l_tmpb_dim=\dimen107 \g_tmpa_dim=\dimen108 \g_tmpb_dim=\dimen109 \c_zero_skip=\skip52 \c_max_skip=\skip53 \l_tmpa_skip=\skip54 \l_tmpb_skip=\skip55 \g_tmpa_skip=\skip56 \g_tmpb_skip=\skip57 \c_zero_muskip=\muskip11 \c_max_muskip=\muskip12 \l_tmpa_muskip=\muskip13 \l_tmpb_muskip=\muskip14 \g_tmpa_muskip=\muskip15 \g_tmpb_muskip=\muskip16 L3 Module: l3keys 2015/11/17 v6284 L3 Key-value interfaces \g__keyval_level_int=\count280 \l_keys_choice_int=\count281 L3 Module: l3fp 2015/08/25 v5890 L3 Floating points \c__fp_leading_shift_int=\count282 \c__fp_middle_shift_int=\count283 \c__fp_trailing_shift_int=\count284 \c__fp_big_leading_shift_int=\count285 \c__fp_big_middle_shift_int=\count286 \c__fp_big_trailing_shift_int=\count287 \c__fp_Bigg_leading_shift_int=\count288 \c__fp_Bigg_middle_shift_int=\count289 \c__fp_Bigg_trailing_shift_int=\count290 L3 Module: l3box 2015/08/09 v5822 L3 Experimental boxes \c_empty_box=\box26 \l_tmpa_box=\box27 \l_tmpb_box=\box28 \g_tmpa_box=\box29 \g_tmpb_box=\box30 L3 Module: l3coffins 2015/08/06 v5789 L3 Coffin code layer \l__coffin_internal_box=\box31 \l__coffin_internal_dim=\dimen110 \l__coffin_offset_x_dim=\dimen111 \l__coffin_offset_y_dim=\dimen112 \l__coffin_x_dim=\dimen113 \l__coffin_y_dim=\dimen114 \l__coffin_x_prime_dim=\dimen115 \l__coffin_y_prime_dim=\dimen116 \c_empty_coffin=\box32 \l__coffin_aligned_coffin=\box33 \l__coffin_aligned_internal_coffin=\box34 \l_tmpa_coffin=\box35 \l_tmpb_coffin=\box36 \l__coffin_display_coffin=\box37 \l__coffin_display_coord_coffin=\box38 \l__coffin_display_pole_coffin=\box39 \l__coffin_display_offset_dim=\dimen117 \l__coffin_display_x_dim=\dimen118 \l__coffin_display_y_dim=\dimen119 L3 Module: l3color 2014/08/23 v5354 L3 Experimental color support L3 Module: l3sys 2015/09/25 v6087 L3 Experimental system/runtime functions L3 Module: l3candidates 2016/01/14 v6376 L3 Experimental additions to l3kernel \l__box_top_dim=\dimen120 \l__box_bottom_dim=\dimen121 \l__box_left_dim=\dimen122 \l__box_right_dim=\dimen123 \l__box_top_new_dim=\dimen124 \l__box_bottom_new_dim=\dimen125 \l__box_left_new_dim=\dimen126 \l__box_right_new_dim=\dimen127 \l__box_internal_box=\box40 \l__coffin_bounding_shift_dim=\dimen128 \l__coffin_left_corner_dim=\dimen129 \l__coffin_right_corner_dim=\dimen130 \l__coffin_bottom_corner_dim=\dimen131 \l__coffin_top_corner_dim=\dimen132 \l__coffin_scaled_total_height_dim=\dimen133 \l__coffin_scaled_width_dim=\dimen134 L3 Module: l3luatex 2015/11/11 v6250 L3 Experimental LuaTeX-specific functions ) (/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def File: l3pdfmode.def 2015/11/11 v6250 L3 Experimental driver: PDF mode \l__driver_color_stack_int=\count291 )) Package: l3keys2e 2016/01/19 v6377 LaTeX2e option processing using LaTeX3 keys ) (/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty Package: xparse 2016/01/19 v6377 L3 Experimental document command parser \l__xparse_current_arg_int=\count292 \l__xparse_m_args_int=\count293 \l__xparse_mandatory_args_int=\count294 \l__xparse_processor_int=\count295 \l__xparse_v_nesting_int=\count296 ) (/usr/share/texlive/texmf-dist/tex/latex/xassoccnt/xassoccnt.sty Package: xassoccnt 2016/03/05 - v0.6 (/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK) (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive ) Package xcolor Info: Driver file: pdftex.def on input line 225. (/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX \Gread@gobject=\count297 ) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341. Package xcolor Info: Model `RGB' extended on input line 1353. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360. ) \l__xassoccnt_initialcountervalue_int=\count298 \g__xassoccnt_lastcountervalue_int=\count299 \g__xassoccnt_backupcalls_int=\count300 \l__xassoccnt_backuptmpa_int=\count301 \l_xassoccnt_resetlist_counter=\count302 ................................................. . LaTeX info: "xparse/define-command" . . Defining command \SuspendCounters with sig. 'O{}m' on line 606. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ResumeSuspendedCounters with sig. 'O{}m' on line 611. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \DeclareAssociatedCounters with sig. 'omm' on line 622. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \AddDriverCounter with sig. 'O{}m' on line 627. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \AddAssociatedCounters with sig. 'O{}mm' on line 638. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveDriverCounter with sig. 'O{}m' on line 642. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \GetDriverCounter with sig. 'O{,}m' on line 652. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfIsDocumentCounterTF with sig. 'om+m+m' on line 677. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfIsDocumentCounterT with sig. 'om+m' on line 681. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfIsDocumentCounterF with sig. 'om+m' on line 686. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsDriverCounter with sig. 'O{}mmm' on line 691. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsAssociatedToCounter with sig. 'O{}mmmm' on line 699. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsAssociatedCounter with sig. 'O{}mmm' on line 703. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsSuspendedCounter with sig. 'O{}mmm' on line 708. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfExistsDriverCounterList with sig. 'mmm' on line 718. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveAssociatedCounters with sig. 'O{}mm' on line 722. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveAssociatedCounter with sig. 'O{}mm' on line 726. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ClearAssociatedCounters with sig. 'O{}m' on line 730. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ShowAssociatedCountersList with sig. 'm' on line 738. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ShowAllAssociatedCounters with sig. '' on line 744. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ShowDriverCounterList with sig. '' on line 751. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \AddFeature with sig. 'O{sublists=false}m' on line 1134. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveFeature with sig. 'O{}m' on line 1138. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \NewContainer with sig. 'm' on line 1145. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \DeclareCoupledCountersGroup with sig. 'm' on line 1212. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \DeclareCoupledCounters with sig. 'O{}m' on line 1223. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \AddCoupledCounters with sig. 'O{}m' on line 1232. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveCoupledCounters with sig. 'O{}m' on line 1241. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ClearCoupledCounters with sig. 'm' on line 1250. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ClearAllCoupledCounters with sig. '' on line 1258. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsCoupledCounterTF with sig. 'mmm' on line 1262. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsCoupledCounterT with sig. 'mm' on line 1266. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsCoupledCounterF with sig. 'mm' on line 1270. ................................................. ................................................. . LaTeX info: "xparse/redefine-command" . . Redefining command \stepcounter with sig. 'm' on line 1303. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \xassoccnt_addtocounter with sig. 'mmO{}' on line 1316. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \SetDocumentCounter with sig. 'O{associatedtoo=false}mm' on . line 1382. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \StepDownCounter with sig. 'O{}m' on line 1388. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \SubtractFromCounter with sig. 'O{}mm' on line 1392. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \SyncCounters with sig. 'om' on line 1402. ................................................. ................................................. . LaTeX info: "xparse/redefine-command" . . Redefining command \setcounter with sig. 'mm' on line 1410. ................................................. ................................................. . LaTeX info: "xparse/redefine-command" . . Redefining command \refstepcounter with sig. 'm' on line 1417. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \NewDocumentCounter with sig. 'O{initial=\c_zero }mo' on . line 1458. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \CopyDocumentCounters with sig. 'O{}mm' on line 1464. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \SwapDocumentCounters with sig. 'O{}mm' on line 1468. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfInResetListTF with sig. 'omm+m+m' on line 1506. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfInResetListT with sig. 'omm+m' on line 1510. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IfInResetListF with sig. 'omm+m' on line 1514. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \PrettyPrintCounterName with sig. '+mm' on line 1541. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsTotalCounterTF with sig. 'm+m+m' on line 1549. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsTotalCounterT with sig. 'm+m' on line 1554. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsTotalCounterF with sig. 'm+m' on line 1559. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \NewTotalDocumentCounter with sig. 'O{}m' on line 1567. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RegisterTotalDocumentCounter with sig. 'O{}m' on line . 1590. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \TotalValue with sig. 'm' on line 1604. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \TotalCounterInternalName with sig. 'm' on line 1627. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsSuperTotalCounterTF with sig. 'm+m+m' on line 1659. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsSuperTotalCounterT with sig. 'm+m' on line 1664. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \IsSuperTotalCounterF with sig. 'm+m' on line 1669. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \BackupCounterValues with sig. 'O{resetbackup=true}m' on . line 1803. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveBackupCounterInternal with sig. 'sO{}m' on line . 1827. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RemoveBackupCounters with sig. 'sO{}m' on line 1842. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RestoreAllCounterValues with sig. 'O{}' on line 1848. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RestoreCounterValues with sig. 'O{}m' on line 1857. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \AddBackupCounter with sig. 'O{}m' on line 1874. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \EnableNumberofrunsTF with sig. 'mm' on line 1888. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \DeclareDocumentCounter with sig. 'O{initial={0}}mo' on . line 1898. ................................................. \c@numberofruns=\count303 \c@xassoccnt@total@numberofruns=\count304 ) \l_tracklevelunit_int=\count305 \l_tracklevel_tracked_int=\count306 ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RegisterMultipleTrackCounters with sig. 'mm' on line 78. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RegisterTrackCounter with sig. 'mm' on line 94. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \StoreCounterValues with sig. 'm' on line 128. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \AddToTrackedCounters with sig. 'mm' on line 168. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \TrackCounters with sig. '' on line 182. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \cntperchapsetup with sig. '' on line 187. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \LoadTrackedValues with sig. '' on line 195. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \CloseTrackFileForWrite with sig. '' on line 226. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \OpenTrackFileForWrite with sig. 'm' on line 231. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ObtainTrackedValue with sig. 'omm' on line 277. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ObtainTrackedValueExp with sig. 'omm' on line 296. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \GetStoredValues with sig. '' on line 301. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \tracklabel with sig. 'som' on line 334. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \ObtainTrackedValueByLabel with sig. 'omm' on line 346. ................................................. ................................................. . LaTeX info: "xparse/define-command" . . Defining command \RegisterCounters with sig. 'mm' on line 351. ................................................. ) Package biblatex Info: Trying to load language 'USenglish'... Package biblatex Info: ... file 'USenglish.lbx' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/lbx/USenglish.lbx File: USenglish.lbx 2016/03/03 v3.3 biblatex localization (PK/JW/AB) Package biblatex Info: Trying to load language 'american'... Package biblatex Info: ... file 'american.lbx' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/lbx/american.lbx File: american.lbx 2016/03/03 v3.3 biblatex localization (PK/JW/AB) Package biblatex Info: Trying to load language 'english'... Package biblatex Info: ... file 'english.lbx' found. (/usr/share/texlive/texmf-dist/tex/latex/biblatex/lbx/english.lbx File: english.lbx 2016/03/03 v3.3 biblatex localization (PK/JW/AB) ))) Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing. (biblatex) Loading 'csquotes' recommended. \@quotelevel=\count307 \@quotereset=\count308 (./mwe.aux) \openout1 = `mwe.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. Package biblatex Info: No input encoding detected. (biblatex) Assuming 'ascii'. Package biblatex Info: Automatic encoding selection. (biblatex) Assuming data encoding 'ascii'. \openout3 = `mwe-blx.bib'. Package biblatex Info: Trying to load bibliographic data... Package biblatex Info: ... file 'mwe.bbl' found. (./mwe.bbl) Package biblatex Info: Reference section=0 on input line 5. Package biblatex Info: Reference segment=0 on input line 5. (/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count309 \scratchdimen=\dimen135 \scratchbox=\box41 \nofMPsegments=\count310 \nofMParguments=\count311 \everyMPshowfont=\toks15 \MPscratchCnt=\count312 \MPscratchDim=\dimen136 \MPnumerator=\count313 \makeMPintoPDFobject=\count314 \everyMPtoPDFconversion=\toks16 ) \g__file_internal_ior=\read2 \g_trackfile_storage_write=\write4 \openout4 = `mwe.cpc'. [1 {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./mwe.aux) Package logreq Info: Writing requests to 'mwe.run.xml'. \openout1 = `mwe.run.xml'. ) (\end occurred when \iftrue on line 5 was incomplete) Here is how much of TeX's memory you used: 14535 strings out of 493029 272506 string characters out of 6136233 392146 words of memory out of 5000000 17997 multiletter control sequences out of 15000+600000 3640 words of font info for 14 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 43i,5n,45p,10394b,1449s stack positions out of 5000i,500n,10000p,200000b,80000s Output written on mwe.pdf (1 page, 11070 bytes). PDF statistics: 12 PDF objects out of 1000 (max. 8388607) 7 compressed objects within 1 object stream 0 named destinations out of 1000 (max. 500000) 1 words of extra memory for PDF output out of 10000 (max. 10000000) ```
lervag commented 5 years ago

I can't reproduce this. Which version of Vim are you on? Could you copy the content of \li (or :VimtexInfo) here?

soerenwolfers commented 5 years ago
System info
  OS: Ubuntu 16.04.5 LTS
  Vim version: VIM 8.1 (1-610)
  Has clientserver: true
  Servername: undefined (vim started without --servername)

vimtex project: mwe
  base: mwe.tex
  root: /home/wolfersf/tmp
  tex: /home/wolfersf/tmp/mwe.tex
  out: /home/wolfersf/tmp/mwe.pdf
  log: /home/wolfersf/tmp/mwe.log
  aux: /home/wolfersf/tmp/mwe.aux
  fls: /home/wolfersf/tmp/mwe.fls
  compiler: latexmk
    backend: jobs
    output: /tmp/vd8Mfwa/1
    configuration: 
      continuous: 1
      callback: 1
      latexmk options:
        -verbose
        -file-line-error
        -synctex=1
        -interaction=nonstopmode
      latexmk engine: -pdf
    job: process 16154 run
    cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf 
  viewer: General
  qf: LaTeX logfile
    config: 
      fix_paths: 1
      packages: 
        default: 1
      default: 1
  document class: article
  packages:
    babel
    biblatex
    xcntperchap
lervag commented 5 years ago

Ok, what happens if you do vim --servername VIM -u minivimrc mwe.tex?

lervag commented 5 years ago

It seems you did not get all of the latexmk / cmd in your copy from \li. Could you paste that here as well?

soerenwolfers commented 5 years ago

vim --servername VIM -u vimrc mwe.tex gives the same compilation failed. Here is the corresponding complete VimtexInfo output.

System info
  OS: Ubuntu 16.04.5 LTS
  Vim version: VIM 8.1 (1-610)
  Has clientserver: true
  Servername: VIM

vimtex project: mwe
  base: mwe.tex
  root: /home/wolfersf/tmp
  tex: /home/wolfersf/tmp/mwe.tex
  out: /home/wolfersf/tmp/mwe.pdf
  log: /home/wolfersf/tmp/mwe.log
  aux: /home/wolfersf/tmp/mwe.aux
  fls: /home/wolfersf/tmp/mwe.fls
  compiler: latexmk
    backend: jobs
    output: /tmp/vTbzNBx/1
    configuration: 
      continuous: 1
      callback: 1
      latexmk options:
        -verbose
        -file-line-error
        -synctex=1
        -interaction=nonstopmode
      latexmk engine: -pdf
    job: process 3904 run
    cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -pvc -e '$pdf_previewer = "xdg-open"' -e '$success_cmd = "echo vimtex_compiler_callback_success"' -e '$failure_cmd = "echo vimtex_compiler_callback_failure"' 'mwe.tex'
  viewer: General
  qf: LaTeX logfile
    config: 
      fix_paths: 1
      packages:  
        default: 1
      default: 1
  document class: article
  packages:
    babel
    biblatex
    xcntperchap
lervag commented 5 years ago

Are you proficient enough to make a minor edit to autoload/vimtex/compiler/latexmk.vim? If so, could you apply the following patch and try again?

g--> git diff
diff --git a/autoload/vimtex/compiler/latexmk.vim b/autoload/vimtex/compiler/latexmk.vim
index 4813bf3..40a844d 100644
--- a/autoload/vimtex/compiler/latexmk.vim
+++ b/autoload/vimtex/compiler/latexmk.vim
@@ -184,7 +184,7 @@ function! s:compiler.build_cmd() abort dict " {{{1
     endif

     if self.callback
-      if has('job') || has('nvim')
+      if 0
         for [l:opt, l:val] in items({
               \ 'success_cmd' : 'vimtex_compiler_callback_success',
               \ 'failure_cmd' : 'vimtex_compiler_callback_failure',
soerenwolfers commented 5 years ago

Still the same (I don't have to compile anything, right? I just edited the file)

System info
  OS: Ubuntu 16.04.5 LTS
  Vim version: VIM 8.1 (1-610)
  Has clientserver: true
  Servername: VIM

vimtex project: mwe
  base: mwe.tex
  root: /home/wolfersf/tmp
  tex: /home/wolfersf/tmp/mwe.tex
  out: /home/wolfersf/tmp/mwe.pdf
  log: /home/wolfersf/tmp/mwe.log
  aux: /home/wolfersf/tmp/mwe.aux
  fls: /home/wolfersf/tmp/mwe.fls
  compiler: latexmk
    backend: jobs
    output: /tmp/v0ymtlG/1
    configuration: 
      continuous: 1
      callback: 1
      latexmk options:
        -verbose
        -file-line-error
        -synctex=1
        -interaction=nonstopmode
      latexmk engine: -pdf
    job: process 13126 run
    cmd: max_print_line=2000 latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf 
-pvc -e '$pdf_previewer = "xdg-open"' -e '$success_cmd = "'""'/usr/bin/vim.gtk3'""' --servername 'VIM' --remote-expr \"vimtex\#compiler\#callback(1)\""' -e '$failure_cmd = "'""'/usr/bin/vim.gtk3'""' --servername 'VIM' --remote-expr \"vimtex\#compiler\#callback(0)\""' 'mwe.tex'
  viewer: General
  qf: LaTeX logfile
    config: 
      fix_paths: 1
      packages: 
        default: 1
      default: 1
  document class: article
  packages:
    babel
    biblatex
    xcntperchap
soerenwolfers commented 5 years ago

More observations:

I can run :VimtexCompile twice more (first to stop it, then to start it again) and then I get a success most of the times. I did this a lot of times and noticed that sometimes it only works at the third start of the compilation process, and sometimes the issue is not even reproducible, that is, I get a success on the first compilation run sometimes.

(The same observations hold if instead of stopping and starting the compiler I exit vim and open it again)

I don't think this is related to your patch though. I had observed before that sometimes I couldn't reproduce the issue, but made myself believe that this was because I had forgotten to delete some mwe.* auxiliary files)

lervag commented 5 years ago

Still the same (I don't have to compile anything, right? I just edited the file)

Yes, it should be enough to edit the file. Since it does not work you may revert to the original content.

So, let's try to dig deeper. It is difficult, since I can't reproduce, so you'll have to do the debugging.

  1. Start from a clean minimal example and go to the step where you get "compilation failed". Does it open the quickfix window? If so, which errors are listed there? (Feel free to copy the contents of the quickfix buffer here... remember to set wrap to copy all of the text in case you use mouse select to copy.)

  2. If qf-window does not open, what happens when you do \le or :VimtexErrors?

lervag commented 5 years ago

(Oh, and btw: Thanks for the donation!)

soerenwolfers commented 5 years ago

Just to be sure I'm not missing anything, here is a screencast of what is going on:

https://streamable.com/ya1nq

In this case, I get a successful compilation at the third try. The quickfix window just shows a warning from bibtex:

mwe.tex|| Package biblatex Warning: 'babel/polyglossia' detected but 'csquotes' missing. Loading 'csquotes' recommended.

(I thought the donation would be anonymous, I guess that only applied to the address then. Well, thanks for the efforts. I only recently switched from texstudio and am already much faster and my hands feel much more relaxed)

lervag commented 5 years ago

Hmm, that is strange. After the first compilation failed, can you do \lo and inspect the output? Perhaps that can indicate something useful. As you see, the entry in the quickfix window is a warning, and so it should not lead to failed compilation.

soerenwolfers commented 5 years ago

Sorry it took so long for the update.

1: Latexmk says: Maximum runs of pdflatex reached without getting stable files 2: Each call of pdflatex apparently stops after the output

(\end occurred when \iftrue on line 5 was incomplete)</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>

but then says

Output written on mwe.pdf (1 page, 10806 bytes).

Full output is here: https://textuploader.com/1aklz

If we can't manage to get to the ground of what is wrong with the pdflatex runs, could vimtex maybe still open the pdf viewer at the end of the compilation process as long as an "output written on ..." line is present? I don't think anyone would complain to see a pdf, even if it was broken.

lervag commented 5 years ago

Thanks. I notice you are using version 4.41 of latexmk. I'm on 4.61. Your version is 4 years old, see here. Can you update latexmk and see if this solves your issue?

lervag commented 5 years ago

I also notice you are using TexLive 2015. Which distribution (and version) are you on?

Note, I suspect you will have the same error if you do the following in a terminal.

latexmk -verbose -synctex=1 -interaction=nonstopmode -pdf -pvc mwe.tex

If this is the case, then I think this problem is not really a vimtex problem.

soerenwolfers commented 5 years ago

Updating latexmk to 4.61 didn't help.

The command gives the same log as I got through vimtex.

As I mentioned above, the pdf still is created and looks just fine. What do you think about my suggestion to just start the viewer anyway as long as a pdf is created? I don't think anyone would feel annoyed by being shown the pdf even if it is not perfect according to latexmk.

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:   xenial
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
lervag commented 5 years ago

As I mentioned above, the pdf still is created and looks just fine. What do you think about my suggestion to just start the viewer anyway as long as a pdf is created?

I don't quite like it, because it feels to hacky. I would much rather try to understand what is happening here. As far as I can tell, you are the only one who have this particular problem, so "fixing" it by adding such a hack does not seem very clean.

So, back to your problem. If I understand correctly, you can reproduce the problem without Vim and vimtex by issuing the latexmk command in a terminal. Am I right?

Have you tried to update TeXLive?

soerenwolfers commented 5 years ago

That solved it :) Now we'll never know what went wrong.

(Btw, I followed the "instructions" here, for anyone having the same problems with updating texlive on Ubuntu 16)

lervag commented 5 years ago

Great, thanks for the info! I think as I said that the problem was never really a bug in vimtex, instead perhaps a bug with your LaTeX installation. For instance, it could have been a bug in your version of the biblatex package.