obster-y / XJTU-thesis

西安交通大学学位论文模板(LaTeX)(适用硕士、博士学位)An official LaTeX template for Xi'an Jiaotong University degree thesis (Chinese and English)
LaTeX Project Public License v1.3c
231 stars 50 forks source link

[BUG] [TeX] 使用`latexmk`首次编译时,提示`Could not find all biber source files for 'main'` #104

Closed ZhangSongyi closed 1 year ago

ZhangSongyi commented 1 year ago

软件信息

Bug 说明

日志中的biber

------------
Running 'biber --quiet  "main.bcf"'
------------
Latexmk: applying rule 'biber main'...
Latexmk: Failed to find one or more biber source files:
Rule 'xelatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'Main_Spine/c1.aux'
      'Main_Spine/c2.aux'
      'Main_Spine/c3.aux'
      'Main_Spine/c4.aux'
      'Main_Spine/c5.aux'
      'Main_Spine/c6.aux'
      'main.aux'
      'main.bbl'
      'main.gls'
      'main. Listing'

日志末尾返回值段

Latexmk: All targets (main.xdv main.pdf) are up-to-date
Collected error summary (may duplicate other messages):
  biber main: Could not find all biber source files for 'main'
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.
C:\texlive\2020\bin\win32\runscript.tlu:915: command failed with exit code 12:
perl.exe c:\texlive\2020\texmf-dist\scripts\latexmk\latexmk.pl 

一个可能的解决方案

附件 包含quiet选项的输出日志 不含quiet选项的输出日志

ZhangSongyi commented 1 year ago

虽然pdf是正常的,但是不返回成功对于其他应用来说很不友好 比如VS Code 的 LaTeX Workshop 插件就是靠检查返回值来刷新 pdf 预览的

另外,提供的vscode配置文件中包含了"latex-workshop.latex.autoClean.run": "onFailed",一项 这就导致了返回失败会自动触发临时文件清除,最后永远也没法成功