I previously used nomencl without issues, but I recently got this problem I cannot solve.
Below you can find a MWE. I use TeXworks. The first line comes from here. Even after multiple runs of the "pdfLaTeX" command, no nomenclature is printed.
This is most baffling to me, because the same document had previously a nomenclature created in this way.
I cannot identify where it stopped showing, and the MWE that does not produce it, also does not contain any of the latest included packages of the original document, so I would exclude any possible conflict between packages.
MWE:
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[english]{article}
% Packages
\usepackage[english]{babel}
\usepackage{nomencl}
\title{ \LARGE \bf title\\}
\makenomenclature
% Start Document
\begin{document}
\maketitle
\printnomenclature
\nomenclature{foo}{a function}
\nomenclature{bar}{an argument}
\nomenclature[a]{fubar}{an undesired result}
\section{test}
\end{document}
% End Document
Result:
What am I doing wrong? Otherwise, what should I do to fix this issue?

pdflatex -shell-escape <file>.tex. See this. – Phelype Oleinik Apr 24 '18 at 13:00makeindexcommand line and generated the .nls file, then subsequent runs ofpdflatexread that into the nomenclature section. – Phelype Oleinik Apr 24 '18 at 13:21