-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unhandled Exception when Importing Doors Project in ReqIF #1935
Comments
Hi @stellarpower, The ReqIF conversion is not an easy task, and from time to time, there is always a user who has something in their ReqIF that we have previously not seen. From looking at the error location, it is most likely that your file has numeric spec attribute definitions (for example, of type INTEGER or REAL), and this is not handled by StrictDoc yet. The error message could be improved indeed. In order to fix this issue for your case, I would need a good MRE ReqIF example that you are using with StrictDoc. Is there a chance you could send me an anonymized ReqIF example without any sensitive data but still the one that reproduces this issue? |
Thanks, and totally understood. Standards are great except when they aren't standardised and just a free-for-all. Interestingly I'm not seeing the same problems when reading in the file programatically using the python package. This is where the anonymisation script is helpful ;) ReqIFv10 - Anonymised.reqif.txt This may not be entirely minimal, but it's a small dummy project export from Doors anyway and you know what you're looking for. I did see those numeric definitions before so expect that's probably it. Don't know why they exist TBH, needing to specify what a boolean or a string is within the requirements and assign it a UUID seems a bit excessive to me. But ours (well, mine) is not to question why! Cheers |
Hey @stellarpower, I have tried generating SDoc from your ReqIF file and found a few issues. Some of them are minor limitations of StrictDoc that can be fixed, and some are related to the ReqIF properties that I didn't encounter before in the ReqIF files provided by the users. Here is the branch that handles your file with an integration test: https://github.com/strictdoc-project/strictdoc/compare/stanislaw/reqif_numeric_attributes?expand=1 Your ReqIF file has two unusual details that I haven't seen before. This is not to say that something is wrong with this ReqIF, it is just that it makes things a little more complicated for detecting things correctly and mapping them to SDoc.
Previously, the users could integrate SDoc with Doors, so with some tweaks in your document structure we could make it work. Otherwise, I could think of extending StrictDoc to make it more flexible when it comes to supporting the ReqIF files like yours. How eager are you to set up an end-to-end ReqIF-SDoc export/import, and can you control the structure/settings of this ReqIF? We can certainly make it work, the question is how soon, depending on what you want to do with this document structure. |
Thanks a lot, appreciate the time! So, this was originally for a work project - an export from IBM Doors (afraid I don't have the version to hand right now). I think we're largely wrapped up on that stage of the project - but quite probably will come back to it at some point in the future. It was sort of a PoC-level thing to start with. So afraid I won't have time in the near future to take a look again, but if I end up cycling back to parsing data on this project later will try to check out your branch and see what I get, as well as try to get you more details about the exact Doors version (it's on a clients' infrastructure, so we don't use it ourselves but are working with them on the data. I don't entirely have direct access). To answer your question, I think longer-term, potentially integrating with Doors using their query language thing (as I believe the previous export did as you're mentioning) is something that's been discussed. For now we are just getting the data out of doors and into our own code, but round-trip is definitely something we may look at doing if this project continues to be expanded. I expect strictdoc as well as some of the other FOSS packages out there could be very helpful with working out how we do this. If we get more files in the medium-term, I might also be able to anonymise those and get them to you. Not knowing what I'm looking for, it was a bit hard to get a handle on what's going on in these files when each viewer I tried was struggling with them and without having a local copy of doors I have full access to. So unfortunately not of much help as to what's really in them in terms of the XML structure or why they're a bit exotic. Eventually after several java versions I did manage to get ReqIFStudio working on them, I don't know if you've used it but might help. The somewhat older tool that's more like a full version of Eclipse was next to useless. Anyway sorry not to be more help but glad at least you can reproduce it and it's given some insights. I'll be back in touch when my todo list can accommodate it. Greatly appreciate the help and best of luck in the meantime! |
Requirements software is new to me, so am limited in how much useful information I can provide. I'm simply looking to visualise the data in an export I've been provided.
Don't know if this belongs in the ReqIF package or as part of strictdoc proper; feel free to move if appropriate. I guess if this is an unsupported feature, at the least it'd be nice to catch it and then print a user-readable message explaining what feature isn't supported.
Thanks
The text was updated successfully, but these errors were encountered: