rob-smallshire / cartouche

A Sphinx extension to convert help() friendly docstrings to Sphinx markup
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Missing argument name causes failure #3

Closed rob-smallshire closed 11 years ago

rob-smallshire commented 11 years ago

Original author: robert.smallshire@gmail.com (June 29, 2012 06:59:40)

Issue imported from hieroglyph

Running Sphinx v1.0.7 loading pickled environment... not yet created building [html]: targets for 6 source files that are out of date updating environment: 6 added, 0 changed, 0 removed reading sources... [ 16%] api/canoncial lines = [u'Parse a single line of a tree to determine depth and node.', u'', u'A rgs:', u' A single line string from a SCons dependency tree.', u' ', u'Ret urns:', u' A 2-tuple containing the tree 0 based tree depth as the first', u' element and the node description as the second element.', u'', u'Raises:', u ' ValueError: If line does not have the expected form.', u'']

Exception occurred: File "c:\Python27\lib\site-packages\hieroglyph-0.5dev_20110318-py2.7.egg\hiero glyph\hieroglyph.py", line 80, in convert_args last_child = arg.children[-1] if len(arg.children) != 0 else arg UnboundLocalError: local variable 'arg' referenced before assignment The full traceback has been saved in c:\users\robert~1.emr\appdata\local\temp\sp hinx-err-2ngbwq.log, if you want to report the issue to the developers.

In this case the fourth element contains u' A single line string from a SCons dependency tree.' whereas it should contain u' line: A single line string from a SCons dependency tree.'

Hieroglyph should detect this and report a sensible error message.

Original issue: http://code.google.com/p/cartouche/issues/detail?id=3

rob-smallshire commented 11 years ago

From robert.smallshire@gmail.com on June 30, 2012 07:37:15 Already fixed by other changes.