hassanakbar4 / tractive-test

0 stars 0 forks source link

--v3 fails with python stacktrace on test document #346

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 6 years ago

component_Version_3_cli_txt resolution_fixed type_defect | by julian.reschke@gmx.de


Parsing file test.xml
WARNING: The 'docName' attribute of the <rfc/> element should have a revision number as the last component when submitted: docName="draft-foo-bar-02".
test.xml(2539): Warning: Removed a redundant ascii= attribute from <title>
test.xml(2541): Warning: Removed a redundant ascii= attribute from <organization>
test.xml(12): Warning: Expected a category, one of std,bcp,exp,info,historic, but found none
test.xml(12): Warning: The 'docName' attribute of the <rfc/> element should have a revision number as the last component: docName="draft-foo-bar-02".
Traceback (most recent call last):
  File "/bin/xml2rfc", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/xml2rfc/run.py", line 384, in main
    textwriter.write(filename)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 163, in write
    text = self.render(self.root, width=72, joiners=joiners)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 2495, in render_rfc
    ctext = self.render(c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1300, in render_front
    parts.append(self.render(c, width, **kwargs))
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1776, in render_note
    text = self.join(text, c, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 211, in join
    etext = self.render(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 192, in render
    res = func(e, width, **kwargs)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/text.py", line 1741, in render_name
    hang=kwargs['joiners'][e.tag].hang
KeyError: 'name'

Issue migrated from trac:346 at 2021-10-20 18:26:18 +0500

hassanakbar4 commented 6 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} uploaded file v3test.xml (106.4 KiB)

hassanakbar4 commented 6 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} edited the issue description

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Fixed in [2555]:

Removed an assert that prevented rendering of document top when some elements are so long that the line width will be more than 72 characters. Added support for with . Added format default for included references. Added warning for s without 'pn' attribute (which can happen if the is pointing at an element for which pn is not generated (this is probably an error in RFC 7998). Fixes issue #346