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

If the addin cannot be properly loaded, just skip the file. #11

Merged
merged 2 commits into from
May 15, 2023

Conversation

anshivashankar
Copy link
Collaborator

No description provided.

@anshivashankar anshivashankar requested a review from zhuliice May 15, 2023 17:43
catch
{
// if the XML is malformed or not parse-able, just continue
continue;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it ever happen that *.addin is malformed?
Instead of ignoring the error in silence, we'd better at least pop out an error message by "MessageBox.Show"(for example).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it does, see issue filed last year here: #8
We also see some issues on stackoverflow: https://stackoverflow.com/questions/76132803/forge-design-automation-debug-revit-plugin-locally-tutorial-not-working

(however, we can certainly throw an message)

@anshivashankar anshivashankar merged commit 2e3533e into master May 15, 2023
@anshivashankar anshivashankar deleted the xml-encoding-fix branch May 15, 2023 18:58
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

Successfully merging this pull request may close these issues.

2 participants