-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[DD4hep] Need more helpful error message for out-of-order XML files #31198
Comments
A new Issue was created by @cvuosalo Carl Vuosalo. @Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign geometry |
New categories assigned: geometry @Dr15Jones,@cvuosalo,@mdhildreth,@makortel,@ianna,@civanch you have been requested to review this Pull request/Issue and eventually sign? Thanks |
One way to generate this error is to modify |
@cvuosalo - Could you please make a unit test in |
This issue is resolved by PR #37112. |
+1 |
This issue is fully signed and ready to be closed. |
XML files must be processed in order such that objects are defined before they are referenced. It is an easy error for a developer to make to list files in the wrong order. The current error message for this problem does not fully describe the problem:
The problem in this example is that the LogicalPart refers to a solid that hasn't been defined, but that fact is not clear from the error message.
The message should be enhanced to explain that an undefined object has been referenced and to give the name of the object.
Improving this message probably would entail changes in
DetectorDescription/DDCMS/plugins/dd4hep/DDDefinitions2Objects.cc
.The text was updated successfully, but these errors were encountered: