Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating with single close xml tags #77

Open
mixxer opened this issue Apr 11, 2019 · 3 comments
Open

Generating with single close xml tags #77

mixxer opened this issue Apr 11, 2019 · 3 comments
Assignees

Comments

@mixxer
Copy link

mixxer commented Apr 11, 2019

https://pastebin.com/7Qa6DQEX

I got a problem with a single closing tag.
" <node name="bluetooth"/> "

@mardy mardy self-assigned this Apr 11, 2019
@mardy
Copy link
Contributor

mardy commented Apr 11, 2019

Hi! I just tried, and it seems to be working fine here. What error do you get, exactly?

@mixxer
Copy link
Author

mixxer commented Apr 22, 2019

Hi, mardy

The following error message occurred;;

gdbus-codegen-glibmm3 --generate-cpp-code=dbus-ofono org.ofono.xml

Traceback

(most recent call last):
File "/usr/local/bin/gdbus-codegen-glibmm3", line 11, in
load_entry_point('gdbus-codegen.glibmm==2.99.0', 'console_scripts', 'gdbus-codegen-glibmm3')()
File "/usr/local/lib/python3.6/dist-packages/gdbus_codegen.glibmm-2.99.0-py3.6.egg/codegen_glibmm/codegen_main.py", line 82, in codegen_main
parsed_ifaces = parser.parse_dbus_xml(xml_data)
File "/usr/local/lib/python3.6/dist-packages/gdbus_codegen.glibmm-2.99.0-py3.6.egg/codegen_glibmm/parser.py", line 223, in parse_dbus_xml
parser = DBusXMLParser(xml_data)
File "/usr/local/lib/python3.6/dist-packages/gdbus_codegen.glibmm-2.99.0-py3.6.egg/codegen_glibmm/parser.py", line 55, in init
self._parser.Parse(xml_data)
File "../Modules/pyexpat.c", line 414, in StartElement
File "/usr/local/lib/python3.6/dist-packages/gdbus_codegen.glibmm-2.99.0-py3.6.egg/codegen_glibmm/parser.py", line 109, in handle_start_element
self._cur_object.doc_string = self._last_comment
AttributeError: 'NoneType' object has no attribute 'doc_string'

As mentioned earlier, after I remove a single close tag, the error is cleared....

Thank you and Best Regards.

@mardy
Copy link
Contributor

mardy commented Apr 22, 2019

Thanks! Could you also share the org.ofono.xml file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants