BibTeX, biblatex and biberYou can't pop an empty literal stack for entry ... while executing---line ... of file ...

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
teub
Posts: 4
Joined: Fri Dec 07, 2018 2:55 pm

You can't pop an empty literal stack for entry ... while executing---line ... of file ...

Post by teub »

Dear experts,
I have been provided a file to handle references in a project and after some modifications of this file, I am able to have all my references displayed nicely. But I have numerous warnings as :
You can't pop an empty literal stack for entry ESPP2013 while executing---line 1235 of file fcc.bst
This entry is a Misc (I have intentionnaly removed informations in title, Url and HowPublished)
Note that this warning happens for all type of entries defined in the fcc.bst file.

Code: Select all

@Misc{ESPP2013,
Title = {{The title}},
Url = {https://.../...},
Year = {2013},
HowPublished = {{Document}}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I have seen several topics for this kind of issue but after 1 day of investigations, my lack of knowledge asked me to talk in this forum. So I would like you to help me to understand what is making this warning (I have hundreds of them).
The fcc.bst file content is :

Code: Select all

Code, edit and compile here:
% ...
%
% ...
%
% History:
% 2008-11-06 (MC) fixed bugs in format.collaboration and format.journal
% 2008-10-24 (MC) changed journal, title and \etal italicization
% 2008-10-22 (MC) adapted collaboration entry from
% ...
%
ENTRY
{ address
author
booktitle
chapter
edition
editor
howpublished
institution
journal
key
month
note
number
organization
pages
publisher
school
series
title
type
volume
year
archive
eprint
report
collaboration
SLACcitation
archivePrefix
primaryClass
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thanks a lot.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

You can't pop an empty literal stack for entry ... while executing---line ... of file ...

Post by kaiserkarl13 »

That's not a warning, it's an error. BibTeX is trying to tell you that you tried to remove an item from the stack, but there are no items on it. Think of it like being told to draw a card, but there are no more cards to draw.

It's coming from the fact that you modified the add.doi function and did a couple of other things. I didn't have time to track down exactly what broke it, but I would suggest you go through the changes you made from the (working) original, one-by-one, and see which one broke your bst file. Don't ignore the error messages!
teub
Posts: 4
Joined: Fri Dec 07, 2018 2:55 pm

You can't pop an empty literal stack for entry ... while executing---line ... of file ...

Post by teub »

Ok I am now back to the original file and I have issues I am not understanding.

0/ The original fcc.bst :

Code: Select all

Code, edit and compile here:
% ...
%
% ...
%
% ...
% ...
% ...
% ...
% ...
%
ENTRY
{ address
author
booktitle
chapter
edition
editor
howpublished
institution
journal
key
month
note
number
organization
pages
publisher
school
series
title
type
volume
year
archive
eprint
report
collaboration
SLACcitation
archivePrefix
primaryClass
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
question 1/ how to modify this code to get the DoI value defined to appear in the preview without breaking the whole structure ?

question 2/ I am seeing that in the case of an article I still have such warnings :
You can't pop an empty literal stack for entry ... while executing---line ... of file fcc.bst
by looking at article references without any complain, I have found that if there is the month defined it makes this warning happening and if in this same entry I remove month it is not complaining ???

By following month, I fall in the "function" format.journal and format.date.paren, but I have no knowledge in this language to get any clever debugging alone.

Example of reference making the warning (and warning disappearing when no month entry):

Code: Select all

@Article{bib:parameter,
Title = {{tile}},
Author = {M.~Name},
Journal = {journal},
Year = {2015},
Month = {October},
Doi = {doi_path},
Number = {10},
Pages = {101002},
Volume = {18}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I hope to have any help to these very precise questions.
teub
Posts: 4
Joined: Fri Dec 07, 2018 2:55 pm

You can't pop an empty literal stack for entry ... while executing---line ... of file ...

Post by teub »

question 1 fix found :
by trying completely randomly I have found the following fix

Code: Select all

% {"\href{http://dx.doi.org/" doi * "}{" * swap$ * "}" *}
{", DOI:" * doi * " \href{http://dx.doi.org/" doi * "}{" * swap$ * "}" *}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
question 2 "fix" found :
I will put into year the month + year info :cry:
I cannot do better, hope to have a clever person who could help me soon.
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

You can't pop an empty literal stack for entry ... while executing---line ... of file ...

Post by kaiserkarl13 »

This is different from what you previously posted because it leaves swap$ in place (i.e., it takes the top entry of the stack and swaps it with the next one, rather than adding the DOI to the stack and leaving that entry in place). Without spending more time reconstructing your stack, I couldn't tell you why that fixed it, but leaving the stack alone except for additional entries you want written to the file is typically the way to go to avoid such errors.
teub
Posts: 4
Joined: Fri Dec 07, 2018 2:55 pm

You can't pop an empty literal stack for entry ... while executing---line ... of file ...

Post by teub »

I give up....
Post Reply