Open ConnorMartin138 opened 2 weeks ago
0.5.1:
main:
We're using !
to circumvent the null-check. No idea why we're doing this, but we shouldn't do that as seen here. @Sewer56 I think you wrote this.
This problem is very likely this:
We're using ! to circumvent the null-check. No idea why we're doing this, but we shouldn't do that as seen here. @Sewer56 I think you wrote this.
The person to last work on that code would have been @halgari .
I've never really worked on that part of the Synchronizer. I did add that suppression back ground January when working on Abstractions, but that was on the old pre-MnemonicDB ingest code. The data types we're working with since have changed, as the method was slightly altered in the MMDB migration.
Anyway, I think the problem is likely deeper rooted though. Note that our IDE today is telling us that the suppression is redundant. So something else changed under the hood. Likely another part of the code is making an assumption that is not holding true.
In any case, I think @Al12rs 's on the money, with it being related to #1473
The assumption in question is that we can find the matching Loadout File entry in the current loadout of something that was in the Old DiskState. Before, the passed loadout for this operation was the LastAppliedRevision loaodut revision, not the current loadout revision.
Basically, if we remove anything (disable, delete etc) in the loadout, and apply, the current loadout will be missing those things, which code assumes to be present.
There is a fundamental issue with how we deal with DiskStates and LastAppliedRevisions here.
Bug Report
Summary
When clicking apply to apply any Stardew Valley mods, in this instance just SMAPI, the console gives the error message given below, and the play button remains grayed out.
Steps to reproduce
Completely uninstalled and reinstalled Stardew and Mod App, reinstalled Stardew and Mod App from fresh downloads. Opened Mod App, all mods still in library, set only SMAPI to active, click apply.
What is the expected behaviour?
Should apply mods and allow play button to work.
Other information
Running linux. I completely removed stardew valley and mod app and removed all the config or save locations I could find for both and when I reinstalled the game and mod app again it remains the same.
Console output:
Log Files: nexusmods.app.main.current.log nexusmods.app.slim.current.log