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

Cannot generate Python bindings for structures containing fields of type LmcpObject #28

Open
kfhoech opened this issue Dec 11, 2019 · 0 comments

Comments

@kfhoech
Copy link

kfhoech commented Dec 11, 2019

Message definitions containing fields of type LmcpObject as below

        <!-- DownloadReply
            Response to DownloadRequest. -->
        <Struct Name="DownloadReply" >
            <!-- Array of response data, empty if not satisfied. -->
            <Field Name="Contents" Type="LmcpObject" />
        </Struct>

cause the following exception to be thrown during generation of Python bindings

Method calling exception.  Trying to access method name: build_reference_messages for file: GenRefMsgs.py
Error writing file: GenRefMsgs.py using method build_message_options
Exception in thread "main" java.lang.IllegalArgumentException: java.lang.Exception: Error writing file: GenRefMsgs.py using method import_all_messages_and_enums
	at avtas.lmcp.lmcpgen.LmcpGen.main(LmcpGen.java:368)
	at avtas.lmcp.lmcpgen.LmcpGenGUI.main(LmcpGenGUI.java:214)
Caused by: java.lang.Exception: Error writing file: GenRefMsgs.py using method import_all_messages_and_enums
	at avtas.lmcp.lmcpgen.LmcpGen.replaceTags(LmcpGen.java:225)
	at avtas.lmcp.lmcpgen.LmcpGen.makePackage(LmcpGen.java:72)
	at avtas.lmcp.lmcpgen.LmcpGen.main(LmcpGen.java:365)
	... 1 more

The same also occurs if the type is an array of LmcpObject (Type="LmcpObject[]").

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

1 participant