[Tex/LaTex] UML Sequence Diagram with PGF and Tikz produces “No shape named inst1 is known”

tikz-pgfwindows

I've recently started using LaTeX for all my documentation and can't believe I didn't do this sooner! It's so quick to get good-quality documentation produced, and the LaTeX format serves brilliantly as an interim format for conversion to others. I'm having a lot of fun 😀

What I want to do presently is write a sequence diagram for a software build process. I'm using Tex Live 2011 and pdflatex (same result using plain old latex) in Cygwin on Windows XP to process my .tex file:

\documentclass{article}

\usepackage{tikz}
\usepackage{pgf-umlsd}
\usepgflibrary{arrows} % for pgf-umlsd
\begin{document}

\begin{figure}
  \centering

  \begin{sequencediagram}
  \end{sequencediagram}

\end{figure}

\end{document}

As you can see, it's very simple.

When I run this through latex/pdflatex I get:

) (./build-process.aux) ABD: EveryShipout initializing macros

! Package pgf Error: No shape named inst1 is known.

See the pgf package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.12   \end{sequencediagram}

? 

What am I doing wrong? Furthermore, will my platform and software suffice to allow me to write sequence diagrams in LaTeX?

Thanks in advance!

Best Answer

I think you're using a somewhat old version from pgf-umlsd.sty which does not support empty diagrams. Version 0.6 should fix this (and does that in my case) and TeX Live 2011 uses 0.5 as far as I could see.

You could download it from: http://code.google.com/p/pgf-umlsd