Biber 2.14 坏了?- Biber 警告:[557] Utils.pm:304> WARN - Entry ...'(....bib):日期字段'date'的格式'2018'无效 - 忽略

Biber 2.14 坏了?- Biber 警告:[557] Utils.pm:304> WARN - Entry ...'(....bib):日期字段'date'的格式'2018'无效 - 忽略

编辑降级 biber 并再次更新它(使用 tex Live)解决了这个问题

➜  latex tlmgr restore biber
Available backups for biber: 50203 (2020-02-05 09:07)
➜  latex tlmgr restore biber 50203
Do you really want to restore biber to revision 50203 (y/N): y
Restoring biber, 50203 from /usr/local/texlive/2019/tlpkg/backups/biber.r50203.tar.xz
running mktexlsr ...
done running mktexlsr.
running mtxrun --generate ...
done running mtxrun --generate.
tlmgr: package log updated: /usr/local/texlive/2019/texmf-var/web2c/tlmgr.log
➜  biber -v
biber version: 2.14

Run Tex Live and update biber, should work now

几天前,我尝试编译我以前可以运行的作品,但 Biber 2.14 无法再解析我的 bib 文件中的任何日期。我遇到了以下几页错误(并且输出中没有添加任何引用)。

以前编译时没有任何错误('...'只是为了消除噪音)。

最新的 biber 有错误(在使用上述命令恢复之前):

Biber warning: [558] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-05-17' of date field 'urldate' - ignoring
Biber warning: [563] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2013' of date field 'date' - ignoring
Biber warning: [563] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2018-12-15' of date field 'urldate' - ignoring
Biber warning: [573] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2008' of date field 'date' - ignoring
Biber warning: [583] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2014' of date field 'date' - ignoring 
Biber warning: [584] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-05-19' of date field 'urldate' - ignoring 
Biber warning: [588] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2017' of date field 'date' - ignoring
Biber warning: [589] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2018-12-27' of date field 'urldate' - ignoring
Biber warning: [591] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '1997' of date field 'date' - ignoring
Biber warning: [592] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-05-18' of date field 'urldate' - ignoring
Biber warning: [602] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-06-01' of date field 'date' - ignoring
Biber warning: [603] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2020-02-16' of date field 'urldate' - ignoring
Biber warning: [608] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2005' of date field 'date' - ignoring
Biber warning: [611] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2016' of date field 'date' - ignoring 
Biber warning: [611] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2020-02-26' of date field 'urldate' - ignoring 
Biber warning: [618] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2018' of date field 'date' - ignoring 
Biber warning: [618] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2018-12-15' of date field 'urldate' - ignoring 
Biber warning: [623] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2016' of date field 'date' - ignoring
Biber warning: [624] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-05-10' of date field 'urldate' - ignoring
Biber warning: [629] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2004' of date field 'date' - ignoring
Biber warning: [629] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2018-12-15' of date field 'urldate' - ignoring
Biber warning: [634] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '1999' of date field 'date' - ignoring 
Biber warning: [635] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-07-09' of date field 'urldate' - ignoring 
Biber warning: [637] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2006' of date field 'date' - ignoring
Biber warning: [637] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-07-07' of date field 'urldate' - ignoring
Biber warning: [648] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2017' of date field 'date' - ignoring
Biber warning: [648] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2018-12-27' of date field 'urldate' - ignoring
Biber warning: [656] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019' of date field 'date' - ignoring
Biber warning: [657] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2019-07-02' of date field 'urldate' - ignoring
Biber warning: [662] Utils.pm:304> WARN - Entry '...' (x.bib): Invalid format '2015' of date field 'date' - ignoring

编辑,将被拒绝的样本:

书目

@article{parisAntisocialBorderlinePersonality1997,
  title = {Antisocial and Borderline Personality Disorders: {{Two}} Separate Diagnoses or Two Aspects of the Same Psychopathology?},
  shorttitle = {Antisocial and Borderline Personality Disorders},
  author = {Paris, Joel},
  date = {1997},
  journaltitle = {Comprehensive Psychiatry},
  shortjournal = {Comprehensive Psychiatry},
  volume = {38},
  pages = {237--242},
  issn = {0010440X},
  doi = {10.1016/S0010-440X(97)90032-8},
  url = {https://linkinghub.elsevier.com/retrieve/pii/S0010440X97900328},
  urldate = {2019-05-18},
  langid = {english},
  number = {4}
}

样本

\documentclass[a4paper,man,floatsintext,12pt]{apa6}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{multirow}
\usepackage{fontspec}
\usepackage{pdflscape}
\usepackage{color,soul}
\usepackage{tikz}
\usepackage{graphicx}
\usetikzlibrary{positioning}
\usepackage{lastpage}
\setmainfont{Times New Roman}
\addbibresource{x.bib}
\authornote{x}
\title{x}
\shorttitle{x}
\author{x}
\affiliation{x}
\abstract{
x
}
\keywords{x}

\begin{document}

\maketitle

\parencite{parisAntisocialBorderlinePersonality1997}

\printbibliography

\end{document}

命令

latexmk -pdf -xelatex

答案1

如上所述,从命令行(latex tlmgr restore biber)回滚,然后再次更新到最新版本解决了问题。我不确定是什么原因造成的(可能是与其他软件包一起安装的顺序……?)

进一步编辑,Biber 缓存已损坏,因此可以解决此问题的步骤如下:

清理构建

latexmk -c

并清除 biber 缓存

rm -rf `biber --cache`

相关内容