I ran into an issue with the following code
\begin{document}
\begin{frame}[fragile] % Start of frame
\begin{columns}[t]
\begin{column}{.02\textwidth}\end{column} % Empty spacer column
\begin{column}{.465\textwidth} % The first column
\begin{block}
\begin{minted}{c}
int main() {
return 0;
}
\end{minted}
\end{block}
\end{column}
\end{columns}
\end{frame} % End of frame
\end{document}
With the following error
Runaway argument?
! File ended while scanning use of \next.
<inserted text>
\par
I'm putting my solution here because I wasted hours trying to figure out what went wrong with such a cryptic error message
\documentclassand relevant\usepackages? It seems strange that indenting\end{frame}and putting comments after it would cause problems... – Herr K. Jan 29 '15 at 18:49beamer(one of the tags), due to the way thefragileoption causes frames with verbatim material to be processed. – Gonzalo Medina Jan 29 '15 at 19:32knitruntil I found this discussion, especially the answer of glitchyme. – Migue Lo Jul 28 '20 at 20:06