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

Currently extra folder or incorrect XML info in CustomDiagnostics might cause an exception #128

Open
gambit9009 opened this issue Nov 12, 2021 · 2 comments
Assignees
Labels
postpone might be a bug or enhancement that will take a larger amount of engineering effort with lower ROI. question/issue problem that really isn't a bug or hasn't found to be a bug, yet

Comments

@gambit9009
Copy link
Contributor

Not that many people would add stuff here on their own, but for devs working on adding stuff, it can be a pain. In DiagFactory.cs we run GetCustomDiagnostics. In there we are just getting a directory list of what folders are in "\CustomDiagnostics". Then in each folder we are looking for a \CustomDiag.xml. We compare these with what we find in CustomDiagnostic_Template.xml. There is not a TRY/CATCH in this whole DiagFactory.cs. Same with DiagTreeMgr where we call PopulateTree.

So any issues we hit falls all the way out to the frmDiagManager_Load function which just prints the exception without any context. This causes all the checkbox to not be added. It has been hard to troubleshoot not knowing where the failure occurred. Better try catch would help

@gambit9009 gambit9009 added the Bug label Nov 12, 2021
@gambit9009 gambit9009 self-assigned this Nov 12, 2021
@gambit9009
Copy link
Contributor Author

Realized the extra folder issue can come up if you run in retail or debug folder and your extra folder gets created in those build folders. So when the DiagFactory is searching the CustomDiagnostics folder for subfolders, it is the current running directory and not the source directory where we are creating those in the project.

PiJoCoder added a commit that referenced this issue Feb 25, 2022
@gambit9009
Copy link
Contributor Author

gambit9009 commented Apr 13, 2022

Exception when I create a test folder under the CustomDiagnostics and try to start DiagManager...

image

DiagManager still loads after I OK. But it doesn't build the rest of the screen with all the radio button and checkboxes.

We looked into closing after this error but the way it is coded doesn't let that easily work.

The fix is to just delete that empty folder.

@gambit9009 gambit9009 added the question/issue problem that really isn't a bug or hasn't found to be a bug, yet label Apr 13, 2022
@PiJoCoder PiJoCoder added postpone might be a bug or enhancement that will take a larger amount of engineering effort with lower ROI. and removed Bug labels Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postpone might be a bug or enhancement that will take a larger amount of engineering effort with lower ROI. question/issue problem that really isn't a bug or hasn't found to be a bug, yet
Projects
None yet
Development

No branches or pull requests

2 participants