我是已知的 biblatex-biber 漏洞的受害者,描述如下这里这会导致大量虚假的缺失引用,只有删除 biber 缓存(数十个文件)才能解决。以前这种情况偶尔发生,但现在却让我抓狂——我必须在多个项目的每次编译中删除缓存。
在我完全放弃 biber 之前,有人知道这个错误的状态和缓存的用途吗?
答案1
抱歉回复得这么慢。我已经详细研究了这个问题,这个错误非常明显是由于存储在缓存中的运行时数据造成的。Latex 运行显然会改变缓存。我不得不把我的发现作为答案,因为评论没有足够的解释。如果能以某种方式解决这个问题,那就太好了
这是我最后一次运行,该场景及其再现完全可重现。首先,我们从许多用户遇到的场景开始,即根本找不到引用。
尝试单独运行 biber 会产生以下输出:
Biber 运行为:“%texpath%bin\win32\biber.exe” “%dirname%”
输出:INFO - 这是 Biber 1.7 INFO - 日志文件为“familytree.blg”数据源 C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\recode_data.xml 未找到。按任意键继续...
然后我什么也没做,只是删除了位于
C:\用户\aubrey1\应用程序数据\本地\Temp\par-61756272657931\缓存-c3e641bac9e7e4b5ab17068122bff38686710985
然后重新运行相同的 biber 命令,得到以下输出
Type option:t
INFO - This is Biber 1.7
INFO - Logfile is 'familytree.blg'
INFO - Reading 'familytree.bcf'
INFO - Found 94 citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file '../bibfiles/testtypes.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source '../bibfiles/testtypes.bib'
WARN - BibTeX subsystem: C:\Users\aubrey1\AppData\Local\Temp\1PpfasL1rn\testtypes.bib_12504.utf8, line 2580, warning: possible runaway string started at line 2575
WARN - BibTeX subsystem: C:\Users\aubrey1\AppData\Local\Temp\1PpfasL1rn\testtypes.bib_12504.utf8, line 2744, warning: possible runaway string started at line 2723
WARN - BibTeX subsystem: C:\Users\aubrey1\AppData\Local\Temp\1PpfasL1rn\testtypes.bib_12504.utf8, line 3394, warning: possible runaway string started at line 3366
INFO - Looking for bibtex format file 'local.bib' for section 0
INFO - Decoding LaTeX character macros into UTF-8
INFO - Found BibTeX data source 'local.bib'
WARN - I didn't find a database entry for '[[bigsheet]]' (section 0)
INFO - Overriding locale 'English_United States.1252' default tailoring 'variable = shifted' with 'variable = non-ignorable'
INFO - Sorting 'entry' list 'none' keys
INFO - No sort tailoring available for locale 'English_United States.1252'
INFO - Writing 'familytree.bbl' with encoding 'UTF-8'
INFO - Output to familytree.bbl
INFO - WARNINGS: 4
对于知道文件应该在那里做什么的人来说,这里有一个指向再生前后缓存差异的链接(通过 winmerge 的 html 格式)
以下是删除前的缓存文件夹(通过 Winmerge)和重新生成的缓存(作为 csv 文件)的比较。显然,删除前缓存中有数百个文件在重新生成时不存在。因此,缓存不能简单地解压程序代码。由于答案长度的限制,我只显示了前十分之一的差异
Compare C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985 with Copy before deleting2\cache-c3e641bac9e7e4b5ab17068122bff38686710985
29/11/2014 22:53:21
Filename,Folder,Comparison result,Left Date,Right Date,Extension,Differences
Algorithm,inc\lib,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib,* 29/11/2014 22:36:44,,,
attributes,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:47,,,
B,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
BerkeleyDB,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
Compress,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
Raw,inc\lib\auto\Compress,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\Compress,* 29/11/2014 22:36:46,,,
Bzip2,inc\lib\auto\Compress\Raw,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\Compress\Raw,* 29/11/2014 22:36:46,,,
Zlib,inc\lib\auto\Compress\Raw,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\Compress\Raw,* 29/11/2014 22:36:46,,,
Crypt,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
SSLeay,inc\lib\auto\Crypt,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\Crypt,* 29/11/2014 22:36:46,,,
Cwd,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
Data,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
Dumper,inc\lib\auto\Data,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\Data,* 29/11/2014 22:36:46,,,
DBD,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
mysql,inc\lib\auto\DBD,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\DBD,* 29/11/2014 22:36:46,,,
ODBC,inc\lib\auto\DBD,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\DBD,* 29/11/2014 22:36:46,,,
Pg,inc\lib\auto\DBD,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\DBD,* 29/11/2014 22:36:46,,,
SQLite,inc\lib\auto\DBD,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\DBD,* 29/11/2014 22:36:46,,,
DBI,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:46,,,
Devel,inc\lib\auto,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto,* 29/11/2014 22:36:47,,,
PPPort,inc\lib\auto\Devel,Left only: C:\Users\aubrey1\AppData\Local\Temp\par-61756272657931\cache-c3e641bac9e7e4b5ab17068122bff38686710985\inc\lib\auto\Devel,* 29/11/2014 22:36:47,,,