Package: rubber
Version: 1.1-2.4
Severity: normal

If I compile a .tex file that is using \usepackage{xparse}, rubber can
compile
it correctly:

$ rubber bla.tex
compiling bla.tex...
$ echo $?
0

However, if I provide it the '--warn all' argument, the following traceback
is
printed:

$ rubber --warn all bla.tex
compiling bla.tex...
Traceback (most recent call last):
  File "/usr/bin/rubber", line 9, in <module>
    sys.exit(Main()(sys.argv[1:]))
  File "/usr/share/rubber/rubber/cmdline.py", line 296, in __call__
    return self.main(cmdline)
  File "/usr/share/rubber/rubber/cmdline.py", line 282, in main
    refs=self.warn_refs, warnings=self.warn_misc))
  File "/usr/share/rubber/rubber/__init__.py", line 136, in display_all
    for msg in generator:
  File "/usr/share/rubber/rubber/rules/latex/__init__.py", line 416, in
parse
    last_file = self.update_file(line, pos, last_file)
  File "/usr/share/rubber/rubber/rules/latex/__init__.py", line 444, in
update_file
    last = stack[-1]
IndexError: list index out of range
$ echo $?
1

Without the xparse package:
$ rubber --warn all bla.tex
compiling bla.tex...
$ echo $?
0



And here is a sample file:
$ cat bla.tex
\documentclass{article}
\usepackage{xparse}
\begin{document}
Test
\end{document}
$


Best regards,
Pitxyoki


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rubber depends on:
ii  python                  2.6.6-3+squeeze2 interactive high-level
object-orie
ii  python-support          1.0.10           automated rebuilding support
for P
ii  texlive-latex-base      2009-11          TeX Live: Basic LaTeX packages

rubber recommends no packages.

Versions of packages rubber suggests:
pn  imagemagick                   <none>     (no description available)
pn  sam2p                         <none>     (no description available)
pn  transfig                      <none>     (no description available)

-- no debconf information

Reply via email to