Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when /.lastretry fails #672

Closed
schtandard opened this issue May 6, 2019 · 0 comments
Closed

Error when /.lastretry fails #672

schtandard opened this issue May 6, 2019 · 0 comments

Comments

@schtandard
Copy link
Contributor

schtandard commented May 6, 2019

This code

\documentclass{article}

\usepackage{pgfkeys}

\begin{document}

%\pgfkeys{/a/.code=(a:#1)}
%\pgfkeys{/b/.code=(b:#1)}

\pgfkeys{/a/.try=one,/b/.lastretry=two}

\ifpgfkeyssuccess Yes\else No\fi

\end{document}

leads to this error

(test03.aux)
Runaway argument?
\relax \pgfkeys@unknown \fi \fi \else \pgfkeys@unknown \fi \fi \fi \fi \ETC.
! Paragraph ended before \pgfkeys@remove@slash was complete.
<to be read again> 
				   \par 
l.12 

(If either of the commented \pgfkeys lines is uncommented, or if lastretry is replaced with retry, there is no error, as expected.)

@hmenke hmenke added the pgfkeys label May 6, 2019
hmenke added a commit to hmenke/pgf that referenced this issue May 12, 2019
It looks like after \pgfkeys@try the .lastretry suffix is already discarded so
another discard will just leave an empty key.  I've also added a safeguard for
empty keys so that they produce slightly less obscure error messages.
hmenke added a commit that referenced this issue May 12, 2019
It looks like after \pgfkeys@try the .lastretry suffix is already discarded so
another discard will just leave an empty key.  I've also added a safeguard for
empty keys so that they produce slightly less obscure error messages.
@hmenke hmenke closed this as completed May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants