-
Notifications
You must be signed in to change notification settings - Fork 43
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
Diagnostics for incompatible SMAPI mods #1129
Diagnostics for incompatible SMAPI mods #1129
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1129 +/- ##
==========================================
- Coverage 53.52% 52.47% -1.06%
==========================================
Files 676 678 +2
Lines 22525 22735 +210
Branches 1726 1743 +17
==========================================
- Hits 12057 11930 -127
- Misses 10073 10406 +333
- Partials 395 399 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/// <summary> | ||
/// Creates a new instance of <see cref="SMAPIModInstaller"/>. | ||
/// </summary> | ||
/// <param name="serviceProvider"></param> | ||
/// <returns></returns> | ||
public static SMAPIModInstaller Create(IServiceProvider serviceProvider) => new(serviceProvider); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this simply unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was used, but it's a weird pattern, so I removed it. The installer is now registered in DI.
Resolves #1119.
This PR adds two new diagnostics for Stardew Valley:
The data for these diagnostics are sourced from the internal "mod database" file located at
smapi-internal/metadata.json
. SMAPI itself reads this file at startup to issue warnings and errors, we mirror this behavior in the App with diagnostics.Other changes:
3.18.6
to4.0.2
.DiagnosticManager
more robust when one emitter throws an exception.