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

Question: What does Type with name doubleBaseType already exists mean? #58

Open
MarAlder opened this issue Apr 4, 2024 · 1 comment

Comments

@MarAlder
Copy link
Contributor

MarAlder commented Apr 4, 2024

I'm a bit stumped. Why do I get the following message with the CPACS 3.5 schema?

Exception: Type with name doubleBaseType already exists

if (m_types.types.find(name) != std::end(m_types.types))
throw std::runtime_error("Type with name " + name + " already exists");

What could have changed in the 3.5 schema compared to 3.3 that triggers this problem?

cpacs_schema.zip

@MarAlder
Copy link
Contributor Author

Further testing has revealed that it is due to the alphabetic sorting of the types that I introduced with CPACS 3.5 using a Python script.

Applied alphabetic sorting to CPACS 3.4, it shows that the C++ code is generated when I move doubleBaseType, stringArrayBaseType, and stringVectorBaseType to the beginning of the XSD.

Does this give an indication of what might be buggy about the CPACSGen code shown above?

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